[1055] in RedHat Linux List
Re: RPM questions
daemon@ATHENA.MIT.EDU (Donnie Barnes)
Sat Oct 26 01:29:40 1996
To: redhat-list@redhat.com
In-reply-to: Your message of "Fri, 25 Oct 1996 23:09:21 CDT."
<199610260409.AAA14344@redhat.com>
Date: Sat, 26 Oct 1996 01:27:43 -0400
From: Donnie Barnes <djb@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Your message on: Fri, 25 Oct 1996 23:09:21 CDT
>1)
>I am trying to build qmail from the src.rpm package. I do
> rpm -bp
>then
> rpm -bc
>and notice that the `prep' stage is done again. Then I do
>
> rpm -bi
>
>and all the previous steps are redone. This contradicts the man page
>of rpm. For example:
>
> -bc Do the "%build" stage from the spec file (after
> doing the prep stage). This generally involves the
> equivalent of a "make".
>
>Or I just got confused, and in fact the man page is saying:
>
> "Do the prep and then the build stage"
>
>Also, it seems to me that `rpm -ba' does more than advertised in the
>man page:
>
> -ba Build binary and source packages (after doing the
> prep, build, and install stages).
>
>Indeed, it for me at least it executes the `clean' section.
You're reading it wrong. Each of the above steps starts from
scratch, and always will. You can *not* jump into a build part
of the way through with an RPM command.
Part of the point of RPM is to ensure rebuildability of a package.
If RPM allowed folks to do everying through the "build" section,
then allowed you to muck with it, then package it with another RPM
command things could end up unrebuildable by the next user.
>2)
>I did not see this documented in the rpm-howto, but studying spec
>files it seems that if I just put a directory name in the `Files'
>section then the content of the whole directory is to be installed.
>Is this true?
Yes, unless you precede it with %dir in the filelist.
>(I was not sure if I should post this here, but somehow I think of the
>rpm list as one for experts).
Actually, no, this is *exactly* what the RPM list is for.
--Donnie
--
Donnie Barnes http://www.redhat.com/~djb "Bah."
djb@redhat.com http://www.turner.com/lazarusman/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_Things You'd NEVER Expect A Southerner To Say_ by Vic Henley:
** I hate the long version of ``Free Bird''.
--
PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-HOWTO
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null