Bug 59023 - Poor error messages when required files not found
Summary: Poor error messages when required files not found
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i686 Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-01-29 15:30 UTC by Ross Burton
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-29 15:30:58 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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.

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