Patchwork [2/2] lvm2: add explicit selinux support control

login
register
mail settings
Submitter Chong.Lu@windriver.com
Date April 10, 2014, 8:05 a.m.
Message ID <671510a94c564ebff683cb256f7c75eed4bb2085.1397117000.git.Chong.Lu@windriver.com>
Download mbox | patch
Permalink /patch/70425/
State Accepted, archived
Headers show

Comments

Chong.Lu@windriver.com - April 10, 2014, 8:05 a.m.
package has configure options controlling selinux support,
so we want to explicitly use them via PACKAGECONFIG.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
 1 file changed, 4 insertions(+)

Patch

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() {