Bug 509319 - openais.spec doesn't contain any build requirement
openais.spec doesn't contain any build requirement
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openais (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: Steven Dake
Cluster QE
: EasyFix
Depends On:
  Show dependency treegraph
Reported: 2009-07-02 03:44 EDT by Adrien Kunysz
Modified: 2016-04-26 10:09 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-07-02 14:08:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adrien Kunysz 2009-07-02 03:44:56 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[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 14:08:04 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.