diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2013-06-26 11:21:54 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-06-27 13:40:41 -0400 |
commit | b6dc9613cda67df165e6d0a058e82ccb33282a1d (patch) | |
tree | ef77b96b1efd74a8fe31e29ef3b5bb7761113d25 /recipes-networking/openvswitch/openvswitch_1.10.0.bb | |
parent | 1fd6f2aa87c743f74e2eca24ad23101586a0103c (diff) | |
download | meta-virtualization-b6dc9613cda67df165e6d0a058e82ccb33282a1d.tar.gz |
openvswitch: add split between host and target python and perl paths
Openvswitch is built with the assumption that the PYTHON and PERL
variables are common between the host and target. This can result in
improper paths used for script substitutions which in turn causes
scripts which will fail to run on the target and the generated
packages to have improper REQUIRES, making them impossible to
install. These are usually not an issue since python and perl are
found in the same location on the host and target, but there is no
guarantee of this so the possibility of failure exists. By explicitly
defining the location of the python and perl on the target we can
avoid these assumptions and possibility of failure.
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_1.10.0.bb')
-rw-r--r-- | recipes-networking/openvswitch/openvswitch_1.10.0.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch_1.10.0.bb b/recipes-networking/openvswitch/openvswitch_1.10.0.bb index fe112f22..2e9506f1 100644 --- a/recipes-networking/openvswitch/openvswitch_1.10.0.bb +++ b/recipes-networking/openvswitch/openvswitch_1.10.0.bb | |||
@@ -21,6 +21,8 @@ SRC_URI = "http://openvswitch.org/releases/openvswitch-${PV}.tar.gz \ | |||
21 | file://openvswitch-switch-setup \ | 21 | file://openvswitch-switch-setup \ |
22 | file://openvswitch-controller \ | 22 | file://openvswitch-controller \ |
23 | file://openvswitch-controller-setup \ | 23 | file://openvswitch-controller-setup \ |
24 | file://openvswitch-add-target-python-handling.patch \ | ||
25 | file://openvswitch-add-target-perl-handling.patch \ | ||
24 | " | 26 | " |
25 | 27 | ||
26 | SRC_URI[md5sum] = "fe8b49efe9f86b57abab00166b971106" | 28 | SRC_URI[md5sum] = "fe8b49efe9f86b57abab00166b971106" |
@@ -32,6 +34,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=49eeb5acb1f5e510f12c44f176c42253" | |||
32 | # distro layers can enable with EXTRA_OECONF_pn_openvswitch += "" | 34 | # distro layers can enable with EXTRA_OECONF_pn_openvswitch += "" |
33 | # EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}" | 35 | # EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}" |
34 | 36 | ||
37 | EXTRA_OECONF += "TARGET_PYTHON=${bindir}/python \ | ||
38 | TARGET_PERL=${bindir}/perl \ | ||
39 | " | ||
40 | |||
35 | ALLOW_EMPTY_${PN}-pki = "1" | 41 | ALLOW_EMPTY_${PN}-pki = "1" |
36 | PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki" | 42 | PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki" |
37 | 43 | ||