From b6dc9613cda67df165e6d0a058e82ccb33282a1d Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Wed, 26 Jun 2013 11:21:54 -0400 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-networking/openvswitch/openvswitch_1.10.0.bb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes-networking/openvswitch/openvswitch_1.10.0.bb') 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 \ file://openvswitch-switch-setup \ file://openvswitch-controller \ file://openvswitch-controller-setup \ + file://openvswitch-add-target-python-handling.patch \ + file://openvswitch-add-target-perl-handling.patch \ " SRC_URI[md5sum] = "fe8b49efe9f86b57abab00166b971106" @@ -32,6 +34,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=49eeb5acb1f5e510f12c44f176c42253" # distro layers can enable with EXTRA_OECONF_pn_openvswitch += "" # EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}" +EXTRA_OECONF += "TARGET_PYTHON=${bindir}/python \ + TARGET_PERL=${bindir}/perl \ + " + ALLOW_EMPTY_${PN}-pki = "1" PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki" -- cgit v1.2.3-54-g00ecf