From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 6C79E3ECF2 for ; Mon, 2 Sep 2002 01:05:58 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g8255sN18079 for axp-list@listman.redhat.com; Mon, 2 Sep 2002 01:05:54 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g8255sY18074 for ; Mon, 2 Sep 2002 01:05:54 -0400 Received: from pop015.verizon.net (pop015pub.verizon.net [206.46.170.172]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g824oMl22224 for ; Mon, 2 Sep 2002 00:50:22 -0400 Received: from teleport.com ([4.47.74.149]) by pop015.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20020902050548.QVFV2139.pop015.verizon.net@teleport.com> for ; Mon, 2 Sep 2002 00:05:48 -0500 Message-ID: <3D72F243.B00C7390@teleport.com> Date: Sun, 01 Sep 2002 22:08:19 -0700 From: Alan Young X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: difference between rpm -bb & rpm -bc References: <000801c2521e$98d04e00$6a700044@outpost23> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at pop015.verizon.net from [4.47.74.149] using ID at Mon, 2 Sep 2002 00:05:48 -0500 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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 .src.rpm > > > > and this will worry for you about all proper steps. > > > > > (and what is the difference) between > > > > > > rpm -bb > > > rpm -bc > > > > 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 > > > > ......... > > -bb build binary package only from > > > ......... > > > > 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