[oe-commits] Ross Burton : systemd-serialgetty: skip package when not using systemd
git at git.openembedded.org
git at git.openembedded.org
Mon Jan 21 19:05:53 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 192efd033c38205e114f62e9f62696a9a49b0970
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=192efd033c38205e114f62e9f62696a9a49b0970
Author: Ross Burton <ross.burton at intel.com>
Date: Mon Jan 21 18:09:20 2013 +0000
systemd-serialgetty: skip package when not using systemd
As this package RDEPENDS on systemd it wants to build systemd, but if systemd
isn't a DISTRO_FEATURE then that package is skipped so world builds fail. Solve
this by skipping this package too.
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-serialgetty.bb | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb b/meta/recipes-core/systemd/systemd-serialgetty.bb
index 3e2a0e3..96cbf31 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty.bb
+++ b/meta/recipes-core/systemd/systemd-serialgetty.bb
@@ -40,3 +40,9 @@ RDEPENDS_${PN} = "systemd"
# This is a machine specific file
FILES_${PN} = "${systemd_unitdir}/system/serial-getty at .service ${sysconfdir}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+# As this package is tied to systemd, only build it when we're also building systemd.
+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