Bug 509319

Summary: openais.spec doesn't contain any build requirement
Product: Red Hat Enterprise Linux 5 Reporter: Adrien Kunysz <akunysz>
Component: openaisAssignee: Steven Dake <sdake>
Status: CLOSED NOTABUG QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: cluster-maint, edamato
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-02 18:08:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adrien Kunysz 2009-07-02 07:44:56 UTC
openais.spec doesn't contain any build requirement. This cause build to fail if you do not know what packages you need to install:

# rpmbuild -ba openais.spec
[...]
==== /usr/src/redhat/BUILD/openais-0.80.3/lcr ===
make[1]: Entering directory `/usr/src/redhat/BUILD/openais-0.80.3/lcr'
cc -O2 -g -m64 -mtune=generic -DOPENAIS_LINUX  -fPIC -c -o lcr_ifact.o lcr_ifact.c
make[1]: cc: Command not found
make[1]: *** [lcr_ifact.o] Error 127
make[1]: Leaving directory `/usr/src/redhat/BUILD/openais-0.80.3/lcr'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.85771 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.85771 (%build)

As far as I can tell, the only requirement is /usr/bin/cc (which resolves to gcc of course). Installing gcc let me build openais.

Comment 1 Steven Dake 2009-07-02 18:08:04 UTC
It is expected that the user has the basic developer tools installed to build an RPM.  No rpm in our entire repository contains a BR on gcc.  Closing as not a defect.  If you believe there is really a problem, I'd suggest filing a defect against rpmbuild package to add BR to gcc there.