From c3acb677fa5b262511716446ed9330a87508774f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 4 Mar 2019 12:42:08 +0000 Subject: swig: fix build with musl Building with musl currently fails. The fix has been committed upstream, so backport it. Note that it requires running yacc again to regenerate the parser file, so a bison-native dependency is needed. Also the upstream's configure step creates the directory where the parser file is generated at make-dist time, and for some reason running through bitbake does not create it, so do it manually. All of this can be reverted once a new swig version that includes the fix is released and rebased onto. (From OE-Core rev: 92d23674587fb9c6634b9ba88b8399b0ec40bd1c) Signed-off-by: Luca Boccassi Signed-off-by: Richard Purdie --- meta/recipes-devtools/swig/swig.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/swig/swig.inc') diff --git a/meta/recipes-devtools/swig/swig.inc b/meta/recipes-devtools/swig/swig.inc index f7de40866a..00b9c5b605 100644 --- a/meta/recipes-devtools/swig/swig.inc +++ b/meta/recipes-devtools/swig/swig.inc @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ SECTION = "devel" -DEPENDS = "libpcre" +DEPENDS = "libpcre bison-native" SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" @@ -42,6 +42,12 @@ EXTRA_AUTORECONF += "-I Tools/config" BBCLASSEXTEND = "native nativesdk" +# necessary together with bison dependency until a new upstream version after +# 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch +do_configure_append() { + mkdir -p ${B}/Source/CParse +} + do_install_append_class-nativesdk() { cd ${D}${bindir} ln -s swig swig2.0 -- cgit v1.2.3-54-g00ecf