summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch.inc
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-06-20 16:25:54 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-06-21 14:25:14 -0400
commite86ae39489f1c17405d557f9204747594af29e6a (patch)
tree19896072691430242d237adbb7cf64bdeff5cbd1 /recipes-networking/openvswitch/openvswitch.inc
parentb263370eebd1df8befb9533da53c5ff8439607cc (diff)
downloadmeta-virtualization-e86ae39489f1c17405d557f9204747594af29e6a.tar.gz
openvswitch: switch to depending on python3
As far as I can tell openvswitch has been updated to work with python3 as well as with python(2). Switch to depend on python3 and use python3 for associated scripts. For the most part openvswitch will bind at runtime to either py2 or py3 regardless of these changes, with these changes we just do a better job of setting up the dependencies to facilitate py3 bindings. The openvswitch autotests results are mostly identical before and after this switch (failures move from python3 to python(2) test cases as expected, with some exceptions see below). When running the autotests/ptest with python(2) vs python3 we see a slightly higher failure rate (334 failures vs. 284 failures). I do not believe this higher fail rate reflects actual errors in the runtime, rather the tests are not adapted to python3. At any rate like the rest of openvswitch it is fairly straightforward to hack the logic for autotests to be run using py2 as long as it is available in the image, so these changes don't prevent falling back to py2 for autotests. This should facilitate any debugging we need to do based on us switching to favor py3. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch.inc')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 1f0b52b3..0e2e67f6 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -11,11 +11,11 @@ HOMEPAGE = "http://openvswitch.org/"
11SECTION = "networking" 11SECTION = "networking"
12LICENSE = "Apache-2" 12LICENSE = "Apache-2"
13 13
14DEPENDS += "bridge-utils openssl python perl python-six-native coreutils-native" 14DEPENDS += "bridge-utils openssl python3 perl python3-six-native coreutils-native"
15 15
16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ 16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
17 python perl perl-module-strict ${PN}-switch \ 17 python3 perl perl-module-strict ${PN}-switch \
18 bash python-twisted python-six" 18 bash python3-twisted python3-six"
19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" 19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${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}"
@@ -70,7 +70,7 @@ FILES_${PN} += "${datadir}/ovsdbmonitor"
70FILES_${PN} += "/run" 70FILES_${PN} += "/run"
71 71
72FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" 72FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/"
73inherit autotools update-rc.d systemd pythonnative 73inherit autotools update-rc.d systemd python3native
74 74
75SYSTEMD_PACKAGES = "${PN}-switch" 75SYSTEMD_PACKAGES = "${PN}-switch"
76SYSTEMD_SERVICE_${PN}-switch = " \ 76SYSTEMD_SERVICE_${PN}-switch = " \