summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2019-09-12 15:55:31 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-09-14 23:51:16 -0400
commitab382e2453d652181eb7a6fb4dcf201d4b33b94a (patch)
tree490c5a5fb0b984bc953332de2bdc06a122452f42 /recipes-networking/openvswitch
parentaf40c8729841f5b86579962032006d922c5273fd (diff)
downloadmeta-virtualization-ab382e2453d652181eb7a6fb4dcf201d4b33b94a.tar.gz
openvswitch: drop LSB bits
openembedded-core commit fb064356af61 [Remove LSB support] dropped the 'lsb' recipe which caused openvswitch to throw a dependency fail for both sysvinit and systemd builds. LSB init functions for log_begin_msg, log_end_msg and others were being used. We now use the functions from ovs-lib which are part of OVS and supply the remaining ones directly. This allows us to regain the functionality and drop the dependency on 'lsb'. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/openvswitch')
-rwxr-xr-xrecipes-networking/openvswitch/files/openvswitch-testcontroller10
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc2
2 files changed, 10 insertions, 2 deletions
diff --git a/recipes-networking/openvswitch/files/openvswitch-testcontroller b/recipes-networking/openvswitch/files/openvswitch-testcontroller
index aad5ad60..57c77983 100755
--- a/recipes-networking/openvswitch/files/openvswitch-testcontroller
+++ b/recipes-networking/openvswitch/files/openvswitch-testcontroller
@@ -40,7 +40,7 @@ PIDFILE=/var/run/openvswitch/$NAME.pid
40 40
41test -x $DAEMON || exit 0 41test -x $DAEMON || exit 0
42 42
43. /lib/lsb/init-functions 43. /usr/share/openvswitch/scripts/ovs-lib
44 44
45# Default options, these can be overriden by the information 45# Default options, these can be overriden by the information
46# at /etc/default/openvswitch-testcontroller 46# at /etc/default/openvswitch-testcontroller
@@ -89,6 +89,14 @@ running_pid() {
89 return 0 89 return 0
90} 90}
91 91
92log_begin_msg () {
93 echo "$@"
94}
95
96log_end_msg () {
97 echo "$@"
98}
99
92running() { 100running() {
93# Check if the process is running looking at /proc 101# Check if the process is running looking at /proc
94# (works for all users) 102# (works for all users)
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 46865bd1..37fbe5ab 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -16,7 +16,7 @@ DEPENDS += "bridge-utils openssl python3 perl python3-six-native coreutils-nativ
16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ 16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
17 python3 perl perl-module-strict ${PN}-switch \ 17 python3 perl perl-module-strict ${PN}-switch \
18 bash python3-twisted python3-six" 18 bash python3-twisted python3-six"
19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" 19RDEPENDS_${PN}-testcontroller = "${PN} ${PN}-pki"
20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" 20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
21RDEPENDS_${PN}-pki = "${PN}" 21RDEPENDS_${PN}-pki = "${PN}"
22RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" 22RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch"