From 8c84c5ff66dc6dcad10809876c01363162e76f13 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Tue, 28 May 2024 10:57:56 +0200 Subject: [PATCH] whizard: add a dependency on ghostscript and fix +openmp (#44414) --- var/spack/repos/builtin/packages/whizard/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/whizard/package.py b/var/spack/repos/builtin/packages/whizard/package.py index d553119c521..82f3ec6bd08 100644 --- a/var/spack/repos/builtin/packages/whizard/package.py +++ b/var/spack/repos/builtin/packages/whizard/package.py @@ -80,6 +80,7 @@ class Whizard(AutotoolsPackage): when="+openloops", ) depends_on("texlive", when="+latex") + depends_on("ghostscript", when="+latex") depends_on("zlib-api") # Fix for https://github.com/key4hep/key4hep-spack/issues/71 @@ -159,8 +160,8 @@ def configure_args(self): if "+openloops" in spec: args.append(f"--with-openloops={spec['openloops'].prefix}") - if "+openmp" not in spec: - args.append("--disable-openmp") + if "+openmp" in spec: + args.append("--enable-fc-openmp") return args def url_for_version(self, version):