Bug 59023

Summary: Poor error messages when required files not found
Product: [Retired] Red Hat Linux Reporter: Ross Burton <r.burton>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-29 15:30:58 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 Ross Burton 2002-01-29 15:30:53 UTC
Description of problem:
We were trying to rebuild a source rpm.

$ rpm --rebuild check-0.8-1.src.rpm
check-0.8-1.src.rpm: file not found

Running under strace revealed that the file it could not find was
/usr/share/locale/en/LC_MESSAGES.  I don't know why that file is not present... so:

$ LANG=C rpm --rebuild check-0.8-1.src.rpm
check-0.8-1.src.rpm: file not found

Again, running under strace releaved that the actual file missing was
/usr/lib/rpm/rpmb.  I guessed this was from the rpm-build package was for some
reason was not installed when we installed RH72, and then the build worked.

However, for the last case at least, the error message should be "cannot find
/usr/lib/rpm/rpmb.  Do you have rpm-build installed?".

Comment 1 Jeff Johnson 2002-01-29 16:05:23 UTC
Invoke /usr/bin/rpmbuild, not /bin/rpm. Yes you need the
rpm-build package installed.

The build modes have moved to a different executable over a year ago,
what remains is an attempt at legacy compatibility with previous behavior which,
as you have seen, is somewhat feeble, but will not be fixed further.