qt5declarative: fix debug build with uclibc
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 30 Nov 2018 00:20:16 +0000 (01:20 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 30 Nov 2018 07:58:24 +0000 (08:58 +0100)
commit4b1d9a861ecef50d974e5b376568bd66b29c05ca
treea31ae746e37f6b24948422ac50e52f5820bfa417
parentf108445a3dd791d961bc0063ab9ea8877081fe16
qt5declarative: fix debug build with uclibc

Debug build of qsgtexture fails on uclibc since version 5.11 and
https://github.com/qt/qtdeclarative/commit/7c507eaac3f848f92f2ebdafe8ded4a064d68351:

scenegraph/util/qsgtexture.cpp:69:22: fatal error: execinfo.h: No such file or directory
 #include <execinfo.h>

Indeed, !defined(__UCLIBC__) has been replaced by defined(__GBLIBC__) to
fix build on musl but as a result, build fails on uclibc because uclibc
also defines __GLIBC__ (and it does not have execinfo like musl)

This error is raised only when building in debug mode because
CAN_BACKTRACE_EXECINFO is undefined if QT_NO_DEBUG is set

So keep defined(__GLIBC__), but put back !defined(__UCLIBC__)

Fixes:
 - http://autobuild.buildroot.org/results/6fce0ce5aea943e097532efbbc8d1e28f41e5866

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qt5/qt5declarative/5.11.2/0001-qsgtexture-fix-debug-build-with-uclibc.patch [new file with mode: 0644]