From: Alan Young <ayoung@teleport.com>
To: axp-list@redhat.com
Subject: Re: difference between rpm -bb & rpm -bc
Date: Sun, 01 Sep 2002 22:08:19 -0700 [thread overview]
Message-ID: <3D72F243.B00C7390@teleport.com> (raw)
In-Reply-To: 000801c2521e$98d04e00$6a700044@outpost23
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
next prev parent reply other threads:[~2002-09-02 5: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
2002-09-02 1:18 ` Ted Goodridge, Jr
2002-09-02 4:33 ` Michal Jaegermann
2002-09-02 5:08 ` Alan Young [this message]
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