Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* difference between rpm -bb & rpm -bc
@ 2002-09-02  0:30 Ted Goodridge, Jr
  2002-09-02  1:05 ` Michal Jaegermann
  0 siblings, 1 reply; 8+ messages in thread
From: Ted Goodridge, Jr @ 2002-09-02  0:30 UTC (permalink / raw)
  To: axp-list

When I'm building a binary package from a source rpm, which command do I
use (and what is the difference) between

rpm -bb <specfile>
rpm -bc <specfile>

Thanks!
Ted





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: difference between rpm -bb & rpm -bc
  2002-09-02  0:30 difference between rpm -bb & rpm -bc Ted Goodridge, Jr
@ 2002-09-02  1:05 ` Michal Jaegermann
  2002-09-02  1:18   ` Ted Goodridge, Jr
  0 siblings, 1 reply; 8+ messages in thread
From: Michal Jaegermann @ 2002-09-02  1:05 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: difference between rpm -bb & rpm -bc
  2002-09-02  1:05 ` Michal Jaegermann
@ 2002-09-02  1:18   ` Ted Goodridge, Jr
  2002-09-02  4:33     ` Michal Jaegermann
  2002-09-02  5:08     ` Alan Young
  0 siblings, 2 replies; 8+ messages in thread
From: Ted Goodridge, Jr @ 2002-09-02  1:18 UTC (permalink / raw)
  To: axp-list

I don't actually want it to install (and yes I read the man page, and
the howto).  I just want to build the binary RPM's.  I did modify the
specfile.  Does this mean I use the '-ba' switch to just get my packages
that I can later install?

Thank you so much for your help.  The instructions you gave are much
clearer than the help/man file.

Ted

> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> Behalf Of Michal Jaegermann
> Sent: Sunday, September 01, 2002 8:05 PM
> To: axp-list@redhat.com
> Subject: Re: difference between rpm -bb & rpm -bc
> 
> 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
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: difference between rpm -bb & rpm -bc
  2002-09-02  1:18   ` Ted Goodridge, Jr
@ 2002-09-02  4:33     ` Michal Jaegermann
  2002-09-02  5:08     ` Alan Young
  1 sibling, 0 replies; 8+ messages in thread
From: Michal Jaegermann @ 2002-09-02  4:33 UTC (permalink / raw)
  To: axp-list

On Sun, Sep 01, 2002 at 08:18:02PM -0500, Ted Goodridge, Jr wrote:
> I don't actually want it to install (and yes I read the man page, and
> the howto).

If you want to make a binary package you have to run "%install" macro.
This installs in subdirectories of "%{buildroot}" which is normally
NOT the same as / but some temporary directory.  You can specify
it in a spec file with "BuildRoot" directive but most likely this
is already done.

> I just want to build the binary RPM's.  I did modify the
> specfile.  Does this mean I use the '-ba' switch to just get my packages
> that I can later install?

This indeed will be the way to rebuild binary packages and sources with
your modifications (spec file is a part of sources).  If you did such
changes then you should really adjust "Release" in a spec file (add your
initials?) and make an entry in a "%changelog" section.  Some time from
now when you will start to wonder what you actually modified this will
be an excelent way to check ('rpm -q --changelog ....').

  Michal




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: difference between rpm -bb & rpm -bc
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Alan Young @ 2002-09-02  5:08 UTC (permalink / raw)
  To: axp-list

I use rpm -bb.  That will "install" the source, compile it and build
binary packages/RPMs.  rpm -bb will not automagically install the RPMs
after they are built.  You still have to install the RPMs as usual as root.

Here's what I did last night to make a local ev56 version of mozilla 1.1.
I put my edited mozilla-1.1.spec file in /usr/src/redhat/SPECS and the
source and patches from the source RPM in /usr/src/redhat/SOURCES.
Then in SPECS I did a "rpm -bb mozilla-1.1.spec".  RPM untarred the sources
into a subdirectory in /usr/src/redhat/BUILD, applied the patches specified
in the spec file, ran configure and then make.  In a few hours it was done
and I had binary RPMs in /usr/src/redhat/RPMS/alpha.  Also, it does not
clean up the BUILD directory after it is done.  You have to do that 
yourself.  But then again, I could be missing something in reading the
confusing doc...

