summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2022-08-11 14:18:01 +0200
committerGitHub <noreply@github.com>2022-08-11 14:18:01 +0200
commit76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4 (patch)
treea724838080fa21d060421d5ca3c9eb2905f73f93
parentf96b54b0a63713d50f956abb4930d99ee37eb58e (diff)
downloadspack-76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4.tar.gz
spack-76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4.tar.bz2
spack-76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4.tar.xz
spack-76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4.zip
gxsview: gcc11 compilation rule for std::numeric_limits (#31970)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/gxsview/gcc11.patch9
-rw-r--r--var/spack/repos/builtin/packages/gxsview/package.py3
2 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gxsview/gcc11.patch b/var/spack/repos/builtin/packages/gxsview/gcc11.patch
new file mode 100644
index 0000000000..cf872115b3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gxsview/gcc11.patch
@@ -0,0 +1,9 @@
+--- a/core/fielddata/fieldcolordata.hpp
++++ b/core/fielddata/fieldcolordata.hpp
+@@ -16,6 +16,7 @@
+ #include <string>
+ #include <utility>
+ #include <numeric>
++#include <limits>
+
+ namespace fd{
diff --git a/var/spack/repos/builtin/packages/gxsview/package.py b/var/spack/repos/builtin/packages/gxsview/package.py
index f6a130d2ef..5402420c8a 100644
--- a/var/spack/repos/builtin/packages/gxsview/package.py
+++ b/var/spack/repos/builtin/packages/gxsview/package.py
@@ -28,6 +28,9 @@ class Gxsview(QMakePackage):
conflicts("%gcc@:7.2.0", msg="Requires C++17 compiler support") # need C++17 standard
patch("vtk9.patch", when="^vtk@9:")
+ # gcc11 compilation rule for std::numeric_limits,
+ # avoid "numeric_limits" is not a member of "std"
+ patch("gcc11.patch", when="@2021.07.01 %gcc@11:")
build_directory = "gui"