Skip to contentSkip to conversation

lldpd: configure the systemd unit file dir

PATCH New [email protected] 1 participant 1 message Oct 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lldpd: configure the systemd unit file dir

From: Roy Li <[email protected]>

configure the systemd unit file dir, otherwise it will be auto-checked by 'pkg-config --variable=systemdsystemunitdir systemd', but if systemd is not built firstly, and the the unit file will not be installed, and lead to below error:
ERROR: Function failed: SYSTEMD_SERVICE_lldpd value lldpd.service does not exist
and disable sysusersdir, since sysuser is not used currently.

---
 meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-networking/recipes-daemons/lldpd/lldpd_0.7.17.bb +4 -1
index 47d3c38..ba7f09e 100644
@@ -24,7 +24,10 @@ GROUPADD_PARAM_${PN} = "--system lldpd"
 EXTRA_OECONF += "--without-embedded-libevent \
                  --disable-oldies \
                  --with-privsep-user=lldpd \
-                 --with-privsep-group=lldpd"
+                 --with-privsep-group=lldpd \
+                 --with-systemdsystemunitdir=${systemd_system_unitdir} \
+                 --without-sysusersdir \
+"
 
 PACKAGECONFIG ??= "cdp fdp edp sonmp lldpmed dot1 dot3"
 PACKAGECONFIG[json] = "--with-json,--without-json,jansson"
Signature · 1 line
1.9.1