Skip to content

Commit 4c99b23

Browse files
authored
cuda: remove bogus libxml2 dep for 12+ (#4563)
1 parent 5576229 commit 4c99b23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

repos/spack_repo/builtin/packages/cuda/package.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,12 +785,12 @@ class Cuda(Package):
785785
description="Allow unsupported host compiler and CUDA version combinations",
786786
)
787787

788-
# depends on libxml2.so.2
789-
depends_on("libxml2@:2.13", when="@10.1.243:")
788+
# depended on libxml2.so.2, known unused for 12.0+ (maybe unused for 11)
789+
depends_on("libxml2@:2.13", when="@10.1.243:11")
790790
# cuda-gdb needed libncurses.so.5 before 11.4.0
791791
# see https://docs.nvidia.com/cuda/archive/11.3.1/cuda-gdb/index.html#common-issues-oss
792792
# see https://docs.nvidia.com/cuda/archive/11.4.0/cuda-gdb/index.html#release-notes
793-
depends_on("ncurses abi=5", type="run", when="@:11.3.99+dev")
793+
depends_on("ncurses abi=5", type="run", when="@:11.3")
794794

795795
depends_on("gzip", type="build")
796796
depends_on("coreutils", type="build")
@@ -810,7 +810,7 @@ def setup_build_environment(self, env: EnvironmentModifications) -> None:
810810
# CUDA 9 has a fix for this, but CUDA 8 and lower don't.
811811
env.append_path("PERL5LIB", self.stage.source_path)
812812

813-
if self.spec.satisfies("@10.1.243:"):
813+
if self.spec.satisfies("^libxml2"):
814814
libxml2_home = self.spec["libxml2"].prefix
815815
env.set("LIBXML2HOME", libxml2_home)
816816
env.append_path("LD_LIBRARY_PATH", libxml2_home.lib)

0 commit comments

Comments
 (0)