aboutsummaryrefslogtreecommitdiff
path: root/ports/qt5-declarative
diff options
context:
space:
mode:
authorNicolas Fella <6377822+nicolasfella@users.noreply.github.com>2021-09-16 19:34:42 +0200
committerGitHub <noreply@github.com>2021-09-16 10:34:42 -0700
commite14842c4462c5d3542b58dcc3de742139da06979 (patch)
tree0ead3e2982a838e5b4e56134dc7fa0fa12bbeb85 /ports/qt5-declarative
parentc32e7e262d12cb4af4b29e94307060fa2effac54 (diff)
downloadvcpkg-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>
Diffstat (limited to 'ports/qt5-declarative')
-rw-r--r--ports/qt5-declarative/limits_include.patch24
-rw-r--r--ports/qt5-declarative/portfile.cmake2
-rw-r--r--ports/qt5-declarative/vcpkg.json2
3 files changed, 26 insertions, 2 deletions
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": [
{