Bug 59606

Summary: RFE: Emit warning when "rpm -ba" is used
Product: [Retired] Red Hat Raw Hide Reporter: R P Herrold <herrold>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-11 02:49:08 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 R P Herrold 2002-02-11 02:49:03 UTC
It has been over 20 months now.

  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=13277

And as is apparent from the rpm-list traffic, and the problems developers
encounter who are new to RPM, the message in the man page:

   Use: rpmbuild -ba

is not being heard.  This is causing 'mysterious' failures. Please consider
adding (I take it in the popt expansions):

   $ rpm -ba wheatever.spec
   "Warning: rpm -ba" is deprecated - Use: "rpmbuild -ba"

to pound the point in and prepare the way to un-overburden 'rpm'.

Comment 1 Jeff Johnson 2002-02-11 15:52:06 UTC
The popt interface would need to change incompatibly
to emit the warning, as the rpm executable is not supposed
to know it's helpers, that's what a popt alias is for.

The fix -- when I am permitted -- is gonna be to rip out
the popt alias legacy compatibility crap. Users will invoke
rpmbuild when building, otherwise rpm itself. Continuing to
fiddle around with "legacy compatibility" and better warnings
etc doesn't even begin to touch the root of the problem:

	The build modes have moved out of the /bin/rpm
	executable, and they're not going back again.