[oe-commits] Ross Burton : systemd: skip in non-systemd distros to fix world builds
git at git.openembedded.org
git at git.openembedded.org
Mon Jan 21 12:48:50 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: a2553b5f8b80ca0cd578afa2d2857ebb2b70ee3c
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a2553b5f8b80ca0cd578afa2d2857ebb2b70ee3c
Author: Ross Burton <ross.burton at intel.com>
Date: Mon Jan 21 12:15:30 2013 +0000
systemd: skip in non-systemd distros to fix world builds
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/systemd/systemd_196.bb | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
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")
+}
More information about the Openembedded-commits
mailing list