On May 9, 2010, at 6:14 PM, Eric MSP Veith wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Monday 10 May 2010, Jeff Johnson <email@example.com> wrote:
>> I'll wager the same task that /usr/sbin/glibc_post_upgrade.i686 does can
>> be done like 10x fewer lines of lua than in C and voo-doo ASM. ANy
>> I already know my answer: The house collects on "00" and "0" no matter
>> what ;-)
> I guess the house just lost the bet. I am *forced* to produce a good glibc
> (actually, eglibc) RPM that does upgrading from, say, glibc-2.7 to
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.
> There was a limit on the bytes of embedded lua/perl/whatever AFAIR, is this
> still true?
The only limit I'm aware of _WAS_ 16Mb for tag data store, a "sanity"
check applied for all tag content in *.rpm packages.
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)).
16Mb is one helluva Lua script no matter what. You won't need anything
near 16Mb to replace glibc_post_upgrade, its largely a single
73 de Jeff
Received on Mon May 10 00:28:05 2010