From 02602ac9c1f3e61f11d90053c578575254fa6323 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Fri, 23 Sep 2016 10:36:11 +0800 Subject: iproute2: make packageconfig selinux work iproute2 calls command pkg-config to check whether libselinux exists then enable or disable selinux support. That makes packageconfig doesn't work. The packageconfig selinux is set by checking whether distro feature selinux exists in with-selinux.bbclass. Modify the configure result file with same criteria. Signed-off-by: Kai Kang Signed-off-by: Joe MacDonald --- recipes-connectivity/iproute2/iproute2_%.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-connectivity/iproute2/iproute2_%.bbappend b/recipes-connectivity/iproute2/iproute2_%.bbappend index c1e8ed6..c866b54 100644 --- a/recipes-connectivity/iproute2/iproute2_%.bbappend +++ b/recipes-connectivity/iproute2/iproute2_%.bbappend @@ -1 +1,9 @@ inherit with-selinux + +do_configure_append() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'true', 'false', d)}; then + sed -i 's/\(HAVE_SELINUX:=\).*/\1y/' ${B}/Config + else + sed -i 's/\(HAVE_SELINUX:=\).*/\1n/' ${B}/Config + fi +} -- cgit v1.2.3-54-g00ecf