summaryrefslogtreecommitdiffstats
path: root/qt5
diff options
context:
space:
mode:
authorThomas Orgis2021-08-04 16:22:24 +0200
committerThomas Orgis2021-08-04 16:22:24 +0200
commit217cc0c6ebf578d14c7a448478bbed6ed8a33c50 (patch)
treecfa7e200afc63c2fa289af32100d050c4658dcd8 /qt5
parent81d356ccc7e000c174dedf22273d02bbcea9f901 (diff)
qtdeclarative: fix build with GCC 11
Diffstat (limited to 'qt5')
-rw-r--r--qt5/qtdeclarative/HISTORY3
-rwxr-xr-xqt5/qtdeclarative/PRE_BUILD16
2 files changed, 19 insertions, 0 deletions
diff --git a/qt5/qtdeclarative/HISTORY b/qt5/qtdeclarative/HISTORY
index 74739d4a5b..a2c020fe83 100644
--- a/qt5/qtdeclarative/HISTORY
+++ b/qt5/qtdeclarative/HISTORY
@@ -1,3 +1,6 @@
+2021-08-04 Thomas Orgis <sobukus@sourcemage.org>
+ * PRE_BUILD: fix GCC 11 build
+
2020-11-19 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 5.15.2
diff --git a/qt5/qtdeclarative/PRE_BUILD b/qt5/qtdeclarative/PRE_BUILD
new file mode 100755
index 0000000000..9fc9ef9834
--- /dev/null
+++ b/qt5/qtdeclarative/PRE_BUILD
@@ -0,0 +1,16 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+# GCC 11 fix
+patch -p0 <<EOT
+ diff -u ./src/qmldebug/qqmlprofilerevent_p.h{.orig,}
+--- ./src/qmldebug/qqmlprofilerevent_p.h.orig 2021-08-04 16:12:35.790447494 +0200
++++ ./src/qmldebug/qqmlprofilerevent_p.h 2021-08-04 16:13:03.205449096 +0200
+@@ -49,6 +49,7 @@
+
+ #include <initializer_list>
+ #include <type_traits>
++#include <limits>
+
+ //
+ // W A R N I N G
+EOT