lxc: enable lua if package is selected
PATCH v2 1/1 lxc: enable lua if package is selected
lua and python bindings were removed with the same patch:
https://patchwork.ozlabs.org/patch/367361. There is a real issue with python but not with lua so enable it if lua is selected
Signed-off-by Fabrice Fontaine <[email protected]>
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Enable also lua binding when luajit is selected
package/lxc/lxc.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
package/lxc/lxc.mk +12 -1
@@ -10,7 +10,7 @@ LXC_LICENSE = LGPLv2.1+ LXC_LICENSE_FILES = COPYING LXC_DEPENDENCIES = libcap host-pkgconf LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \ - --disable-lua --disable-python --disable-werror \ + --disable-python --disable-werror \ $(if $(BR2_PACKAGE_BASH),,--disable-bash) ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
@@ -20,4 +20,15 @@ else LXC_CONF_OPTS += --disable-seccomp endif +ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y) +LXC_CONF_OPTS += --enable-lua +LXC_DEPENDENCIES += luainterpreter +ifeq ($(BR2_PACKAGE_LUAJIT),y) +# By default, lxc will only search for lua.pc +LXC_CONF_OPTS += --with-lua-pc=$(STAGING_DIR)/usr/lib/pkgconfig/luajit.pc +endif +else +LXC_CONF_OPTS += --disable-lua +endif + $(eval $(autotools-package))
Signature · 1 line
2.5.0
PATCH v2 1/1 lxc: enable lua if package is selected
Hello,
package/lxc/lxc.mk else · line 28
Quoted 6 lines · Fabrice Fontaine
package/lxc/lxc.mk +6
-0+ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y) +LXC_CONF_OPTS += --enable-lua +LXC_DEPENDENCIES += luainterpreter +ifeq ($(BR2_PACKAGE_LUAJIT),y) +# By default, lxc will only search for lua.pc +LXC_CONF_OPTS += --with-lua-pc=$(STAGING_DIR)/usr/lib/pkgconfig/luajit.pc
Passing --with-lua-pc=luajit is sufficient, so I've changed it this way, and applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com