From 02c2516e88c79fa3f4246b4f8a686ec88d24e37b Mon Sep 17 00:00:00 2001 From: Piotr Sacharuk <107190444+PiotrSacharuk@users.noreply.github.com> Date: Wed, 12 Feb 2025 19:25:34 +0100 Subject: [PATCH] unifyfs: Apply workaround for oneAPI compiler for problem with build (#48962) --- var/spack/repos/builtin/packages/unifyfs/package.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/unifyfs/package.py b/var/spack/repos/builtin/packages/unifyfs/package.py index 36665771655..568675121e7 100644 --- a/var/spack/repos/builtin/packages/unifyfs/package.py +++ b/var/spack/repos/builtin/packages/unifyfs/package.py @@ -112,10 +112,12 @@ def setup_build_environment(self, env): if self.spec.satisfies("%oneapi"): env.append_flags("CFLAGS", "-Wno-unused-function") - @when("%cce@11.0.3:") def patch(self): - filter_file("-Werror", "", "client/src/Makefile.in") - filter_file("-Werror", "", "client/src/Makefile.am") + if self.spec.satisfies("%cce@11.0.3:"): + filter_file("-Werror", "", "client/src/Makefile.in") + filter_file("-Werror", "", "client/src/Makefile.am") + if self.spec.satisfies("@2.0 %oneapi@2025:"): + filter_file("static int asprintf", "int asprintf", "examples/src/testutil.c") @when("@develop") def autoreconf(self, spec, prefix):