Bug #73128 removal of mysqlbug also removes configure information
Submitted: 26 Jun 2014 19:47 Modified: 7 Oct 2017 13:27
Reporter: Kristian Köhntopp Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.7.4 OS:Any
Assigned to: CPU Architecture:Any

[26 Jun 2014 19:47] Kristian Köhntopp
Description:
http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-4.html notes:

mysqlbug, an obsolete program for generating bug reports, has been removed from the source code.

While the program was obsolete, it contained the following information:

VERSION="5.7.2-m12"
COMPILATION_COMMENT="MySQL Community Server (GPL)"
BUGmysql="mysql@lists.mysql.com"
# This is set by configure
COMP_CALL_INFO="CC='/usr/bin/gcc'  CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fPIC -Wall -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1'  CXX='/usr/bin/g++'  CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -felide-constructors  -fPIC -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1'  LDFLAGS=''  ASFLAGS=''"
COMP_RUN_INFO="CC='/usr/bin/gcc'  CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables  -fPIC -Wall -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1'  CXX='/usr/bin/g++'  CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -felide-constructors  -fPIC -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -DMY_PTHREAD_FASTMUTEX=1'  LDFLAGS=''  ASFLAGS=''"
CONFIGURE_LINE=""

That is, in the header of the script there was documentation of the actual configure and compile options used to produce the installation on this machine, independent of any spec files or other unreliable sources of information.

How to repeat:
less $(which mysqlbug) on any pre-5.7.4-version

Suggested fix:
I wonder if that information could be provided in another reliable way, e.g. as part of the mysqld --help --verbose output or another --help variant.
[27 Jun 2014 5:47] MySQL Verification Team
From:
http://www.tocker.ca/2014/03/07/plan-to-remove-unused-command-line-programs.html
[27 Jun 2014 5:56] MySQL Verification Team
Hello Kristian,

Thank you for the report.

Thanks,
Umesh
[27 Jun 2014 15:42] Davi Arnaut
The binary packages come with a INFO_BIN file for quite a while now.
[30 Jun 2014 10:59] MySQL Verification Team
On 5.7.5, I see

[root@cluster-repo mysql-5.7.5]# find . -name INFO_BIN
./docs/INFO_BIN
[root@cluster-repo mysql-5.7.5]# more ./docs/INFO_BIN
===== Information about the build process: =====
Build was run at 2014-03-07 05:14:01 on host 'viking79'

Build was done on  Linux-2.6.18-274.el5 using x86_64
Build was done using cmake 2.8.5
..
..
.

===== EOF =====
[1 Jul 2014 10:25] Erlend Dahl
Please check if INFO_BIN contains the required information.
[2 Aug 2014 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[16 Aug 2017 14:06] Yngve Svendsen
Posted by developer:
 
Leaving this to Docs to decide whether or not INFO_BIN documentation is needed (if indeed that isn't documented already). If not, please close.
[7 Oct 2017 13:27] Paul DuBois
Posted by developer:
 
Mentioned INFO_BIN file at:
https://dev.mysql.com/doc/refman/5.7/en/bug-reports.html