RPM Community Forums

Mailing List Message of <rpm-users>

Re: macro args broken

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 21 Feb 2008 - 17:29:57 CET
Message-ID: <67DE1A38-0118-1000-9804-7587E2821887-Webmail-10013@mac.com>
On Thursday, February 21, 2008, at 01:52AM, "Ralf S. Engelschall" <rse+rpm-users@rpm5.org> wrote:
>Yes, the RPM macro parser uses positional options and does not support
>permutations of options and arguments (as it was based on getopt and
>because it makes sense for macros anyway). In latest RPM 5.1.DEVEL
>it actually uses POPT and could support permutations but I strongly
>recommend to keep it running like getopt there as else it would break
>lots of macros, I guess.

Correction: rpm-5.1.DEVEL is still using getopt, but I'll switch
to POPT soon after I don't have to wrestle with POPT_ARG_ARGV

(aswide) Sigh, POPT_ARG_ARGV will take years to use, life
used to be so so simple when popt was internal to rpm ...

73 de Jeff
Received on Thu Feb 21 17:30:00 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.