diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2019-03-04 12:42:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-04 22:57:05 +0000 |
commit | c3acb677fa5b262511716446ed9330a87508774f (patch) | |
tree | 14e0838b3affb7104cbfea758a4f44a170d4ca7f /meta/recipes-devtools/swig/swig.inc | |
parent | 74a8b244ded9a914ca3f2cfca917a223b9e628c9 (diff) | |
download | poky-c3acb677fa5b262511716446ed9330a87508774f.tar.gz |
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 <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/swig/swig.inc')
-rw-r--r-- | meta/recipes-devtools/swig/swig.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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 \ | |||
7 | 7 | ||
8 | SECTION = "devel" | 8 | SECTION = "devel" |
9 | 9 | ||
10 | DEPENDS = "libpcre" | 10 | DEPENDS = "libpcre bison-native" |
11 | 11 | ||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" | 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" |
13 | 13 | ||
@@ -42,6 +42,12 @@ EXTRA_AUTORECONF += "-I Tools/config" | |||
42 | 42 | ||
43 | BBCLASSEXTEND = "native nativesdk" | 43 | BBCLASSEXTEND = "native nativesdk" |
44 | 44 | ||
45 | # necessary together with bison dependency until a new upstream version after | ||
46 | # 3.0.12 includes 0001-Fix-generated-code-for-constant-expressions-containi.patch | ||
47 | do_configure_append() { | ||
48 | mkdir -p ${B}/Source/CParse | ||
49 | } | ||
50 | |||
45 | do_install_append_class-nativesdk() { | 51 | do_install_append_class-nativesdk() { |
46 | cd ${D}${bindir} | 52 | cd ${D}${bindir} |
47 | ln -s swig swig2.0 | 53 | ln -s swig swig2.0 |