Skip to contentSkip to conversation

autofs: Fix build breakage with systemd in DISTRO_FEATURE

PATCH In review Khem Raj 2 participants 2 messages Mar 18, 2013 – Mar 19, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 autofs: Fix build breakage with systemd in DISTRO_FEATURE

When systemd is in distro features we need to translate it into the appropriate PACKAGECONFIG flag

---
 .../recipes-daemons/autofs/autofs_5.0.7.bb         |    2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/autofs/autofs_5.0.7.bb +2 -0
index 6cc3b25..7d8cf17 100644
@@ -51,6 +51,8 @@ CFLAGS += "${LDFLAGS}"
 
 PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
 
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+
 EXTRA_OEMAKE = "DONTSTRIP=1"
 EXTRA_OECONF += "--disable-mount-locking \
                 --enable-ignore-busy --with-openldap=no \
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · [[oe] [meta-networking][PATCH] autofs: Fix build breakage with systemd in…

When systemd is in distro features we need to translate it into the appropriate PACKAGECONFIG flag

Aw poo. Thanks, Khem. Merged.

-J.

Quoted 19 lines
---
 .../recipes-daemons/autofs/autofs_5.0.7.bb         |    2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/autofs/autofs_5.0.7.bb +2 -0
index 6cc3b25..7d8cf17 100644
@@ -51,6 +51,8 @@ CFLAGS += "${LDFLAGS}"
 
 PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd"
 
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+
 EXTRA_OEMAKE = "DONTSTRIP=1"
 EXTRA_OECONF += "--disable-mount-locking \
                 --enable-ignore-busy --with-openldap=no \
Signature · 2 lines
-Joe MacDonald.
:wq