[Buildroot] [v4 1/2] luainterpreter: create virtual package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Sep 30 20:54:08 UTC 2013


Dear Frank Hunleth,

On Mon, 30 Sep 2013 14:31:46 -0400, Frank Hunleth wrote:

> > +#############################################################
> > +#
> > +# Virtual package for luainterpreter
> > +#
> > +#############################################################
> > +
> > +LUAINTERPRETER_VERSION = 5.1
> 
> I was curious on your choice of version number for the virtual
> package. Is this intended to be used for API compatibility checks?
> 
> The reason that I'm asking is that I'm going to need to upgrade a
> project to Lua 5.2. There are enough API differences between Lua 5.1
> and 5.2 that it would be useful to use your patch set and add Lua 5.2
> as another luainterpreter. Using LUAINTERPRETER_VERSION sounds like
> one way of checking Lua API compatibility in other projects. Or did
> you have other thoughts?
> 
> Also, any word on the status of your patches?

Having a "version" attached to a virtual package does not make sense, I
believe.

If there are several incompatible versions of Lua that need to be
supported in Buildroot, then they must be packaged as separate
packages: lua, lua52 for example, like we're doing for python vs.
python4 and qt vs. qt5.

A virtual package should remain only have as dependencies packages that
provide the same API, i.e that interchangeable.

(Note: I have no knowledge about Lua specifically, those statements are
generic Buildroot rules.)

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list