From rpm-list-admin@freshrpms.net  Fri Aug 16 10:58:23 2002
Return-Path: <rpm-zzzlist-admin@freshrpms.net>
Delivered-To: yyyy@localhost.netnoteinc.com
Received: from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 2C42543C4C
	for <jm@localhost>; Fri, 16 Aug 2002 05:56:45 -0400 (EDT)
Received: from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Fri, 16 Aug 2002 10:56:45 +0100 (IST)
Received: from egwn.net (ns2.egwn.net [193.172.5.4]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7FJYf715049 for
    <jm-rpm@jmason.org>; Thu, 15 Aug 2002 20:34:41 +0100
Received: from auth02.nl.egwn.net (localhost [127.0.0.1]) by egwn.net
    (8.11.6/8.11.6/EGWN) with ESMTP id g7FJW2J26798; Thu, 15 Aug 2002 21:32:03
    +0200
Received: from ex02.idirect.net (ex02.idirect.net [208.226.76.48]) by
    egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g7FJUkJ16228 for
    <rpm-list@freshrpms.net>; Thu, 15 Aug 2002 21:30:46 +0200
X-Mimeole: Produced By Microsoft Exchange V6.0.4417.0
Content-Class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: RE: Documentation about built-in RPM macros?
Message-Id: <BADF3C947A1BD54FBA75C70C241B0B9E10AA97@ex02.idirect.net>
X-MS-Has-Attach: 
X-MS-Tnef-Correlator: 
Thread-Topic: Documentation about built-in RPM macros?
Thread-Index: AcJEjYzDuVbFyMvQTtimZrgVK0GviAAAaRAw
From: "Harig, Mark A." <maharig@idirect.net>
To: <rpm-zzzlist@freshrpms.net>
X-Mailscanner: Found to be clean, Found to be clean
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by egwn.net id
    g7FJUkJ16228
Sender: rpm-zzzlist-admin@freshrpms.net
Errors-To: rpm-zzzlist-admin@freshrpms.net
X-Beenthere: rpm-zzzlist@freshrpms.net
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: rpm-zzzlist@freshrpms.net
List-Help: <mailto:rpm-zzzlist-request@freshrpms.net?subject=help>
List-Post: <mailto:rpm-zzzlist@freshrpms.net>
List-Subscribe: <http://lists.freshrpms.net/mailman/listinfo/rpm-zzzlist>,
    <mailto:rpm-list-request@freshrpms.net?subject=subscribe>
List-Id: Freshrpms RPM discussion list <rpm-zzzlist.freshrpms.net>
List-Unsubscribe: <http://lists.freshrpms.net/mailman/listinfo/rpm-zzzlist>,
    <mailto:rpm-list-request@freshrpms.net?subject=unsubscribe>
List-Archive: <http://lists.freshrpms.net/pipermail/rpm-zzzlist/>
X-Original-Date: Thu, 15 Aug 2002 15:30:40 -0400
Date: Thu, 15 Aug 2002 15:30:40 -0400



> -----Original Message-----
> From: Ralf Ertzinger [mailto:ralf@camperquake.de]
> Sent: Thursday, August 15, 2002 2:53 PM
> To: rpm-zzzlist@freshrpms.net
> Subject: Re: Documentation about built-in RPM macros?
> 
> 
> Hi.
> 
> Dave Cridland <dave@cridland.net> wrote:
> 
> > > recommends *against* using '%configure' ("We will try to 
> support users
> > > who accidentally type the leading % but this should not be relied
> > > upon."), and yet
> 
> [snip]
> 
> > They're just suggesting people use "./configure" instead.
> 
> No, they do not (what would be the use of that, anyway?). 
> They say that
> they will _try_ to eval macros even if the user forgot to pass the
> leading '%', but that this feature should not be relied upon.
> 

Hmm.  1. The quote is not suggesting that people use './configure'.
2. The quote is not saying that rpm will _try_ to eval macros even
if the user forgot to pass the leading '%'.  It is saying the opposite:
rpm will try to support users who "forgot" to _leave off_ the leading
'%'.  That is what the documentation _says_, but rpm does not follow
the documentation.  If you leave off the '%', then rpm will not eval
the macro, at least for rpm 4.0.4.

Confused?

Anyway, back to my original problem: what about documentation for
the macros '%post', '%postun', and '%files'?  Here's some of what
I found "documented" in the the CHANGES file that 'rpm' includes:

Line 46:
	- macro for %files, always include %defattr(), redhat config
only.

Line 49:
	- bail on %files macro.

Hmm.  So, there is no %files macro?

Line 172-174:
	- add "rpmlib(ScriptletInterpreterArgs)" to track
	    %post -p "/sbin/ldconfig -n /usr/lib"
	  incompatibilities.

I'm unable to find a corresponding description for %postun, but it
appears to work just the same.  The important things to remember are:

  1. Don't forget the double-quotes around the -p argument string.  If
     you leave them off, you'll get the cryptic error message:

     error: line #: Package does not exist: %post -p /sbin/ldconfig -n
/usr/lib

  2. This only works with RPM 4.0.3 or later.

> -- 
> On the first day of Christmas my true love sent to me
>        A badly configured newsreader
> 
> _______________________________________________
> RPM-List mailing list <RPM-List@freshrpms.net>
> http://lists.freshrpms.net/mailman/listinfo/rpm-list
> 

_______________________________________________
RPM-List mailing list <RPM-List@freshrpms.net>
http://lists.freshrpms.net/mailman/listinfo/rpm-list