summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2020-04-02 14:26:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-02 08:27:19 +0100
commit0c91fcba446418ad1f71d3df9aa3b186bbd353c7 (patch)
treea93075488e23202bd9c6c741dc685637297f2e9c
parent27aec88c2ff4588acacadbe1cd61d7ce233fc817 (diff)
downloadopenembedded-core-contrib-0c91fcba446418ad1f71d3df9aa3b186bbd353c7.tar.gz
openembedded-core-contrib-0c91fcba446418ad1f71d3df9aa3b186bbd353c7.tar.bz2
openembedded-core-contrib-0c91fcba446418ad1f71d3df9aa3b186bbd353c7.zip
dhcp: add RDEPENDS for dhcp-client
Add iproute2 RDEPENDS for dhcp-client as /sbin/dhclient-systemd-wrapper which called by dhclient.service depends on ip command which provided by iproute2 package when systemd enabled in DISTRO_FEATURES. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/dhcp/dhcp.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index c4697beaf1..d46130d49b 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -100,6 +100,7 @@ do_install_append () {
PACKAGES += "dhcp-libs dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
PACKAGES_remove = "${PN}"
+RDEPENDS_${PN}-client += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'iproute2', '', d)}"
RDEPENDS_${PN}-dev = ""
RDEPENDS_${PN}-staticdev = ""
FILES_${PN}-libs = "${libdir}/libdhcpctl.so.0* ${libdir}/libomapi.so.0* ${libdir}/libdhcp.so.0*"