]> code.ossystems Code Review - openembedded-core.git/commit
swig: fix build with musl
authorLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 4 Mar 2019 12:42:08 +0000 (12:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Mar 2019 14:28:22 +0000 (14:28 +0000)
commit92d23674587fb9c6634b9ba88b8399b0ec40bd1c
treeaac72aae21e6e052b4848197f97e1da1449411ea
parentb11725db2d5549dc45d8ae36fbf94a5c8e342d69
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.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/swig/swig.inc
meta/recipes-devtools/swig/swig/0001-Fix-generated-code-for-constant-expressions-containi.patch [new file with mode: 0644]
meta/recipes-devtools/swig/swig_3.0.12.bb