RPM Community Forums

Mailing List Message of <rpm-users>

Re: Glibc %post

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 10 May 2010 - 00:34:27 CEST
Message-Id: <201005100034.31360.eveith@wwweb-library.net>
Hash: SHA1

On Monday 10 May 2010, Jeff Johnson <n3npq@mac.com> wrote:
> Rip out /usr/sbin/glibc_post_upgrade.i686 would be my guidance
> if you _MUST_ bet your job on the result. Its easier to learn
> lua than look at the pages of utterly useless (but portable!) ASM voo-doo
> to do a system call portably.

Yeah, uh, honestly, I tried to understand the glibc_post_upgrade thingy 
today (and on some other occasions), and while I get what its goal is, well, 
the source itself leaves me drooling and giggeling for some time.

> > There was a limit on the bytes of embedded lua/perl/whatever AFAIR, is
> > this still true?
> That limit doesn't apply @rpm5.org (and has never really been
> anything other than a paranoid process control: if you get the package
> "right" there's no intrinsic reason to check, the only limit is
> 32bits in a uint32_t (modulo minor overhead)).

Uh, that's cool. So I could use Lua to, for example, expand variables in a 
%{SOURCE} file? For example, %{_sbindir} in an init script or putting some 
"%define _my_foo 42" in the spec file and having it properly expanded in 

Version: GnuPG v1.4.9 (GNU/Linux)

Received on Mon May 10 00:35:00 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.