[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: RPM command parameters parsing ( bug ? ... )



On Thu, Jan 03, 2002 at 12:53:32AM -0800, Eric Backus wrote:
> Jeff Johnson wrote:
> 
> > On Wed, Jan 02, 2002 at 01:30:12PM -0500, Serguei Ostrovskii wrote:
> >> 
> >> Do you mean 'rpm' won't have -[b|t] options in the future
> >> and it is currently for compatibility only ?
> > 
> > The build modes of rpm moved from /bin/rpm to a /usr/lib/rpm/rpmb helper
> > binary over a year ago.
> > 
> > What's left is legacy compatibility provided by something called popt
> > aliases. The aliases are used to re-exec a helper binary if a mode
> > specific option is encountered. This mostly works, certainly well enough
> > for legacy compatibility IMHO, but there are problems with various
> > pathological invocations.
> > 
> > 73 de Jeff
> 
> If I'm writing a new script to build RPM packages, should I use rpmbuild or 
> just rpm (in other words, which is more supported and more likely to work 
> portably in the future)?  It would be nice if the documentation for rpm and 
> rpmbuild mentioned this.

The build modes have moved out of /bin/rpm and they're not going back. Period.

So you should invoke /usr/bin/rpmbuild for rpm-4.0.2 and later.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []