diff options
author | Kevin Tian <kevin.tian@intel.com> | 2011-01-05 11:04:12 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-07 11:09:49 +0000 |
commit | dc10e1688e9aa3b6f06b2a37b1d5bdb63443b955 (patch) | |
tree | 4ce11d7eda4934fc78452a6b312a92f857d4a647 /meta/recipes-devtools/bison/bison_2.4.3.bb | |
parent | d835488c526aa61163ade503c6586eaa59509a07 (diff) | |
download | poky-dc10e1688e9aa3b6f06b2a37b1d5bdb63443b955.tar.gz |
bison-native: create a wrapper script for sstate installation
bison-native encodes M4 and PKGDATA staging path in its binary, which
breaks sstate installation in a new build environment. Use create_wrapper
similar as flex-native to solve this issue
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/recipes-devtools/bison/bison_2.4.3.bb')
-rw-r--r-- | meta/recipes-devtools/bison/bison_2.4.3.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/bison/bison_2.4.3.bb b/meta/recipes-devtools/bison/bison_2.4.3.bb index 03fd463fd8..fa2f15400a 100644 --- a/meta/recipes-devtools/bison/bison_2.4.3.bb +++ b/meta/recipes-devtools/bison/bison_2.4.3.bb | |||
@@ -10,7 +10,7 @@ SECTION = "devel" | |||
10 | PRIORITY = "optional" | 10 | PRIORITY = "optional" |
11 | DEPENDS = "gettext bison-native" | 11 | DEPENDS = "gettext bison-native" |
12 | 12 | ||
13 | PR = "r0" | 13 | PR = "r1" |
14 | 14 | ||
15 | BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \ | 15 | BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \ |
16 | file://m4.patch;patch=1" | 16 | file://m4.patch;patch=1" |
@@ -27,4 +27,10 @@ SRC_URI_virtclass-native = "${BASE_SRC_URI}" | |||
27 | inherit autotools | 27 | inherit autotools |
28 | acpaths = "-I ${S}/m4" | 28 | acpaths = "-I ${S}/m4" |
29 | 29 | ||
30 | do_install_append_virtclass-native() { | ||
31 | create_wrapper ${D}/${bindir}/bison \ | ||
32 | M4=${STAGING_BINDIR_NATIVE}/m4 \ | ||
33 | BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison | ||
34 | } | ||
35 | #bison-native encodes the staging M4 path | ||
30 | BBCLASSEXTEND = "native" | 36 | BBCLASSEXTEND = "native" |