Bug 55233 - trying to use rpm flags implemented in rpm-build when not installed gives confusing error message
trying to use rpm flags implemented in rpm-build when not installed gives con...
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-10-27 17:34 EDT by Daniel Resare
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: 2001-10-27 17:34:56 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 Daniel Resare 2001-10-27 17:34:51 EDT
Description of Problem:
When I try to use any of the rpm options that are implemented by the
rpm-build package without having the rpm-build package installed i get the
following (confusing) error message:

packagename-1-1.src.rpm: No such file or directory

Version-Release number of selected component (if applicable):
Standard redhat-7.2.

[noa@localhost noa]$ rpm -q rpm

How Reproducible:

Steps to Reproduce:
1. make sure rpm-build is not installed
2. fetch an src rpm
3. try to rebuild it (rpm --rebuild package-1-1.src.rpm)

Actual Results:

[noa@localhost noa]$ LANG=C rpm --rebuild msttcorefonts-1-1.src.rpm 
msttcorefonts-1-1.src.rpm: No such file or directory

Expected Results:

Perhaps something along the lines of
[noa@localhost noa]$ LANG=C rpm --rebuild msttcorefonts-1-1.src.rpm 
Error: you neeed to install the rpm-build package to use the --rebuild option

Additional Information:
A strace shows that rpm blindly tries to open rpmb

execve("/usr/lib/rpm/rpmb", ["/usr/lib/rpm/rpmb", "--rebuild",
"msttcorefonts-1-1.src.rpm"], [/* 23 vars */]) = -1 ENOENT (No such file or

Which fails.
Comment 1 Jeff Johnson 2001-10-27 18:06:28 EDT
The build modes have moved out of /bin/rpm, invoke /usr/bin/rpmbuild instead.
Comment 2 Daniel Resare 2001-10-27 18:48:10 EDT
The confusing error message is still a problem though. I would be very happy if
/bin/rpm just removed all build related options, or even better replaced them
with a standard error message pointing towards /usr/sbin/buildrpm instead.

This might not be convinient, but at least the behaviour is clear.

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