File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ $(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no
1010$(package)_patches+ = fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
1111$(package)_patches+ = drop_lrelease_dependency.patch no_sdk_version_check.patch
1212$(package)_patches+ = fix_lib_paths.patch fix_android_pch.patch
13- $(package)_patches+ = qtbase-moc-ignore-gcc-macro.patch subdirs.pro
13+ $(package)_patches+ = qtbase-moc-ignore-gcc-macro.patch fix_limits_header.patch subdirs.pro
1414
1515$(package)_qttranslations_file_name =qttranslations-$($(package ) _suffix)
1616$(package)_qttranslations_sha256_hash =577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3
@@ -251,6 +251,7 @@ define $(package)_preprocess_cmds
251251 patch -p1 -i $($(package ) _patch_dir) /no_sdk_version_check.patch && \
252252 patch -p1 -i $($(package ) _patch_dir) /fix_lib_paths.patch && \
253253 patch -p1 -i $($(package ) _patch_dir) /qtbase-moc-ignore-gcc-macro.patch && \
254+ patch -p1 -i $($(package ) _patch_dir) /fix_limits_header.patch && \
254255 cp $($(package ) _patch_dir) /subdirs.pro subdirs.pro && \
255256 sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package ) _extract_dir) /qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
256257 mkdir -p qtbase/mkspecs/macx-clang-linux &&\
Original file line number Diff line number Diff line change 1+ Fix compiling with GCC 11
2+
3+ See: https://bugreports.qt.io/browse/QTBUG-90395.
4+
5+ Upstream commits:
6+ - Qt 5.15 -- unavailable as open source
7+ - Qt 6.0: b2af6332ea37e45ab230a7a5d2d278f86d961b83
8+ - Qt 6.1: 9c56d4da2ff631a8c1c30475bd792f6c86bda53c
9+
10+ --- old/qtbase/src/corelib/global/qendian.h
11+ +++ new/qtbase/src/corelib/global/qendian.h
12+ @@ -44,6 +44,8 @@
13+ #include <QtCore/qfloat16.h>
14+ #include <QtCore/qglobal.h>
15+
16+ + #include <limits>
17+ +
18+ // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
19+ #include <stdlib.h>
20+ #include <string.h>
21+
22+ --- old/qtbase/src/corelib/tools/qbytearraymatcher.h
23+ +++ new/qtbase/src/corelib/tools/qbytearraymatcher.h
24+ @@ -42,6 +42,8 @@
25+
26+ #include <QtCore/qbytearray.h>
27+
28+ + #include <limits>
29+ +
30+ QT_BEGIN_NAMESPACE
31+
32+
33+
34+ --- old/qtbase/src/tools/moc/generator.cpp
35+ +++ new/qtbase/src/tools/moc/generator.cpp
36+ @@ -40,6 +40,8 @@
37+ #include <QtCore/qplugin.h>
38+ #include <QtCore/qstringview.h>
39+
40+ + #include <limits>
41+ +
42+ #include <math.h>
43+ #include <stdio.h>
44+
You can’t perform that action at this time.
0 commit comments