From 9edbe5aed1db73dc441bfaf1b085acd1d720ec08 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Sat, 22 Feb 2025 00:45:54 +0100 Subject: [PATCH] liburing: requires(...) (#49041) * liburing: requires * Update var/spack/repos/builtin/packages/liburing/package.py Co-authored-by: Alec Scott --------- Co-authored-by: Alec Scott --- var/spack/repos/builtin/packages/liburing/package.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/var/spack/repos/builtin/packages/liburing/package.py b/var/spack/repos/builtin/packages/liburing/package.py index 690715e3f8f..f096e9d8924 100644 --- a/var/spack/repos/builtin/packages/liburing/package.py +++ b/var/spack/repos/builtin/packages/liburing/package.py @@ -23,25 +23,19 @@ class Liburing(AutotoolsPackage): license("LGPL-2.1-or-later OR MIT") - # Sanity checks sanity_check_is_file = ["include/liburing.h", "lib/liburing.so"] sanity_check_is_dir = ["include", "lib"] - # Versions version("master", branch="master") version("2.9", sha256="897b1153b55543e8b92a5a3eb9b906537a5fedcf8afaf241f8b8787940c79f8d") version("2.4", sha256="2398ec82d967a6f903f3ae1fd4541c754472d3a85a584dc78c5da2fabc90706b") version("2.3", sha256="60b367dbdc6f2b0418a6e0cd203ee0049d9d629a36706fcf91dfb9428bae23c8") - # Build dependencies depends_on("c", type="build") - depends_on("cxx", type="build") + depends_on("cxx", type="build") # only for tests - # Platform conflicts - conflicts("platform=darwin", msg="liburing is only supported on Linux.") - conflicts("platform=windows", msg="liburing is only supported on Linux.") + requires("platform=linux", msg="liburing is only supported on Linux.") - # Define build targets @property def build_targets(self): if self.spec.satisfies("@2.7:"):