* [PATCH] openvswitch: drop LSB bits
@ 2019-09-12 19:55 Mark Asselstine
2019-09-15 3:53 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Mark Asselstine @ 2019-09-12 19:55 UTC (permalink / raw)
To: meta-virtualization, bruce.ashfield
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>
---
.../openvswitch/files/openvswitch-testcontroller | 10 +++++++++-
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 aad5ad6..57c7798 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
test -x $DAEMON || exit 0
-. /lib/lsb/init-functions
+. /usr/share/openvswitch/scripts/ovs-lib
# Default options, these can be overriden by the information
# at /etc/default/openvswitch-testcontroller
@@ -89,6 +89,14 @@ running_pid() {
return 0
}
+log_begin_msg () {
+ echo "$@"
+}
+
+log_end_msg () {
+ echo "$@"
+}
+
running() {
# Check if the process is running looking at /proc
# (works for all users)
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 46865bd..37fbe5a 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
RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
python3 perl perl-module-strict ${PN}-switch \
bash python3-twisted python3-six"
-RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki"
+RDEPENDS_${PN}-testcontroller = "${PN} ${PN}-pki"
RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
RDEPENDS_${PN}-pki = "${PN}"
RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch"
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] openvswitch: drop LSB bits
2019-09-12 19:55 [PATCH] openvswitch: drop LSB bits Mark Asselstine
@ 2019-09-15 3:53 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2019-09-15 3:53 UTC (permalink / raw)
To: Mark Asselstine; +Cc: meta-virtualization
merged.
Bruce
In message: [meta-virtualization][PATCH] openvswitch: drop LSB bits
on 12/09/2019 Mark Asselstine wrote:
> 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>
> ---
> .../openvswitch/files/openvswitch-testcontroller | 10 +++++++++-
> 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 aad5ad6..57c7798 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
>
> test -x $DAEMON || exit 0
>
> -. /lib/lsb/init-functions
> +. /usr/share/openvswitch/scripts/ovs-lib
>
> # Default options, these can be overriden by the information
> # at /etc/default/openvswitch-testcontroller
> @@ -89,6 +89,14 @@ running_pid() {
> return 0
> }
>
> +log_begin_msg () {
> + echo "$@"
> +}
> +
> +log_end_msg () {
> + echo "$@"
> +}
> +
> running() {
> # Check if the process is running looking at /proc
> # (works for all users)
> diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
> index 46865bd..37fbe5a 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
> RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
> python3 perl perl-module-strict ${PN}-switch \
> bash python3-twisted python3-six"
> -RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki"
> +RDEPENDS_${PN}-testcontroller = "${PN} ${PN}-pki"
> RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
> RDEPENDS_${PN}-pki = "${PN}"
> RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch"
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-15 3:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-12 19:55 [PATCH] openvswitch: drop LSB bits Mark Asselstine
2019-09-15 3:53 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.