Alan

"Ted Goodridge, Jr" wrote:
> 
> I don't actually want it to install (and yes I read the man page, and
> the howto).  I just want to build the binary RPM's.  I did modify the
> specfile.  Does this mean I use the '-ba' switch to just get my packages
> that I can later install?
> 
> Thank you so much for your help.  The instructions you gave are much
> clearer than the help/man file.
> 
> Ted
> 
> > -----Original Message-----
> > From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> > Behalf Of Michal Jaegermann
> > Sent: Sunday, September 01, 2002 8:05 PM
> > To: axp-list@redhat.com
> > Subject: Re: difference between rpm -bb & rpm -bc
> >
> > 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: difference between rpm -bb & rpm -bc
  2002-09-02  5:08     ` Alan Young
@ 2002-09-02 16:50       ` George France
  0 siblings, 0 replies; 8+ messages in thread
From: George France @ 2002-09-02 16:50 UTC (permalink / raw)
  To: axp-list, Alan Young

Hello Alan,

On Monday 02 September 2002 01:08, Alan Young wrote:
> and I had binary RPMs in /usr/src/redhat/RPMS/alpha.  Also, it does not
> clean up the BUILD directory after it is done.  You have to do that
> yourself.  But then again, I could be missing something in reading the
> confusing doc...
>

For clean up:

rpm -ba --target alphaev56 --clean <package>.spec

or

rpm -ba --target alphaev56 --clean --rmsource <package>.spec

to remove the source as well.

--George




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: difference between rpm -bb & rpm -bc
       [not found] <20020902160107.CF4B13EB80@listman.redhat.com>
@ 2002-09-08  2:10 ` John Haywood
  2002-09-08  2:35   ` Ted Goodridge, Jr
  0 siblings, 1 reply; 8+ messages in thread
From: John Haywood @ 2002-09-08  2:10 UTC (permalink / raw)
  To: axp-list

On Tuesday 03 September 2002 02:01, you wrote:
> Here's what I did last night to make a local ev56 version of mozilla 1.1.
> I put my edited mozilla-1.1.spec file in /usr/src/redhat/SPECS and the
> source and patches from the source RPM in /usr/src/redhat/SOURCES.
> Then in SPECS I did a "rpm -bb mozilla-1.1.spec".  

...Alan,

would you mind posting your .spec file?

cheers
-- 
	john in sydney
=================================
 Mandrake Linux 8.2
 Kernel version: 2.4.18-8.1mdk
 Uptime: 22 days 15 hours 52 minutes
=================================




^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: difference between rpm -bb & rpm -bc
  2002-09-08  2:10 ` John Haywood
@ 2002-09-08  2:35   ` Ted Goodridge, Jr
  0 siblings, 0 replies; 8+ messages in thread
From: Ted Goodridge, Jr @ 2002-09-08  2:35 UTC (permalink / raw)
  To: axp-list

How about that SRPM you edited as well ;)

Ted

> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> Behalf Of John Haywood
> Sent: Saturday, September 07, 2002 9:10 PM
> To: axp-list@redhat.com
> Subject: Re: difference between rpm -bb & rpm -bc
> 
> On Tuesday 03 September 2002 02:01, you wrote:
> > Here's what I did last night to make a local ev56 version of mozilla
> 1.1.
> > I put my edited mozilla-1.1.spec file in /usr/src/redhat/SPECS and
the
> > source and patches from the source RPM in /usr/src/redhat/SOURCES.
> > Then in SPECS I did a "rpm -bb mozilla-1.1.spec".
> 
> ...Alan,
> 
> would you mind posting your .spec file?
> 
> cheers
> --
> 	john in sydney
> =================================
>  Mandrake Linux 8.2
>  Kernel version: 2.4.18-8.1mdk
>  Uptime: 22 days 15 hours 52 minutes
> =================================
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-08  2:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-02  0:30 difference between rpm -bb & rpm -bc Ted Goodridge, Jr
2002-09-02  1:05 ` Michal Jaegermann
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

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