summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>2023-10-30 06:16:25 -0500
committerGitHub <noreply@github.com>2023-10-30 12:16:25 +0100
commite720d8640a27a25a2e77cbb8b43a0eca4c78cb40 (patch)
tree97769aa7a1e459bc850ebfb25bda18fbd0dd3e73
parent00602cda4f9ccd39d0f7a90012a918128adf9e51 (diff)
downloadspack-e720d8640a27a25a2e77cbb8b43a0eca4c78cb40.tar.gz
spack-e720d8640a27a25a2e77cbb8b43a0eca4c78cb40.tar.bz2
spack-e720d8640a27a25a2e77cbb8b43a0eca4c78cb40.tar.xz
spack-e720d8640a27a25a2e77cbb8b43a0eca4c78cb40.zip
ISPC: Drop ncurses workaround in favor of patch (#39662)
ISPC had a bug in their lookup for NCurses, this was fixed upstream and backported here.
-rw-r--r--var/spack/repos/builtin/packages/ispc/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/ispc/package.py b/var/spack/repos/builtin/packages/ispc/package.py
index 1da8faa0fd..8bef2ce2f5 100644
--- a/var/spack/repos/builtin/packages/ispc/package.py
+++ b/var/spack/repos/builtin/packages/ispc/package.py
@@ -67,10 +67,15 @@ class Ispc(CMakePackage):
sha256="d3ccf547d3ba59779fd375e10417a436318f2200d160febb9f830a26f0daefdc",
)
+ # Fix library lookup for NCurses in CMake
+ patch(
+ "https://patch-diff.githubusercontent.com/raw/ispc/ispc/pull/2638.patch?full_index=1",
+ when="@1.18:1.20",
+ sha256="3f7dae8d4a683fca2a6157bbcb7cbe9692ff2094b0f4afaf29be121c02b0b3ad",
+ )
+
def setup_build_environment(self, env):
if self.spec.satisfies("@1.18.0:"):
- env.append_flags("LDFLAGS", "-lcurses")
- env.append_flags("LDFLAGS", "-ltinfo")
env.append_flags("LDFLAGS", "-lz")
def patch(self):