Skip to contentSkip to conversation

augeas: add selinux to PACKAGECONFIG if enable selinux distro feature

PATCH New Yi Zhao 1 participant 3 messages Aug 13, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 augeas: add selinux to PACKAGECONFIG if enable selinux distro feature

---
 meta-oe/recipes-support/augeas/augeas.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/augeas/augeas.inc +1 -1
index 23a057135..d83ba493e 100644
@@ -27,7 +27,7 @@ do_install:append() {
     rm -fr ${D}${datadir}/vim
 }
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
 PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 networkmanager: add PACKAGECONFIG for audit and selinux

Add them to PACKAGECONFIG if enable selinux distro feature.

---
 .../networkmanager/networkmanager_1.32.4.bb                    | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-connectivity/networkmanager/networkmanager_1.32.4.bb +3 -0
index 0ef525d31..167d81022 100644
@@ -59,6 +59,7 @@ PACKAGECONFIG ??= "nss ifupdown dnsmasq nmcli \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
     ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \
 "
 
 inherit ${@bb.utils.contains('PACKAGECONFIG', 'nmcli', 'bash-completion', '', d)}
@@ -83,6 +84,8 @@ PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free"
 PACKAGECONFIG[cloud-setup] = "--with-nm-cloud-setup=yes,--with-nm-cloud-setup=no"
 PACKAGECONFIG[nmcli] = "--with-nmcli=yes,--with-nmcli=no,readline"
 PACKAGECONFIG[ovs] = "--enable-ovs,--disable-ovs,jansson"
+PACKAGECONFIG[audit] = "--with-libaudit,--without-libaudit,audit"
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 PACKAGES =+ " \
   ${PN}-nmcli ${PN}-nmcli-doc \
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 1/1 network-manager-applet: add selinux to PACKAGECONFIG if enable selinux distro feature

In reply to Yi Zhao
---
 .../network-manager-applet/network-manager-applet_1.22.0.bb     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.22.0.bb +1 -1
index 28d95d442..cef7c7569 100644
@@ -16,7 +16,7 @@ EXTRA_OEMESON = "-Dappindicator=no"
 # We currently don't build NetworkManager with libteamdctl support
 EXTRA_OEMESON += "-Dteam=false"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
 PACKAGECONFIG[modemmanager] = "-Dwwan=true, -Dwwan=false, modemmanager"
 PACKAGECONFIG[selinux] = "-Dselinux=true, -Dselinux=false, libselinux"
 
Signature · 1 line
2.25.1