From 57b83e5fb29ae3c84cf81eb0ed89c83e49dd3217 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sat, 22 Jun 2024 13:39:08 -0500 Subject: root: depends_on libc only on linux (#44823) --- var/spack/repos/builtin/packages/root/package.py | 6 +++--- 1 file 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") -- cgit v1.2.3-70-g09d2