summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorcitibeth <rpf2116@columbia.edu>2016-04-03 21:38:29 -0400
committercitibeth <rpf2116@columbia.edu>2016-04-03 21:38:29 -0400
commit79836520d989a19bc49b912698b22fdc8a65ca59 (patch)
tree18a0f31a0deee002b542608a6500542ec15eea20 /var
parent1c483ffe4e9b0dc03d469eba9c064461624a81be (diff)
downloadspack-79836520d989a19bc49b912698b22fdc8a65ca59.tar.gz
spack-79836520d989a19bc49b912698b22fdc8a65ca59.tar.bz2
spack-79836520d989a19bc49b912698b22fdc8a65ca59.tar.xz
spack-79836520d989a19bc49b912698b22fdc8a65ca59.zip
Fixed up to work on a machine without any system-install tcl.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/environment-modules/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/environment-modules/package.py b/var/spack/repos/builtin/packages/environment-modules/package.py
index cc5d76760e..45181da41b 100644
--- a/var/spack/repos/builtin/packages/environment-modules/package.py
+++ b/var/spack/repos/builtin/packages/environment-modules/package.py
@@ -14,16 +14,21 @@ class EnvironmentModules(Package):
depends_on('tcl')
def install(self, spec, prefix):
+ tcl_spec = spec['tcl']
+
# See: https://sourceforge.net/p/modules/bugs/62/
CPPFLAGS = ['-DUSE_INTERP_ERRORLINE']
config_args = [
- '--prefix=%s' % prefix,
+ "--without-tclx",
+ "--with-tclx-ver=0.0",
+ "--prefix=%s" % prefix,
+ "--with-tcl=%s" % join_path(tcl_spec.prefix, 'lib'), # It looks for tclConfig.sh
+ "--with-tcl-ver=%d.%d" % (tcl_spec.version.version[0], tcl_spec.version.version[1]),
'--disable-debug',
'--disable-dependency-tracking',
'--disable-silent-rules',
'--disable-versioning',
'--datarootdir=%s' % prefix.share,
- '--with-tcl=%s' % join_path(spec['tcl'].prefix, 'lib'), # It looks for tclConfig.sh
'CPPFLAGS=%s' % ' '.join(CPPFLAGS)
]