From 6a2149df6e2679bccf0dcf3875d05f03ee5b4a51 Mon Sep 17 00:00:00 2001 From: Julien Cortial <101571984+jcortial-safran@users.noreply.github.com> Date: Thu, 24 Aug 2023 03:05:00 +0200 Subject: [PATCH] Make lcov dependency on perl explicit (#39485) --- var/spack/repos/builtin/packages/lcov/package.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/lcov/package.py b/var/spack/repos/builtin/packages/lcov/package.py index 808601c108..dc7d3aa1b6 100644 --- a/var/spack/repos/builtin/packages/lcov/package.py +++ b/var/spack/repos/builtin/packages/lcov/package.py @@ -20,5 +20,12 @@ class Lcov(MakefilePackage): version("1.15", sha256="c1cda2fa33bec9aa2c2c73c87226cfe97de0831887176b45ee523c5e30f8053a") version("1.14", sha256="14995699187440e0ae4da57fe3a64adc0a3c5cf14feab971f8db38fb7d8f071a") + depends_on("perl") + def install(self, spec, prefix): - make("DESTDIR=", "PREFIX=%s" % prefix, "install") + make( + "LCOV_PERL_PATH=%s" % self.spec["perl"].command.path, + "DESTDIR=", + "PREFIX=%s" % prefix, + "install", + )