Skip to contentSkip to conversation

ucarp: add initscripts-functions as runtime dependency when using systemd

PATCH New Yi Zhao 1 participant 1 message Sep 24, 2019

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 ucarp: add initscripts-functions as runtime dependency when using systemd

The ucarp.service invokes script /usr/libexec/ucarp to start/stop the ucarp service. But the /etc/init.d/functions file which is required by the script is not installed by default when using systemd. Explicitly set the initscripts-functions package as the runtime dependency when using systemd.

---
 meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb +1 -0
index 6f30bf7..f5be421 100644
@@ -31,6 +31,7 @@ SRC_URI[sha256sum] = "f3cc77e28481fd04f62bb3d4bc03104a97dd316c80c0ed04ad7be24b54
 inherit autotools gettext systemd
 
 DEPENDS = "libpcap"
+RDEPENDS_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','initscripts-functions','',d)}"
 
 SYSTEMD_SERVICE_${PN} = "ucarp.service"
 SYSTEMD_AUTO_ENABLE = "disable"
Signature · 1 line
2.7.4