Skip to content

Commit

Permalink
root: fix @loader_path on macOS (spack#44826)
Browse files Browse the repository at this point in the history
* root: fix @loader_path on macOS

* root: use loader patch from upstream

Co-authored-by: Wouter Deconinck <[email protected]>

* add missing comma

* root: rm unused patch

* root: conflict on macos 12 for @:6.27 when +python

---------

Co-authored-by: Wouter Deconinck <[email protected]>
  • Loading branch information
aphecetche and wdconinc authored Sep 3, 2024
1 parent 5c297d8 commit 9b077a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions var/spack/repos/builtin/packages/root/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ class Root(CMakePackage):
sha256="e68be5fe7b1ec873da134bd39c5c72730c4ca06d51b52eb436ae44fe81cd472d",
when="@:6.30.04 +x",
)
# Fix rpath for loading cppyy
patch(
"https://github.com/root-project/root/pull/15925.diff?full_index=1",
sha256="1937290a4d54cd2e3e8a8d23d93b8dedaca9ed8dcfdcfa2f0d16629ff53fb3b7",
when="@6.28: +python",
)

# ###################### Variants ##########################
# See README.md for specific notes about what ROOT configuration
Expand Down Expand Up @@ -443,6 +449,10 @@ class Root(CMakePackage):
# See https://github.com/root-project/root/issues/11128
conflicts("%clang@16:", when="@:6.26.07", msg="clang 16+ support was added in root 6.26.08")

# See https://github.com/spack/spack/pull/44826
if sys.platform == "darwin" and macos_version() == Version("12"):
conflicts("@:6.27", when="+python", msg="macOS 12 python support for 6.28: only")

# See https://github.com/root-project/root/issues/11714
if sys.platform == "darwin" and macos_version() >= Version("13"):
conflicts("@:6.26.09", msg="macOS 13 support was added in root 6.26.10")
Expand Down

0 comments on commit 9b077a3

Please sign in to comment.