summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Simberg <mikael.simberg@iki.fi>2024-04-30 03:41:38 +0200
committerGitHub <noreply@github.com>2024-04-29 18:41:38 -0700
commitee6960e53e1d86562cc85061f9e63b8ce7c124d7 (patch)
treed0c39eb2e2a5a96feef5ed6a7ed30031bd81a4e2
parentdad266c955a346e8325a73eca13e45482972a159 (diff)
downloadspack-ee6960e53e1d86562cc85061f9e63b8ce7c124d7.tar.gz
spack-ee6960e53e1d86562cc85061f9e63b8ce7c124d7.tar.bz2
spack-ee6960e53e1d86562cc85061f9e63b8ce7c124d7.tar.xz
spack-ee6960e53e1d86562cc85061f9e63b8ce7c124d7.zip
boost: Add 1.85.0 (#43788)
* boost: Add 1.85.0 * Add conflict for Boost 1.85.0 stacktrace change
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 55b9934b3f..801ecb03b4 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -29,8 +29,9 @@ class Boost(Package):
license("BSL-1.0")
version("develop", branch="develop", submodules=True)
- version("1.83.0", sha256="6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e")
+ version("1.85.0", sha256="7009fe1faa1697476bdc7027703a2badb84e849b7b0baad5086b087b971f8617")
version("1.84.0", sha256="cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454")
+ version("1.83.0", sha256="6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e")
version("1.82.0", sha256="a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6")
version("1.81.0", sha256="71feeed900fbccca04a3b4f2f84a7c217186f28a940ed8b7ed4725986baf99fa")
version("1.80.0", sha256="1e19565d82e43bc59209a168f5ac899d3ba471d55c7610c677d4ccf2c9c500c0")
@@ -287,6 +288,13 @@ class Boost(Package):
# (https://github.com/spack/spack/pull/32879#issuecomment-1265933265)
conflicts("%oneapi", when="@1.80")
+ # Boost 1.85.0 stacktrace added a hard compilation error that has to
+ # explicitly be suppressed on some platforms:
+ # https://github.com/boostorg/stacktrace/pull/150. This conflict could be
+ # turned into a variant that allows users to opt-in when they know it is
+ # safe to do so on affected platforms.
+ conflicts("+clanglibcpp", when="@1.85: +stacktrace")
+
# Patch fix from https://svn.boost.org/trac/boost/ticket/11856
patch("boost_11856.patch", when="@1.60.0%gcc@4.4.7")
@@ -636,6 +644,13 @@ class Boost(Package):
if spec.variants["cxxstd"].value == "11":
cxxflags.append("-std=c++11")
+ # See conflict above and
+ # https://github.com/boostorg/stacktrace/pull/150. This suppresses a
+ # compilation error that must be explicitly suppressed. Because of the
+ # conflict we can suppress the error without input from a user.
+ if spec.satisfies("@1.85: +stacktrace"):
+ cxxflags.append("-DBOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK")
+
if cxxflags:
options.append('cxxflags="{0}"'.format(" ".join(cxxflags)))