summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch.inc
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-01-13 16:49:56 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-01-14 19:26:17 -0500
commitb6d051a19770e65bd23bccbd2fc6e948092a6f16 (patch)
tree6cd71317a88a7f731cf3f55a49c9ded2df4e4ab3 /recipes-networking/openvswitch/openvswitch.inc
parent9152441483600a4f102320c805e892a4cd0252dd (diff)
downloadmeta-virtualization-b6d051a19770e65bd23bccbd2fc6e948092a6f16.tar.gz
openvswitch: fix build host contamination
There is only a single PYTHON variable for configure and yet python is used for the build as well as scripts installed on the target. If we set a path in PYTHON as we had we end up using this same path during the build and since it isn't to the sysroot we end up with host contamination (as demonstrated by python failing to import 'six' on build hosts without python-six installed. The best approach is to set PYTHON to "python" when calling configure, ie. without a path. This will use 'python' from the path during build time and by ensuring all the installed scripts use '/usr/bin/env' we can ensure python will be found on the target when the scripts are run. Since 'six' is used as part of the build we have to ensure it is -native'ly buildable and we set all the required build and runtime dependencies. 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.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index ab1f8feb..71c746fc 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" 14DEPENDS += "bridge-utils openssl python perl python-six-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 python perl perl-module-strict ${PN}-switch \
18 bash python-twisted" 18 bash python-twisted python-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}"
@@ -34,8 +34,8 @@ SRC_URI = "\
34 " 34 "
35 35
36EXTRA_OECONF += "\ 36EXTRA_OECONF += "\
37 PYTHON=${bindir}/python \ 37 PYTHON=python \
38 PYTHON3=${bindir}/python3 \ 38 PYTHON3=python3 \
39 PERL=${bindir}/perl \ 39 PERL=${bindir}/perl \
40 " 40 "
41CONFIGUREOPT_DEPTRACK = "" 41CONFIGUREOPT_DEPTRACK = ""
@@ -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 python-dir 73inherit autotools update-rc.d systemd pythonnative
74 74
75SYSTEMD_PACKAGES = "${PN}-switch" 75SYSTEMD_PACKAGES = "${PN}-switch"
76SYSTEMD_SERVICE_${PN}-switch = " \ 76SYSTEMD_SERVICE_${PN}-switch = " \