Skip to contentSkip to conversation

lxc: add PACKAGECONFIG for selinux

PATCH In review [email protected] 2 participants 2 messages Dec 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lxc: add PACKAGECONFIG for selinux

From: Wenzong Fan <[email protected]>

Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like below:

WARN: lxc: lxc rdepends on libselinux, but it isn't a build dependency?

---
 recipes-containers/lxc/lxc_1.0.6.bb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-containers/lxc/lxc_1.0.6.bb +4 -1
index 0805573..e6ec68d 100644
@@ -40,11 +40,14 @@ S = "${WORKDIR}/${BPN}-${PV}"
 PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
 EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
 
-PACKAGECONFIG ??= "templates"
+PACKAGECONFIG ??= "templates \
+    ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+"
 PACKAGECONFIG[doc] = "--enable-doc --enable-api-docs,--disable-doc --disable-api-docs,,"
 PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,,"
 PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
 PACKAGECONFIG[templates] = ",,, ${PN}-templates"
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
 
 inherit autotools pkgconfig ptest
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · On Wed, Dec 3, 2014 at 2:41 AM, <[email protected]> wrote:

From: Wenzong Fan <[email protected]>

Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like below:

WARN: lxc: lxc rdepends on libselinux, but it isn't a build dependency?

merged.

Bruce

Quoted 34 lines
---
 recipes-containers/lxc/lxc_1.0.6.bb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-containers/lxc/lxc_1.0.6.bb +4 -2
index 0805573..e6ec68d 100644
@@ -40,11 +40,14 @@ S = "${WORKDIR}/${BPN}-${PV}"
 PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
 EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
 
-PACKAGECONFIG ??= "templates"
+PACKAGECONFIG ??= "templates \
+    ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+"
 PACKAGECONFIG[doc] = "--enable-doc --enable-api-docs,--disable-doc --disable-api-docs,,"
 PACKAGECONFIG[rpath] = "--enable-rpath,--disable-rpath,,"
 PACKAGECONFIG[apparmour] = "--enable-apparmor,--disable-apparmor,apparmor,apparmor"
 PACKAGECONFIG[templates] = ",,, ${PN}-templates"
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,libselinux"
 
 inherit autotools pkgconfig ptest
 
--

1.7.9.5

--
_______________________________________________
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"