diff options
author | Martin Aumüller <aumuell@reserv.at> | 2023-10-01 18:04:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 09:04:37 -0700 |
commit | 8a9d45cc29be296e400881613bb77ea07b041971 (patch) | |
tree | db94b5dd7746838419da5a873ba3008f6a15ef4c | |
parent | b25f8643ff6f28d9ca0c23d4eb46aadb840683cf (diff) | |
download | spack-8a9d45cc29be296e400881613bb77ea07b041971.tar.gz spack-8a9d45cc29be296e400881613bb77ea07b041971.tar.bz2 spack-8a9d45cc29be296e400881613bb77ea07b041971.tar.xz spack-8a9d45cc29be296e400881613bb77ea07b041971.zip |
embree: fix linux build on aarch64 for 3.13.5 (#39749)
- upstream patch does not apply cleanly to older versions, not required
for newer ones
- also add conflict for older versions, except for 3.13.3 which works by
chance
-rw-r--r-- | var/spack/repos/builtin/packages/embree/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/embree/package.py b/var/spack/repos/builtin/packages/embree/package.py index 4f8c8664ef..3da828eb6b 100644 --- a/var/spack/repos/builtin/packages/embree/package.py +++ b/var/spack/repos/builtin/packages/embree/package.py @@ -37,6 +37,17 @@ class Embree(CMakePackage): depends_on("tbb") + # official aarch64 support on macOS starting with 3.13.0, on Linux since 4.0.0 + # upstream patch for Linux/aarch64 applies cleanly to 3.13.5, and 3.13.3 works by chance + conflicts("@:3.12", when="target=aarch64:") + conflicts("@:3.13.2", when="target=aarch64: platform=linux") + conflicts("@3.13.4", when="target=aarch64: platform=linux") + patch( + "https://github.com/embree/embree/commit/82ca6b5ccb7abe0403a658a0e079926478f04cb1.patch?full_index=1", + sha256="3af5a65e8875549b4c930d4b0f2840660beba4a7f295d8c89068250a1df376f2", + when="@3.13.5", + ) + def cmake_args(self): spec = self.spec |