summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch_git.bb
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_git.bb
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_git.bb')
-rw-r--r--recipes-networking/openvswitch/openvswitch_git.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 55e3a9a2..455fab05 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -24,6 +24,7 @@ SRC_URI += "\
24 file://disable_m4_check.patch \ 24 file://disable_m4_check.patch \
25 file://kernel_module.patch \ 25 file://kernel_module.patch \
26 file://openvswitch-ptest-Fix-python-path.patch \ 26 file://openvswitch-ptest-Fix-python-path.patch \
27 file://python-make-remaining-scripts-use-usr-bin-env.patch \
27 " 28 "
28 29
29LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35" 30LIC_FILES_CHKSUM = "file://COPYING;md5=17b2c9d4c70853a09c0e143137754b35"