Bug 58401

Summary: rpm --recompile or --rebuild fail in 4.0.3
Product: [Retired] Red Hat Linux Reporter: Joseph Shraibman <jks>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.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-01-29 22:45:26 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 Joseph Shraibman 2002-01-15 22:54:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221

Description of problem:
rpm --rebuild <src.rpm> gives a : No such file or directory 

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


How reproducible:
Always

Steps to Reproduce:
1. Try rpm --rebuild on a src rpm
2.
3.
	

Actual Results:  [root@p1 /local/download/srpms] ls -l pine-4.44-1.72.0.src.rpm
-rw-r--r--   1 root     root      2652514 Jan 15 17:23 pine-4.44-1.72.0.src.rpm
[root@p1 /local/download/srpms] rpm --rebuild pine-4.44-1.72.0.src.rpm
pine-4.44-1.72.0.src.rpm: No such file or directory
[root@p1 /local/download/srpms] rpm -recompile pine-4.44-1.72.0.src.rpm
pine-4.44-1.72.0.src.rpm: No such file or directory
[root@p1 /local/download/srpms]  rpm -v
RPM version 4.0.3
Copyright (C) 1998-2000 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
 
Usage: rpm {--help}
       rpm {--version}

Additional info: I'm using a 6.x system.  I downloaded the rpm for rpm from rpm.org.

Comment 1 Jeff Johnson 2002-01-26 18:42:33 UTC
Have you installed the rpm-build package?

Comment 2 Joseph Shraibman 2002-01-29 22:40:44 UTC
No, I hadn't realized it existed.  What was the rational for putting the
building stuff in a seperate subpackage?

As for this bug rpm should at least give me an error message saying 'install
rpm-build'.

Comment 3 Jeff Johnson 2002-01-29 22:45:20 UTC
The rationale is that rpm has far too many options and that
most users are not interested in building packages.

Again, you're asking for one program to give an error message
for another program, /bin/rpm != /usr/bin/rpmbuild. The "fix"
when the time comes will be to remove the popt alias magic glue
to report a "No such option error". The build modes are
in /usr/bin/rpmbuild and they will stay there forever more.

Comment 4 Jeff Johnson 2002-02-05 17:49:06 UTC
This problem appears resolved. At least for rpm-4.0.4,
the same goofiness with rpmb vs rpmbuild will continue
to exist.