Skip to contentSkip to conversation

systemd-compat-units: Only enable for systemd in DISTRO_FEATURES

PATCH New Richard Purdie 1 participant 1 message Aug 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd-compat-units: Only enable for systemd in DISTRO_FEATURES

This recipe only makes sense when systemd is enabled and otherwise causes world build failures.

meta/recipes-core/systemd/systemd-compat-units.bb +3 -1
index 90811da..f246e83 100644
@@ -9,10 +9,12 @@ DEPENDS = "systemd-systemctl-native"
 
 S = "${WORKDIR}"
 
-inherit allarch
+inherit allarch distro_features_check
 
 ALLOW_EMPTY_${PN} = "1"
 
+REQUIRED_DISTRO_FEATURES = "systemd"
+
 SYSTEMD_DISABLED_SYSV_SERVICES = " \
   busybox-udhcpc \
   hwclock \