Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: difference between rpm -bb & rpm -bc
Date: Sun, 1 Sep 2002 19:05:01 -0600	[thread overview]
Message-ID: <20020901190501.A6969@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <000601c25217$f91762a0$6a700044@outpost23>; from tedgoodridgejr@acm.org on Sun, Sep 01, 2002 at 07:30:43PM -0500

On Sun, Sep 01, 2002 at 07:30:43PM -0500, Ted Goodridge, Jr wrote:
> When I'm building a binary package from a source rpm, which command do I
> use

When you are just rebuilding without any modifications to spec files
then you are using

   rpmbuild --rebuild <package>.src.rpm

and this will worry for you about all proper steps.

> (and what is the difference) between
> 
> rpm -bb <specfile>
> rpm -bc <specfile>

One similarity is that although both still work then in the future
they will stop and you should use 'rpmbuild' instead if your rpm version
is new enough to have that utility.  You may need to install 'rpm-build'
before _any_ of the above will work.  There was no such split in the
past.

As for the differences then let us see:

$ rpmbuild --help
.........
  -bc                          build through %build (%prep, then compile) from
                               <specfile>
.........
  -bb                          build binary package only from <specfile>
.........

In other words '-bc' runs only through a compilation phase and does
not really build any packages.  Before the last operation you still
have to "%install" which can be "--short-circuit"ed  while the whole
packaging operation cannot.

If you modified spec file, which makes impossible to use '--rebuild',
then you should really use '-ba' because you want your customized source
package as well.

  Michal




  reply	other threads:[~2002-09-02  1:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-02  0:30 difference between rpm -bb & rpm -bc Ted Goodridge, Jr
2002-09-02  1:05 ` Michal Jaegermann [this message]
2002-09-02  1:18   ` Ted Goodridge, Jr
2002-09-02  4:33     ` Michal Jaegermann
2002-09-02  5:08     ` Alan Young
2002-09-02 16:50       ` George France
     [not found] <20020902160107.CF4B13EB80@listman.redhat.com>
2002-09-08  2:10 ` John Haywood
2002-09-08  2:35   ` Ted Goodridge, Jr
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox