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 Email Updates:
Status: Verified Impact on me:
None 
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
Description:
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!

Thanks,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.