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.
This commit is contained in:
Dr. Christian Tacke 2020-05-19 17:58:04 +02:00 committed by GitHub
parent 31ab62fb5e
commit 63f09a6662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,3 +154,6 @@ def link_system_certs(self):
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)