Skip to contentSkip to conversation

bison-native: create a wrapper script for sstate installation

PATCH In review Kevin Tian 1 participant 1 message Jan 5, 2011

lore
Share & tools
lore

Kevin Tian

author
#0 lore raw

PATCH 3/4 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

---
 meta/recipes-devtools/bison/bison_2.4.3.bb |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
meta/recipes-devtools/bison/bison_2.4.3.bb +9 -1
index 03fd463..d81aa79 100644
@@ -10,7 +10,7 @@ SECTION = "devel"
 PRIORITY = "optional"
 DEPENDS = "gettext bison-native"
 
-PR = "r0"
+PR = "r1"
 
 BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
 	   file://m4.patch;patch=1"
@@ -27,4 +27,12 @@ SRC_URI_virtclass-native = "${BASE_SRC_URI}"
 inherit autotools
 acpaths = "-I ${S}/m4"
 
+SYSROOT_PREPROCESS_FUNCS_append_virtclass-native = " bison_path_fixup"
+
+bison_path_fixup() {
+	create_wrapper ${SYSROOT_DESTDIR}/${STAGING_DIR_HOST}/${bindir}/bison \
+		M4=${STAGING_BINDIR_NATIVE}/m4 \
+		BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison
+}
+#bison-native encodes the staging M4 path
 BBCLASSEXTEND = "native"
Signature · 1 line
1.6.0.4