summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com>2020-05-19 17:58:04 +0200
committerGitHub <noreply@github.com>2020-05-19 10:58:04 -0500
commit63f09a66624bb07f62e9b09807c4152f84009a19 (patch)
tree493c8602513c8348de08a12ac43629505c65380a
parent31ab62fb5edb3266d70a7ca1a50a6212f14d3097 (diff)
downloadspack-63f09a66624bb07f62e9b09807c4152f84009a19.tar.gz
spack-63f09a66624bb07f62e9b09807c4152f84009a19.tar.bz2
spack-63f09a66624bb07f62e9b09807c4152f84009a19.tar.xz
spack-63f09a66624bb07f62e9b09807c4152f84009a19.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/openssl/package.py3
1 files changed, 3 insertions, 0 deletions
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)