Skip to contentSkip to conversation

glib-2.0: add PACKAGECONFIG for selinux

PATCH New Yi Zhao 1 participant 1 message Aug 11, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 glib-2.0: add PACKAGECONFIG for selinux

Add PACKAGECONFIG for selinux rather than disable it directly. This is useful for selinux distro feature.

---
 meta/recipes-core/glib-2.0/glib.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib.inc +2 -1
index 4859d28097..7528337456 100644
@@ -45,8 +45,9 @@ PACKAGECONFIG[manpages] = "-Dman=true, -Dman=false, libxslt-native xmlto-native"
 # libelf is auto-detected without a configuration option
 PACKAGECONFIG[libelf] = ",,elfutils"
 PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false,dbus"
+PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux"
 
-EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=disabled"
+EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false"
 
 do_configure:prepend() {
 	sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
Signature · 1 line
2.25.1