RPM 5 currently still ships with a copy of an ancient Lua version 5.0.2
from 2004 while the current Lua version from 2007 is already Lua 5.1.2.

I've prepared an upgrade of lua/ from 5.0.2 to 5.1.2 together with small
rpmio/rpmlua.c adjustments (the Lua API has changed) and some cleanups
in lua/local/ (the name "local/linit.c" is confused by Automake with the
top-level linit.c etc). The stuff seems to still work...

| $ ./rpm --eval '%{lua: print(7 + 42); }'
| 49
|

...but I've still not done any deeper testing as I don't know whether
we have some real tests at hand for the RPM Lua stuff. Before I commit
the upgrade and "Break Everything" (tm) ;-), does anybody have any
objections?

PS: Yes, the upgrade as a side-effects destroys Jeff's old splint(1)
    annoations in lua/ -- I really don't want to repeat all the
    annotations or even merge all of them manually into the largely
    changed Lua sources. But to be honest, I don't think RPM should do
    any linting in third-party code at all. This is the task of the
    third-party vendor, we should really just ship a copy of the code
    and at maximum edit in our local semantics modifications. Linting
    and debugging third-party code is IMHO really not our job here...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        [email protected]

Reply via email to