RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ VENDOR rpm/build/ parsePreamble.c

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 27 Dec 2007 - 19:17:22 CET
Message-Id: <4182E5A6-6FBA-4593-9632-8E615646709A@mac.com>

On Dec 27, 2007, at 1:06 PM, Ralf S. Engelschall wrote:

> On Thu, Dec 27, 2007, Ralf S. Engelschall wrote:
>
>> [...]
>> YES, YES, YES! Exactly *THIS* would be what we really need! I was not
>> aware that the old values are still preserved on a stack.
>> [...]
>
> Just tried it:
>
> | $ rpm --define 'foo bar' --eval '%foo' --define 'foo baz' --eval  
> '%foo' --undefine 'foo' --eval '%foo'
> | bar
> | baz
> | bar
>
> Very nice, very nice. I cannot just wait until I see Jeff's commit
> to support this:
>
> | $ rpm --define 'foo foo' --define 'foo bar' --define 'foo quux' -- 
> eval "%{@foo:\n}"
> | foo
> | bar
> | quux

Thanks for the syntax hint ;-)

>
> Very interesting what rather cool functionalities are under the hat
> of RPM and which nobody beside Jeff seems to know about at all. I
> guess there are even more those cool things which we just have to
> discovered... ;-)

Hehe. With arbitrary tags, I hope for "Specfile Sonnets" ala black  
perl poetry.

Larry Wall beware, there's Artistic competition ;-)

73 de Jeff
Received on Thu Dec 27 19:17:32 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.