summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkjrstory <kjrstory@gmail.com>2024-04-15 22:25:16 +0900
committerGitHub <noreply@github.com>2024-04-15 15:25:16 +0200
commit5b8b6e492d2c2ce1280aaae36d10c0b47a15b2ab (patch)
tree3a50f6c53b4539766c552261e5acb24da4e7787e
parent763279cd613f5ec7466bcb8359280dc87d2575a2 (diff)
downloadspack-5b8b6e492d2c2ce1280aaae36d10c0b47a15b2ab.tar.gz
spack-5b8b6e492d2c2ce1280aaae36d10c0b47a15b2ab.tar.bz2
spack-5b8b6e492d2c2ce1280aaae36d10c0b47a15b2ab.tar.xz
spack-5b8b6e492d2c2ce1280aaae36d10c0b47a15b2ab.zip
su2: add v8.0.0, v8.0.1 (#43662)
-rw-r--r--var/spack/repos/builtin/packages/su2/package.py5
-rw-r--r--var/spack/repos/builtin/packages/su2/remove_preconfigure_timestamp_check.patch13
2 files changed, 18 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/su2/package.py b/var/spack/repos/builtin/packages/su2/package.py
index 0fbd50ad7c..28b888fc59 100644
--- a/var/spack/repos/builtin/packages/su2/package.py
+++ b/var/spack/repos/builtin/packages/su2/package.py
@@ -18,6 +18,8 @@ class Su2(MesonPackage):
license("BSD-3-Clause")
+ version("8.0.1", commit="8ef4b1be045122b2fdb485bfb5fe4eecd1bc4246", submodules=True)
+ version("8.0.0", commit="1fe59817e984f67ff55146d90d0059e27b772891", submodules=True)
version("7.5.1", commit="09ba9e3a9605c02d38290e34f42aa6982cb4dd05", submodules=True)
version("7.5.0", commit="8e8ea59fe6225c8ec4e94d0e0a4b6690ea4294e5", submodules=True)
version("7.4.0", commit="745e5d922c63c8ec6963b31808c20df2e3bfd075", submodules=True)
@@ -76,6 +78,9 @@ class Su2(MesonPackage):
# This fix is considered meaningless and will be removed in the next version(@7.6:) of SU2.
patch("meson_version.patch", when="@7.4.0:7.5.1")
+ # Remove the timestamp check of preconfigure.py for version(@8:)
+ patch("remove_preconfigure_timestamp_check.patch", when="@8.0.0:")
+
def patch(self):
if self.spec.satisfies("+autodiff") or self.spec.satisfies("+directdiff"):
filter_file(
diff --git a/var/spack/repos/builtin/packages/su2/remove_preconfigure_timestamp_check.patch b/var/spack/repos/builtin/packages/su2/remove_preconfigure_timestamp_check.patch
new file mode 100644
index 0000000000..a0f844f65a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/su2/remove_preconfigure_timestamp_check.patch
@@ -0,0 +1,13 @@
+--- a/meson.build 2022-12-20 21:08:29.000000000 +0900
++++ b/meson.build 2023-05-19 03:24:08.870966665 +0900
+@@ -6,10 +6,6 @@
+ 'c_std=c99',
+ 'cpp_std=c++11'])
+
+-fsmod = import('fs')
+-if not fsmod.exists('su2preconfig.timestamp')
+- error('SU2 must be (pre-)configured with the extended Meson script (./meson.py) or with the ./preconfigure.py script in the SU2 root directory.')
+-endif
+
+ pymod = import('python')
+ python = pymod.find_installation()