RPM Community Forums

Mailing List Message of <rpm-users>

Re: Glibc %post

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 10 May 2010 - 02:48:10 CEST
Message-id: <63BA339A-124D-4332-AA32-C45CDD58C9D2@mac.com>

On May 9, 2010, at 8:18 PM, Eric MSP Veith wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Monday 10 May 2010, Jeff Johnson <n3npq@mac.com> wrote:
>> So you want macros expanded generally within, say, %config file bodies?
> 
> Nope, not generally. That would be overhead. Although it wouldn't hurt, what 
> I have in mind is more like a embedded lua script that does macro expension 
> in a single file where I want it to expand macros, among other things.
> 
> Basically, what I'm asking is: Does rpm.expand() have (a) a size limit and 
> (b) the ability to expand things I define in the spec file?
> 

Ah the macro expansion limit.

The limit is currently at 110K iirc. The buffer size is tunable in rpmio/macros.c,
the 110Kb is known to work for OpenPKG (which is using embedded lua extensively).

lua _IS_ a programming language, you should not be limited by whatever size
a macro expansion buffer is. If you do hit the limit, you should likely
change your approach to use, say, /tmp files! wotta concept!

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