From a38045f77e8953b544010981c2fc125893dc99bd Mon Sep 17 00:00:00 2001 From: Alec Scott Date: Fri, 18 Apr 2025 02:52:36 -0400 Subject: [PATCH] libffi: update for best practices (#50050) --- var/spack/repos/builtin/packages/libffi/package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/libffi/package.py b/var/spack/repos/builtin/packages/libffi/package.py index e92f441274e..8fb8fec9efa 100644 --- a/var/spack/repos/builtin/packages/libffi/package.py +++ b/var/spack/repos/builtin/packages/libffi/package.py @@ -33,8 +33,8 @@ class Libffi(AutotoolsPackage): sha256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37", ) - depends_on("c", type="build") # generated - depends_on("cxx", type="build") # generated + depends_on("c", type="build") + depends_on("cxx", type="build") patch("clang-powerpc-3.2.1.patch", when="@3.2.1 platform=linux %clang") # ref.: https://github.com/libffi/libffi/pull/561 @@ -66,7 +66,7 @@ def flag_handler(self, name, flags): def configure_args(self): args = ["--with-pic"] - if self.spec.version >= Version("3.3"): + if self.spec.satisfies("@3.3:"): # Spack adds its own target flags, so tell libffi not to # second-guess us args.append("--without-gcc-arch")