diff options
| author | Nicolas Fella <6377822+nicolasfella@users.noreply.github.com> | 2021-09-16 19:34:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 10:34:42 -0700 |
| commit | e14842c4462c5d3542b58dcc3de742139da06979 (patch) | |
| tree | 0ead3e2982a838e5b4e56134dc7fa0fa12bbeb85 | |
| parent | c32e7e262d12cb4af4b29e94307060fa2effac54 (diff) | |
| download | vcpkg-e14842c4462c5d3542b58dcc3de742139da06979.tar.gz vcpkg-e14842c4462c5d3542b58dcc3de742139da06979.zip | |
[qt] Add patches to fix missing includes (#19668)
* [qt] Add patches to fix missing includes
This is needed to build with GCC11
Fixes #19226
* bump version
* version
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
| -rw-r--r-- | ports/qt5-base/patches/limits_include.patch | 51 | ||||
| -rw-r--r-- | ports/qt5-base/portfile.cmake | 1 | ||||
| -rw-r--r-- | ports/qt5-base/vcpkg.json | 2 | ||||
| -rw-r--r-- | ports/qt5-declarative/limits_include.patch | 24 | ||||
| -rw-r--r-- | ports/qt5-declarative/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/qt5-declarative/vcpkg.json | 2 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/q-/qt5-base.json | 5 | ||||
| -rw-r--r-- | versions/q-/qt5-declarative.json | 5 |
9 files changed, 91 insertions, 5 deletions
diff --git a/ports/qt5-base/patches/limits_include.patch b/ports/qt5-base/patches/limits_include.patch new file mode 100644 index 000000000..0ed514b76 --- /dev/null +++ b/ports/qt5-base/patches/limits_include.patch @@ -0,0 +1,51 @@ +From 61325e4547225b8b2ecefda4ca328a38c075c909 Mon Sep 17 00:00:00 2001 +From: Nicolas Fella <nicolas.fella@gmx.de> +Date: Wed, 11 Aug 2021 15:35:05 +0200 +Subject: [PATCH] Add missing limits include + +--- + src/corelib/global/qendian.h | 1 + + src/corelib/global/qfloat16.h | 1 + + src/corelib/text/qbytearraymatcher.h | 2 ++ + 3 files changed, 4 insertions(+) + +diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h +index 257efbbdbe..05f11d6f81 100644 +--- a/src/corelib/global/qendian.h ++++ b/src/corelib/global/qendian.h +@@ -47,6 +47,7 @@ + // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems + #include <stdlib.h> + #include <string.h> ++#include <limits> + + #ifdef min // MSVC + #undef min +diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h +index c7a9c87af3..3287d7cbf2 100644 +--- a/src/corelib/global/qfloat16.h ++++ b/src/corelib/global/qfloat16.h +@@ -44,6 +44,7 @@ + #include <QtCore/qglobal.h> + #include <QtCore/qmetatype.h> + #include <string.h> ++#include <limits> + + #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__) + // All processors that support AVX2 do support F16C too. That doesn't mean +diff --git a/src/corelib/text/qbytearraymatcher.h b/src/corelib/text/qbytearraymatcher.h +index 0eedfc1d20..f5f9bef7b8 100644 +--- a/src/corelib/text/qbytearraymatcher.h ++++ b/src/corelib/text/qbytearraymatcher.h +@@ -42,6 +42,8 @@ + + #include <QtCore/qbytearray.h> + ++#include <limits> ++ + QT_BEGIN_NAMESPACE + + +-- +2.32.0 + diff --git a/ports/qt5-base/portfile.cmake b/ports/qt5-base/portfile.cmake index 25eeb2e5c..2bd8475c9 100644 --- a/ports/qt5-base/portfile.cmake +++ b/ports/qt5-base/portfile.cmake @@ -87,6 +87,7 @@ qt_download_submodule( OUT_SOURCE_PATH SOURCE_PATH #CMake fixes ${PATCHES} patches/Qt5GuiConfigExtras.patch # Patches the library search behavior for EGL since angle is not build with Qt + patches/limits_include.patch # Add missing includes to build with gcc 11 ) # Remove vendored dependencies to ensure they are not picked up by the build diff --git a/ports/qt5-base/vcpkg.json b/ports/qt5-base/vcpkg.json index 6dd639243..6115a5e4f 100644 --- a/ports/qt5-base/vcpkg.json +++ b/ports/qt5-base/vcpkg.json @@ -1,7 +1,7 @@ { "name": "qt5-base", "version-semver": "5.15.2", - "port-version": 10, + "port-version": 11, "description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.", "homepage": "https://www.qt.io/", "dependencies": [ diff --git a/ports/qt5-declarative/limits_include.patch b/ports/qt5-declarative/limits_include.patch new file mode 100644 index 000000000..b4580dd21 --- /dev/null +++ b/ports/qt5-declarative/limits_include.patch @@ -0,0 +1,24 @@ +From 2dfb893c130a9f9195805fcc81d7e5e242bc558d Mon Sep 17 00:00:00 2001 +From: Nicolas Fella <nicolas.fella@gmx.de> +Date: Wed, 11 Aug 2021 17:03:06 +0200 +Subject: [PATCH] Add missing limits include + +--- + src/qmldebug/qqmlprofilerevent_p.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h +index a7e37d1964..01b2f58f16 100644 +--- a/src/qmldebug/qqmlprofilerevent_p.h ++++ b/src/qmldebug/qqmlprofilerevent_p.h +@@ -48,6 +48,7 @@ + #include <QtCore/qmetatype.h> + + #include <initializer_list> ++#include <limits> + #include <type_traits> + + // +-- +2.32.0 + diff --git a/ports/qt5-declarative/portfile.cmake b/ports/qt5-declarative/portfile.cmake index 2cd1cf479..8b4ab0e9a 100644 --- a/ports/qt5-declarative/portfile.cmake +++ b/ports/qt5-declarative/portfile.cmake @@ -1,2 +1,2 @@ include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
-qt_submodule_installation()
\ No newline at end of file +qt_submodule_installation(PATCHES limits_include.patch)
diff --git a/ports/qt5-declarative/vcpkg.json b/ports/qt5-declarative/vcpkg.json index c6716a208..9ac0dead3 100644 --- a/ports/qt5-declarative/vcpkg.json +++ b/ports/qt5-declarative/vcpkg.json @@ -1,7 +1,7 @@ { "name": "qt5-declarative", "version-string": "5.15.2", - "port-version": 1, + "port-version": 2, "description": "Qt5 Declarative (Quick 2) Module. Includes QtQuick, QtQuickParticles, QtQuickWidgets, QtQml, and QtPacketProtocol.", "dependencies": [ { diff --git a/versions/baseline.json b/versions/baseline.json index 6abcae8f7..333dd7e7d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5314,7 +5314,7 @@ }, "qt5-base": { "baseline": "5.15.2", - "port-version": 10 + "port-version": 11 }, "qt5-canvas3d": { "baseline": "0", @@ -5334,7 +5334,7 @@ }, "qt5-declarative": { "baseline": "5.15.2", - "port-version": 1 + "port-version": 2 }, "qt5-doc": { "baseline": "5.15.2", diff --git a/versions/q-/qt5-base.json b/versions/q-/qt5-base.json index 8df1a9435..ad6aee5fd 100644 --- a/versions/q-/qt5-base.json +++ b/versions/q-/qt5-base.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "72ca286ac98e08f2fef35f85a6e393795428d033", + "version-semver": "5.15.2", + "port-version": 11 + }, + { "git-tree": "13593d8640bdca2663ba5bd497243274e51c4dc3", "version-semver": "5.15.2", "port-version": 10 diff --git a/versions/q-/qt5-declarative.json b/versions/q-/qt5-declarative.json index b8019324c..8877e0bae 100644 --- a/versions/q-/qt5-declarative.json +++ b/versions/q-/qt5-declarative.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "0cef09afb36f9debf22319dc4adccf478c611885", + "version-string": "5.15.2", + "port-version": 2 + }, + { "git-tree": "bf4313e778b98d69d3e0e3b881069357c3ef8b76", "version-string": "5.15.2", "port-version": 1 |
