summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-06-22 13:39:08 -0500
committerGitHub <noreply@github.com>2024-06-22 20:39:08 +0200
commit57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217 (patch)
treeac9276bc077f613a66ffe8e162a4726fde84b62c
parent55fe73586ef0956228a86cc959869788cdb8e545 (diff)
downloadspack-57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217.tar.gz
spack-57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217.tar.bz2
spack-57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217.tar.xz
spack-57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217.zip
root: depends_on libc only on linux (#44823)
-rw-r--r--var/spack/repos/builtin/packages/root/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index 48341e59ca..a7e0e25cee 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -283,9 +283,9 @@ class Root(CMakePackage):
depends_on("pkgconfig", type="build")
# 6.32.00 requires sys/random.h
- depends_on("libc", when="@6.32.00:")
- depends_on("glibc@2.25:", when="^[virtuals=libc] glibc")
- depends_on("musl@1.1.20:", when="^[virtuals=libc] musl")
+ with when("@6.32.00:"):
+ depends_on("glibc@2.25:", when="^[virtuals=libc] glibc")
+ depends_on("musl@1.1.20:", when="^[virtuals=libc] musl")
depends_on("freetype")
depends_on("jpeg")