Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 59023 - Poor error messages when required files not found
Poor error messages when required files not found
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i686 Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2002-01-29 10:30 EST by Ross Burton
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-29 10:30:58 EST
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 Ross Burton 2002-01-29 10:30:53 EST
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 11:05:23 EST
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.

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