[oe-commits] Chong.Lu at windriver.com : lvm2: add explicit selinux support control

git at git.openembedded.org git at git.openembedded.org
Fri Apr 18 09:48:12 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 88f86041a84d1720fa88a6c29b037d6f9bd602b2
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=88f86041a84d1720fa88a6c29b037d6f9bd602b2

Author: Chong.Lu at windriver.com <Chong.Lu at windriver.com>
Date:   Thu Apr 10 16:05:56 2014 +0800

lvm2: add explicit selinux support control

package has configure options controlling selinux support,
so we want to explicitly use them via PACKAGECONFIG.

Signed-off-by: Joe Slater <jslater at windriver.com>
Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc
index 63d2cdb..c6a9ec0 100644
--- a/meta-oe/recipes-support/lvm2/lvm2.inc
+++ b/meta-oe/recipes-support/lvm2/lvm2.inc
@@ -30,6 +30,10 @@ EXTRA_OECONF = "--with-user= \
                 --with-udev-prefix= \
 "
 
+PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
+
 inherit autotools
 
 do_install_append() {



More information about the Openembedded-commits mailing list