From 63f09a66624bb07f62e9b09807c4152f84009a19 Mon Sep 17 00:00:00 2001 From: "Dr. Christian Tacke" <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Tue, 19 May 2020 17:58:04 +0200 Subject: openssl: Be Explicit About perl Usage (#16721) The openssl build process can use the wrong perl for various reasons, including: * Wrong value in PERL env var * The build process first looks for `perl5`, which the spack system does not provide, but some other distributions provide it. That way, the build process can end up using the wrong perl. Stop all of these problems by explicitly setting PERL to the to be used dependency. --- var/spack/repos/builtin/packages/openssl/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py index 0ab8782783..ae47568ce8 100644 --- a/var/spack/repos/builtin/packages/openssl/package.py +++ b/var/spack/repos/builtin/packages/openssl/package.py @@ -154,3 +154,6 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package if os.path.isdir(sys_certs) and not os.path.islink(pkg_certs): os.rmdir(pkg_certs) os.symlink(sys_certs, pkg_certs) + + def setup_build_environment(self, env): + env.set('PERL', self.spec['perl'].prefix.bin.perl) -- cgit v1.2.3-70-g09d2