RPM Community Forums

Mailing List Message of <rpm-users>

Re: Glibc %post

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 10 May 2010 - 15:43:29 CEST
Message-id: <E32A462C-B4A6-410A-9E0C-71080270E063@mac.com>

On May 10, 2010, at 9:18 AM, Eric MSP Veith wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Monday 10 May 2010, Jeff Johnson <n3npq@mac.com> wrote:
>> The limit is currently at 110K iirc.
> 
> Ok, that's likely more I'm ever going to need. It's nothing more than simple 
> line-based regexp trickery I do, and rpm.expand("%{foo}") does expansion of 
> things I %define in a spec file, so that's exactly what I wanted. Now the 
> rest should be a piece of cake, like finding out how I pass arguments to 
> embedded lua from within a spec file to be able to write "%{myluathingy foo 
> bar baz quuz}"
> 

If you want *RE's you might try embedded perl instead of lua.

The main reason for perl instead is that perl (unlike lua)
has stronger convention for loading modules and so development
will be a whole lot easier.

OTOH, if you need "legacy portable" RPM embedding, there's only lua,
but you will likely find that "legacy" applied to the "embedding" is
not as important as looking carefully at what Lua extensions are
implemented.

> W00t, RPM5 is cool. :-)
> 
> /me push(&doc.todo, "embedded LUA")
> 

Don't forget JS (the preferred and most complete embedding) or python or ruby
or tcl or augeas or squirrel or ficl or "spook" or ...
languages embedded in RPM ;-)

73 de Jeff
Received on Mon May 10 15:44:04 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.