diff options
-rw-r--r-- | var/spack/repos/builtin/packages/root/package.py | 6 |
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") |