summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Klein <d.klein@gsi.de>2023-06-24 13:13:17 +0200
committerGitHub <noreply@github.com>2023-06-24 13:13:17 +0200
commit7b977dc103d92ee5293407c560906790ab00332b (patch)
tree1cbeddf9e9a3aaaae4f4af8aa54d9bc427868e7f
parentf98bfebce4454c527542d7a154186d27ed0542cb (diff)
downloadspack-7b977dc103d92ee5293407c560906790ab00332b.tar.gz
spack-7b977dc103d92ee5293407c560906790ab00332b.tar.bz2
spack-7b977dc103d92ee5293407c560906790ab00332b.tar.xz
spack-7b977dc103d92ee5293407c560906790ab00332b.zip
libzmq: Fix static assertion failure with gcc-13 (#38391)
-rw-r--r--var/spack/repos/builtin/packages/libzmq/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libzmq/package.py b/var/spack/repos/builtin/packages/libzmq/package.py
index 2df7c95ad1..15349324da 100644
--- a/var/spack/repos/builtin/packages/libzmq/package.py
+++ b/var/spack/repos/builtin/packages/libzmq/package.py
@@ -15,6 +15,8 @@ class Libzmq(AutotoolsPackage):
url = "https://github.com/zeromq/libzmq/releases/download/v4.3.2/zeromq-4.3.2.tar.gz"
git = "https://github.com/zeromq/libzmq.git"
+ maintainers("dennisklein")
+
version("master", branch="master")
version("4.3.4", sha256="c593001a89f5a85dd2ddf564805deb860e02471171b3f204944857336295c3e5")
version("4.3.3", sha256="9d9285db37ae942ed0780c016da87060497877af45094ff9e1a1ca736e3875a2")
@@ -80,6 +82,13 @@ class Libzmq(AutotoolsPackage):
when="@4.3.4 %gcc@12:",
)
+ # Fix static assertion failure with gcc-13
+ patch(
+ "https://github.com/zeromq/libzmq/commit/438d5d88392baffa6c2c5e0737d9de19d6686f0d.patch?full_index=1",
+ sha256="e15a8bfe8131f3e648fd79f3c1c931f99cd896b2733a7df1760f5b4354a0687c",
+ when="@4.3.3:4.3.4 %gcc@13:",
+ )
+
def url_for_version(self, version):
if version <= Version("4.1.4"):
url = "http://download.zeromq.org/zeromq-{0}.tar.gz"