From: Ross Burton Date: Mon, 21 Jan 2013 12:15:30 +0000 (+0000) Subject: systemd: skip in non-systemd distros to fix world builds X-Git-Tag: rev_ivi_2015_02_04~14135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa65627481029758bf3ea002830c2578d01376b6;p=scm%2Fbb%2Ftizen-distro.git systemd: skip in non-systemd distros to fix world builds (From OE-Core rev: a2553b5f8b80ca0cd578afa2d2857ebb2b70ee3c) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_196.bb b/meta/recipes-core/systemd/systemd_196.bb index 1861437..85bb4f9 100644 --- a/meta/recipes-core/systemd/systemd_196.bb +++ b/meta/recipes-core/systemd/systemd_196.bb @@ -247,3 +247,11 @@ update-alternatives --remove reboot ${base_bindir}/systemctl update-alternatives --remove shutdown ${base_bindir}/systemctl update-alternatives --remove poweroff ${base_bindir}/systemctl } + + +# As this recipe builds udev, respect the systemd DISTRO_FEATURE so we don't try +# building udev and systemd in world builds. +python () { + if not oe.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): + raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES") +}