Skip to contentSkip to conversation

lxc: Add lua to PACKAGECONFIG

PATCH In review Jonatan Pålsson 3 participants 3 messages Mar 27, 2017 – Mar 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lxc: Add lua to PACKAGECONFIG

Lua support is automatically enabled when configuring LXC if lua is available in the sysroot. The packaging step will fail since the lua related files are not in FILES.

This patch explicitly enables/disables lua support using PACKAGECONFIG, and also adds lua-related files to FILES.

---
 recipes-containers/lxc/lxc_2.0.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-containers/lxc/lxc_2.0.0.bb +4 -0
index 250ac4d..c98d1a7 100644
@@ -65,6 +65,7 @@ PACKAGECONFIG[templates] = ",,, ${PN}-templates"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
 PACKAGECONFIG[seccomp] ="--enable-seccomp,--disable-seccomp,libseccomp,libseccomp"
 PACKAGECONFIG[python] = "--enable-python,--disable-python,python3,python3-core"
+PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua,lua"
 
 # required by python3 to run setup.py
 export BUILD_SYS
@@ -86,6 +87,9 @@ FILES_${PN}-doc = "${mandir} ${infodir}"
 # For LXC the docdir only contains example configuration files and should be included in the lxc package
 FILES_${PN} += "${docdir}"
 FILES_${PN} += "${libdir}/python3*"
+FILES_${PN} += "${datadir}/lua/*"
+FILES_${PN} += "${libdir}/lua/lxc/*"
+FILES_${PN}-dbg += "${libdir}/lua/lxc/.debug"
 FILES_${PN}-dbg += "${libexecdir}/lxc/.debug ${libexecdir}/lxc/hooks/.debug"
 PACKAGES =+ "${PN}-templates ${PN}-setup ${PN}-networking"
 FILES_${PN}-templates += "${datadir}/lxc/templates"
Signature · 1 line
2.10.2
#1 lore raw
Quoted 9 lines · Jonatan Pålsson

Lua support is automatically enabled when configuring LXC if lua is available in the sysroot. The packaging step will fail since the lua related files are not in FILES.

This patch explicitly enables/disables lua support using PACKAGECONFIG, and also adds lua-related files to FILES.

---

This looks fine. I wasn't sure about the handling of the globbing in ${libdir}/lua/lxc but since -dbg comes first in the PACKAGES list it is all good. This addresses a bug report we have in meta-overc which I was just about to look at, thanks for getting this out first and saving me some time.

Mark

Quoted 33 lines
 recipes-containers/lxc/lxc_2.0.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-containers/lxc/lxc_2.0.0.bb +4 -1
index 250ac4d..c98d1a7 100644
@@ -65,6 +65,7 @@ PACKAGECONFIG[templates] = ",,, ${PN}-templates"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
 PACKAGECONFIG[seccomp] ="--enable-seccomp,--disable-seccomp,libseccomp,libseccomp"
 PACKAGECONFIG[python] = "--enable-python,--disable-python,python3,python3-core"
+PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua,lua"
 
 # required by python3 to run setup.py
 export BUILD_SYS
@@ -86,6 +87,9 @@ FILES_${PN}-doc = "${mandir} ${infodir}"
 # For LXC the docdir only contains example configuration files and should be included in the lxc package
 FILES_${PN} += "${docdir}"
 FILES_${PN} += "${libdir}/python3*"
+FILES_${PN} += "${datadir}/lua/*"
+FILES_${PN} += "${libdir}/lua/lxc/*"
+FILES_${PN}-dbg += "${libdir}/lua/lxc/.debug"
 FILES_${PN}-dbg += "${libexecdir}/lxc/.debug ${libexecdir}/lxc/hooks/.debug"
 PACKAGES =+ "${PN}-templates ${PN}-setup ${PN}-networking"
 FILES_${PN}-templates += "${datadir}/lxc/templates"
--

2.10.2

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

#2 lore raw
In reply to Jonatan Pålsson

merged.

Bruce

Quoted 49 lines · Jonatan Pålsson

Lua support is automatically enabled when configuring LXC if lua is available in the sysroot. The packaging step will fail since the lua related files are not in FILES.

This patch explicitly enables/disables lua support using PACKAGECONFIG, and also adds lua-related files to FILES.

---
 recipes-containers/lxc/lxc_2.0.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-containers/lxc/ renamed from recipes-containers/lxc/lxc_2.0.0.bb +0 -0

lxc_2.0.0.bb
index 250ac4d..c98d1a7 100644

recipes-containers/lxc/lxc_2.0.0.bb +0 -0
@@ -65,6 +65,7 @@ PACKAGECONFIG[templates] = ",,, ${PN}-templates"
 PACKAGECONFIG[selinux] = "--enable-selinux,--disable-

selinux,libselinux,libselinux"
PACKAGECONFIG[seccomp] ="--enable-seccomp,--disable-
seccomp,libseccomp,libseccomp"
PACKAGECONFIG[python] = "--enable-python,--disable-
python,python3,python3-core"

recipes-containers/lxc/lxc_2.0.0.bb +1 -0
+PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua,lua"
 
 # required by python3 to run setup.py
 export BUILD_SYS
@@ -86,6 +87,9 @@ FILES_${PN}-doc = "${mandir} ${infodir}"
 # For LXC the docdir only contains example configuration files and should

be included in the lxc package
FILES_${PN} += "${docdir}"
FILES_${PN} += "${libdir}/python3*"

recipes-containers/lxc/lxc_2.0.0.bb +3 -0
+FILES_${PN} += "${datadir}/lua/*"
+FILES_${PN} += "${libdir}/lua/lxc/*"
+FILES_${PN}-dbg += "${libdir}/lua/lxc/.debug"
 FILES_${PN}-dbg += "${libexecdir}/lxc/.debug ${libexecdir}/lxc/hooks/.

debug"
PACKAGES =+ "${PN}-templates ${PN}-setup ${PN}-networking" FILES_${PN}-templates += "${datadir}/lxc/templates"
--
2.10.2

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"