From patchwork Mon Jan 21 12:15:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/5] systemd: skip in non-systemd distros to fix world builds Date: Mon, 21 Jan 2013 12:15:30 -0000 From: Ross Burton X-Patchwork-Id: 43055 Message-Id: <53d6b4110f4e12cfde4dcfbef992cc44d8c58c1e.1358770449.git.ross.burton@intel.com> To: openembedded-core@lists.openembedded.org Signed-off-by: Ross Burton --- meta/recipes-core/systemd/systemd_196.bb | 8 ++++++++ 1 file changed, 8 insertions(+) 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") +}