Bug 62597 - RPM confusing error message
RPM confusing error message
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
: 62634 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-04-02 17:32 EST by Ben Woodard
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-04-02 17:32:18 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 Ben Woodard 2002-04-02 17:32:14 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020326

Description of problem:
This bug may be similar to Bug 20286 which in turn is similar to 2895. However,
this one is much more specific and therefore may have a chance of being fixed. ;-)

If you do not have the rpm-build package installed and try to build a package
you get a confusing error message. For example:

[root@test1 SPECS]# rpm -bp kernel-2.4.spec
kernel-2.4.spec: No such file or directory

when the file kernel-2.4.spec is right there. Strace allows you to realize that
the error message is coming from the fact that rpmb is not being exec'd properly.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.rpm -e rpm-build
2.rpm -Uvh anything.src.rpm
3.rpm -ba /usr/src/redhat/SPECS/anything.spec

Actual Results:  anything.spec: No such file or directory

Expected Results:  rpmb: No such file or directory
Please install the rpm-build rpm.

Additional info:
Comment 1 Jeff Johnson 2002-04-03 16:56:11 EST
The build modes are now in /usr/bin/rpmbuild,
not in /bin/rpm, so the error should be
	-ba: unknown option
or (if rpm-build is not installed)
	bash: rpmbuild: command not found

Legacy code dies a long slow lingering death ...
Comment 2 Jeff Johnson 2002-04-03 17:02:46 EST
*** Bug 62634 has been marked as a duplicate of this bug. ***

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