diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2019-09-12 15:55:31 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-09-14 23:51:16 -0400 |
commit | ab382e2453d652181eb7a6fb4dcf201d4b33b94a (patch) | |
tree | 490c5a5fb0b984bc953332de2bdc06a122452f42 /recipes-networking/openvswitch | |
parent | af40c8729841f5b86579962032006d922c5273fd (diff) | |
download | meta-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-x | recipes-networking/openvswitch/files/openvswitch-testcontroller | 10 | ||||
-rw-r--r-- | recipes-networking/openvswitch/openvswitch.inc | 2 |
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 | ||
41 | test -x $DAEMON || exit 0 | 41 | test -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 | ||
92 | log_begin_msg () { | ||
93 | echo "$@" | ||
94 | } | ||
95 | |||
96 | log_end_msg () { | ||
97 | echo "$@" | ||
98 | } | ||
99 | |||
92 | running() { | 100 | running() { |
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 | |||
16 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ | 16 | RDEPENDS_${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" |
19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" | 19 | RDEPENDS_${PN}-testcontroller = "${PN} ${PN}-pki" |
20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" | 20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" |
21 | RDEPENDS_${PN}-pki = "${PN}" | 21 | RDEPENDS_${PN}-pki = "${PN}" |
22 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" | 22 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" |