Skip to contentSkip to conversation

apparmor: add distro check

PATCH New Armpit 1 participant 2 messages Dec 21, 2019

lore
Share & tools
lore

Armpit

author
#0 lore raw

PATCH 1/2 apparmor: add distro check

---
 recipes-mac/AppArmor/apparmor_2.13.3.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-mac/AppArmor/apparmor_2.13.3.bb +2 -1
index 60d5e68..32230a5 100644
@@ -30,7 +30,8 @@ S = "${WORKDIR}/git"
 
 PARALLEL_MAKE = ""
 
-inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages systemd
+inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages systemd features_check
+REQUIRED_DISTRO_FEATURES = "apparmor"
 
 PACKAGECONFIG ??= "python perl aa-decode"
 PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages"
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 smack: add distro check

---
 recipes-mac/smack/smack_1.3.1.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
recipes-mac/smack/smack_1.3.1.bb +6 -1
index f32d91b..b1ea4e9 100644
@@ -13,7 +13,12 @@ SRC_URI = " \
 
 PV = "1.3.1"
 
-inherit autotools update-rc.d pkgconfig ptest ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)}
+inherit autotools update-rc.d pkgconfig ptest
+inherit ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)}
+inherit features_check
+
+REQUIRED_DISTRO_FEATURES = "smack"
+
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.17.1