summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPatrick Gartung <gartung@fnal.gov>2023-09-19 17:18:34 -0500
committerGitHub <noreply@github.com>2023-09-19 16:18:34 -0600
commit23890470728b8fb3e1255db7c5d402a36aa8904f (patch)
tree7d878fee4a59efb49ec7939505812bf7aba9089c /var
parentf49c58708bf82b7c875e2510d42d06c508183124 (diff)
downloadspack-23890470728b8fb3e1255db7c5d402a36aa8904f.tar.gz
spack-23890470728b8fb3e1255db7c5d402a36aa8904f.tar.bz2
spack-23890470728b8fb3e1255db7c5d402a36aa8904f.tar.xz
spack-23890470728b8fb3e1255db7c5d402a36aa8904f.zip
Fix error in qt5.15 building qtlocation with gcc13 (#40091)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py3
-rw-r--r--var/spack/repos/builtin/packages/qt/qt5-15-gcc13.patch34
2 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index daf4933072..37d8cebc6f 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -155,6 +155,9 @@ class Qt(Package):
# causing qt to fail in ci. This increases that limit to 1024.
patch("qt59-qtbase-qtconfig256.patch", working_dir="qtbase", when="@5.9:5")
+ # https://bugzilla.altlinux.org/attachment.cgi?id=13362&action=diff#a/gcc13-compilefix.patch_sec1
+ patch("qt5-15-gcc13.patch", when="@5.15: %gcc@13")
+
conflicts("%gcc@10:", when="@5.9:5.12.6 +opengl")
conflicts("%gcc@11:", when="@5.8")
conflicts("%apple-clang@13:", when="@:5.13")
diff --git a/var/spack/repos/builtin/packages/qt/qt5-15-gcc13.patch b/var/spack/repos/builtin/packages/qt/qt5-15-gcc13.patch
new file mode 100644
index 0000000000..b1067a49fe
--- /dev/null
+++ b/var/spack/repos/builtin/packages/qt/qt5-15-gcc13.patch
@@ -0,0 +1,34 @@
+diff --git a/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp b/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp
+index a28c59a4..92d928a3 100644
+--- a/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp
++++ b/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp
+@@ -1,5 +1,6 @@
+ #pragma once
+
++#include <cstdint>
+ #include <mapbox/geometry/geometry.hpp>
+ #include <mapbox/geometry/point_arithmetic.hpp>
+ #include <mapbox/geometry/for_each_point.hpp>
+diff --git a/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp b/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp
+index 13498ccb..4dc82a88 100644
+--- a/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp
++++ b/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp
+@@ -4,6 +4,7 @@
+ #include <string>
+ #include <cassert>
+ #include <cstdlib>
++#include <cstdint>
+ #include <exception>
+
+ // Polyfill needed by Qt when building for Android with GCC
+diff --git a/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp b/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp
+index bc959c9a..2fc62bba 100644
+--- a/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp
++++ b/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp
+@@ -1,5 +1,6 @@
+ #pragma once
+
++#include <cstdint>
+ #include <mbgl/util/variant.hpp>
+
+ namespace mbgl {