qt4-4.8.7.inc: use a supported builtin type for Uchar
PATCH 1/2 qt4-4.8.7.inc: use a supported builtin type for Uchar
cope with icu 59's changed use of uchar.
http://site.icu-project.org/download/59#TOC-ICU4C-char16_t
4.8.7-r0/recipe-sysroot/usr/include/unicode/umachine.h:347:13: error: 'char16_t' does not name a type; did you mean 'wchar_t'?
typedef char16_t UChar;
^~~~~~~~
wchar_t...4.8.7-r0/recipe-sysroot/usr/include/unicode/uversion.h:167:55: error: 'UChar' does not name a type; did you mean 'UChar32'?
u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
--- recipes-qt4/qt4/qt4-4.8.7.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt4/qt4/qt4-4.8.7.inc +1 -1
@@ -46,7 +46,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" # workaround for class std::auto_ptr' is deprecated with gcc-6 -CXXFLAGS += "-std=gnu++98 -Wno-deprecated" +CXXFLAGS += "-std=gnu++98 -Wno-deprecated -DUCHAR_TYPE=wchar_t" # disable webkit for mips64 n32 temporarily that fails to compile, # qt upstream defect:
Signature · 1 line
2.9.4
PATCH 2/2 qt4: Add patch to allow builds of webkit with gcc v7++
Change configure logic, so that only gcc 3.3 and older does not build webkit and gcc 3.2 and older additionally not build QtXmlPatterns.
---
recipes-qt4/qt4/qt4-4.8.7.inc | 2 +-
.../qt4-4.8.7/{gcc-6.patch => gcc-version.patch} | 21 ++++++++++++++++++---
recipes-qt4/qt4/qt4-native.inc | 2 +-
3 files changed, 20 insertions(+), 5 deletions(-)
rename recipes-qt4/qt4/qt4-4.8.7/{gcc-6.patch => gcc-version.patch} (62%)recipes-qt4/qt4/qt4-4.8.7.inc +1 -1
@@ -27,7 +27,7 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever file://0034-Fix-kmap2qmap-build-with-clang.patch \ file://0035-Add-nios2-support.patch \ file://0036-qt-everywhere-opensource-src-4.8.7-gcc6.patch \ - file://gcc-6.patch \ + file://gcc-version.patch \ file://Fix-QWSLock-invalid-argument-logs.patch \ file://add_check_for_aarch64_32.patch \ file://0001-QWS-fix-24-bit-RGB-BGR-handling.patch \
recipes-qt4/qt4/qt4-4.8.7/gcc-version.patch renamed from recipes-qt4/qt4/qt4-4.8.7/gcc-6.patch +18 -3
@@ -6,14 +6,29 @@ RP 2016/5/26 Index: qt-everywhere-opensource-src-4.8.7/configure =================================================================== + +Amend this and change the logic to assume all compilers are suitable +exept 3.3x resp. 3.2x and older ones. +Signed-off-by: Max Krummenacher <[email protected]> + --- qt-everywhere-opensource-src-4.8.7.orig/configure +++ qt-everywhere-opensource-src-4.8.7/configure -@@ -7756,7 +7756,7 @@ case "$XPLATFORM" in +@@ -7757,15 +7757,15 @@ *-g++*) # Check gcc's version case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in - 5*|4*|3.4*) -+ 6*|5*|4*|3.4*) - ;; +- ;; 3.3*) canBuildWebKit="no" + ;; +- *) ++ 3.2*|3.1*|3.0*|2*) + canBuildWebKit="no" + canBuildQtXmlPatterns="no" + ;; ++ *) ++ ;; + esac + ;; + solaris-cc*)
recipes-qt4/qt4/qt4-native.inc +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-ever file://0015-configure-add-nostrip-for-debug-packages.patch \ file://0021-configure-make-qt4-native-work-with-long-building-pa.patch \ file://0036-qt-everywhere-opensource-src-4.8.7-gcc6.patch \ - file://gcc-6.patch \ + file://gcc-version.patch \ file://g++.conf \ file://linux.conf \ file://qt-everywhere-opensource-src-4.8.6-QTBUG-22829.patch \
Signature · 1 line
2.9.4
Quoted 10 lines · Max Krummenacher
cope with icu 59's changed use of uchar.
http://site.icu-project.org/download/59#TOC-ICU4C-char16_t
4.8.7-r0/recipe-sysroot/usr/include/unicode/umachine.h:347:13: error: 'char16_t' does not name a type; did you mean 'wchar_t'?typedef char16_t UChar; ^~~~~~~~ wchar_t...
4.8.7-r0/recipe-sysroot/usr/include/unicode/uversion.h:167:55: error: 'UChar' does not name a type; did you mean 'UChar32'?
u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
Thanks; pushed both patches.
Alex