diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-01-13 16:49:56 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-01-14 19:26:17 -0500 |
commit | b6d051a19770e65bd23bccbd2fc6e948092a6f16 (patch) | |
tree | 6cd71317a88a7f731cf3f55a49c9ded2df4e4ab3 /recipes-networking/openvswitch/openvswitch.inc | |
parent | 9152441483600a4f102320c805e892a4cd0252dd (diff) | |
download | meta-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.inc | 10 |
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/" | |||
11 | SECTION = "networking" | 11 | SECTION = "networking" |
12 | LICENSE = "Apache-2" | 12 | LICENSE = "Apache-2" |
13 | 13 | ||
14 | DEPENDS += "bridge-utils openssl python perl" | 14 | DEPENDS += "bridge-utils openssl python perl python-six-native" |
15 | 15 | ||
16 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ | 16 | RDEPENDS_${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" |
19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" | 19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${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}" |
@@ -34,8 +34,8 @@ SRC_URI = "\ | |||
34 | " | 34 | " |
35 | 35 | ||
36 | EXTRA_OECONF += "\ | 36 | EXTRA_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 | " |
41 | CONFIGUREOPT_DEPTRACK = "" | 41 | CONFIGUREOPT_DEPTRACK = "" |
@@ -70,7 +70,7 @@ FILES_${PN} += "${datadir}/ovsdbmonitor" | |||
70 | FILES_${PN} += "/run" | 70 | FILES_${PN} += "/run" |
71 | 71 | ||
72 | FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" | 72 | FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" |
73 | inherit autotools update-rc.d systemd python-dir | 73 | inherit autotools update-rc.d systemd pythonnative |
74 | 74 | ||
75 | SYSTEMD_PACKAGES = "${PN}-switch" | 75 | SYSTEMD_PACKAGES = "${PN}-switch" |
76 | SYSTEMD_SERVICE_${PN}-switch = " \ | 76 | SYSTEMD_SERVICE_${PN}-switch = " \ |