Bug 62597

Summary: RPM confusing error message
Product: [Retired] Red Hat Linux Reporter: Ben Woodard <woodard>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-02 22:32:18 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 Ben Woodard 2002-04-02 22:32:14 UTC
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:
Always

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 21:56:11 UTC
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 22:02:46 UTC
*** Bug 62634 has been marked as a duplicate of this bug. ***