Why bundling lua?

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Tue Apr 25 09:18:54 PDT 2006


Panu Matilainen wrote :

> On Tue, 2006-04-25 at 17:40 +0200, Ralf Corsepius wrote:
> > Hi,
> > 
> > Question: Why does apt-rpm have a copy of lua bundled with it and can't
> > use an external lua instead?
> > 
> > I see apt-pkg/luaiface.h is accessing some private lua header files, but
> > I know too little about lua to be able to understand it.
> 
> Because it's not just an arbitrarily selected script interpreter to run
> external commands at certain points, it's *embedded* in libapt so that
> it can affect update/downgrade etc decisions, alter configuration at
> runtime and such. It simply wouldn't be possible to do those things from
> an external process.

I think Ralf was just asking why apt couldn't link against a separate
static lua library. AFAIK, lua is only provided as a static library when
build from the original sources, never as a DSO.

Maybe lua could be removed from the apt tarball, but still embedded at
build time by using the static library provided by the lua-devel package.

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 5.89 (Rawhide) - Linux kernel 2.6.16-1.2147_FC6
Load : 0.51 0.54 0.54



More information about the Apt-Rpm mailing list