set GUILE env var when building gnutls, fixes issue #11601 (#11607)

This commit is contained in:
Gregory Lee 2019-06-05 10:14:06 -07:00 committed by GitHub
parent dc8af3023e
commit cfcf3996d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import os
class Gnutls(AutotoolsPackage):
@ -45,6 +46,12 @@ def url_for_version(self, version):
url = "https://www.gnupg.org/ftp/gcrypt/gnutls/v{0}/gnutls-{1}.tar.xz"
return url.format(version.up_to(2), version)
def setup_environment(self, build_env, run_env):
spec = self.spec
if '+guile' in spec:
build_env.set('GUILE', os.path.join(spec["guile"].prefix.bin,
'guile'))
def configure_args(self):
spec = self.spec
args = [