Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 64189 - confusing output from rpm -b without rpm-build installed
confusing output from rpm -b without rpm-build installed
Product: Red Hat Public Beta
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-04-28 10:54 EDT by Kjetil T. Homme
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-04-28 10:54:54 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 Kjetil T. Homme 2002-04-28 10:54:50 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408

Description of problem:
Novice users have little chance of figuring out what's wrong when they try to
rebuild packages without rpm-build installed.

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

How reproducible:

Steps to Reproduce:
1.# rpm -bp /usr/src/redhat/SPECS/lvm.spec 
/usr/src/redhat/SPECS/lvm.spec: No such file or directory
2.# ls -l /usr/src/redhat/SPECS/lvm.spec 
-rw-rw-r--    1 root     root         3928 Mar 27 22:13


Expected Results:  it would be nice if rpm warned 

"please install rpm-build to use the -b option"

when /usr/lib/rpm/rpmb is missing.

Additional info:
Comment 1 Jeff Johnson 2002-04-29 09:14:34 EDT
Invoke rpmbuild not rpm. The build modes
of rpm have moved to a separate executable,
and the final "fix" will be to remove legacy
compatibility, thereby changing the error message
	rpm -ba ...
	-ba: unknown option
Comment 2 Kjetil T. Homme 2002-04-29 09:20:10 EDT

I hope there will be an interim stage (== RH 7.3), where rpm -b gives the
diagnostic "-b is obsolete.  use rpmbuild(1)" or something to that effect :)
Comment 3 Jeff Johnson 2002-04-29 09:37:42 EDT
All of Red Hat 7.x was an "interim stage",
the change was made almost 2 years ago, that's
more than enough time to convert IMHO.
Comment 4 Kjetil T. Homme 2002-04-29 09:59:46 EDT
strange, I can't remember reading anything about this change in the release notes.

this is not an obvious change.  you need to give people notification before
changing this interface.  commercial vendors (vmware, nvidia) has not picked up
on this (how could they?) and updated their documentation.
Comment 5 Jeff Johnson 2002-04-29 10:12:58 EDT
Again 2 years is more than enough time to convert.

There's even a rpmbuild man page since rpm-4.0.3.
Comment 6 Kjetil T. Homme 2002-04-29 10:19:46 EDT
I may be spoiled by Solaris.  their developers don't think to themselves, "from
now on, people shouldn't be doing that", they actually put it to paper and tell
their users that this and that will be changing in the NEXT release.

I really can't see the need for changing the interface with no prior warning.
Comment 7 Jeff Johnson 2002-04-29 10:43:03 EDT
FWIW, the interface is not changed, but merely resident
in a different binary. The new binary is even executed
in a legacy compatible manner iff the rpm-build
package is installed. Furthermore, a better error message
cannot be produced without changing (i.e. breaking) the popt
library API, which introduces even worse incompatibilities.
In essence you're asking one binary to report an error message
when given options for another binary, that's how popt aliases

So either
	1) install the rpm-build package and be happy.
	2) type rpmbuild, not rpm, when building and be happy.
	3) use dpkg on Solaris.

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