Bug #85366 RHEL6 spec file does not have dependency checks for gcc / gcc-c++
Submitted: 8 Mar 2017 9:48 Modified: 22 Mar 2017 11:17
Reporter: Simon Mudd (OCA) Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:5.7.17 OS:Red Hat (Centos 6/7)
Assigned to: CPU Architecture:Any
Tags: BuildRequires, compiling

[8 Mar 2017 9:48] Simon Mudd
When trying to build the rpms from the spec file for EL6 I notice that on a clean server there is no BuildRequires: clause for EL6/EL7 for the C or C++ compilers.

There is a requirements check for EL5 which is very old, but not for later versions.

How to repeat:
* Build an RHEL6 server.
* Install from the .src.rpm
* Try to build with $ rpmbuild -ba --define 'dist .el6' --define 'rhel 6' --define 'el6 1' mysql.spec
* rpmbuild will tell you if you're missing any packages and you can then install them
* try again but this time the build starts and fails shortly as either gcc or g++ can not be found.

Suggested fix:
Improve packaging so that these required dependencies are not missing and made explicit.
[22 Mar 2017 11:17] MySQL Verification Team
Hello Simon Mudd,

Thank you for the report and feature request!