Patchwork [2/5] udev: skip in systemd distros, to fix world builds

login
register
mail settings
Submitter Ross Burton
Date Jan. 21, 2013, 12:15 p.m.
Message ID <986f484dfe24209632a147a8133192ec7c743f0d.1358770449.git.ross.burton@intel.com>
Download mbox | patch
Permalink /patch/43061/
State New
Headers show

Comments

Ross Burton - Jan. 21, 2013, 12:15 p.m.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-core/udev/udev.inc |    6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 9f60b17..facad0c 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -99,3 +99,9 @@  do_install_append () {
 
 	echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
 }
+
+# As systemd also builds udev, skip this package if we're doing a systemd build.
+python () {
+    if oe.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+        raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
+}