mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
d835488c52
commit
dc10e1688e
@@ -10,7 +10,7 @@ SECTION = "devel"
|
|||||||
PRIORITY = "optional"
|
PRIORITY = "optional"
|
||||||
DEPENDS = "gettext bison-native"
|
DEPENDS = "gettext bison-native"
|
||||||
|
|
||||||
PR = "r0"
|
PR = "r1"
|
||||||
|
|
||||||
BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
|
BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
|
||||||
file://m4.patch;patch=1"
|
file://m4.patch;patch=1"
|
||||||
@@ -27,4 +27,10 @@ SRC_URI_virtclass-native = "${BASE_SRC_URI}"
|
|||||||
inherit autotools
|
inherit autotools
|
||||||
acpaths = "-I ${S}/m4"
|
acpaths = "-I ${S}/m4"
|
||||||
|
|
||||||
|
do_install_append_virtclass-native() {
|
||||||
|
create_wrapper ${D}/${bindir}/bison \
|
||||||
|
M4=${STAGING_BINDIR_NATIVE}/m4 \
|
||||||
|
BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison
|
||||||
|
}
|
||||||
|
#bison-native encodes the staging M4 path
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
Reference in New Issue
Block a user