Red Hat Bugzilla – Bug 59606
RFE: Emit warning when "rpm -ba" is used
Last modified: 2008-05-01 11:38:01 EDT
It has been over 20 months now.
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'.
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.