]> code.ossystems Code Review - openembedded-core.git/commitdiff
flex-native: create a wrapper script for sstate installation
authorKevin Tian <kevin.tian@intel.com>
Wed, 5 Jan 2011 02:26:36 +0000 (10:26 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Jan 2011 11:09:48 +0000 (11:09 +0000)
flex-native encodes M4 staging path in its binary, which breaks sstate
installation in a new build environment. Use create_wrapper to create
a wrapper script which explicitly set M4 environmental variable to the
new path

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
meta/recipes-devtools/flex/flex.inc
meta/recipes-devtools/flex/flex_2.5.35.bb

index 93fa7e81a4d2f1a5bb71983fafa0f76bf5ba76fa..54c400c04451812ae3b0f5583dd3f351ed54dcbb 100644 (file)
@@ -11,3 +11,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 "
 
 inherit autotools
 
+do_install_append_virtclass-native() {
+       create_wrapper ${D}/${bindir}/flex M4=${STAGING_BINDIR_NATIVE}/m4
+}
index 4fdce33ccf2be2e0200f20f89f838f1bc5fd3821..28a4f1f06b03d8af8ab2c89076fc0ce39746a263 100644 (file)
@@ -1,5 +1,5 @@
 require flex.inc
-PR = "r1"
+PR = "r2"
 LICENSE="BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067"
 BBCLASSEXTEND = "native"