Red Hat Bugzilla – Bug 509319
openais.spec doesn't contain any build requirement
Last modified: 2016-04-26 10:09:47 EDT
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: 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: cc: Command not found
make: *** [lcr_ifact.o] Error 127
make: 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.
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.