diff options
author | George Hartzell <hartzell@alerce.com> | 2016-07-15 16:40:15 -0400 |
---|---|---|
committer | George Hartzell <hartzell@alerce.com> | 2016-07-21 13:51:03 -0400 |
commit | a27cb639d805b247c0e6d8348466cfb759f93191 (patch) | |
tree | cbc4407093a4f8b2a14a18d690e28513f9bdaef4 /var | |
parent | 098af1797137b0f84d4eb6d625a73fe45354357f (diff) | |
download | spack-a27cb639d805b247c0e6d8348466cfb759f93191.tar.gz spack-a27cb639d805b247c0e6d8348466cfb759f93191.tar.bz2 spack-a27cb639d805b247c0e6d8348466cfb759f93191.tar.xz spack-a27cb639d805b247c0e6d8348466cfb759f93191.zip |
The lmod package should depend_on('tcl')
The lmod package needs a tclsh. Up until now it just assumed
that one was available on the system.
This change adds a depends_on('tcl') to the lmod package.
The tcl package installs a tclsh script with an embedded version
number (e.g. tclsh8.6) but the lmod configuration looks for tclsh.
This change extends the tcl package to symlink tclshX.Y to tclsh in
the tcl package bin directory.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/lmod/package.py | 1 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/tcl/package.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lmod/package.py b/var/spack/repos/builtin/packages/lmod/package.py index efa235f646..caa9ea17b1 100644 --- a/var/spack/repos/builtin/packages/lmod/package.py +++ b/var/spack/repos/builtin/packages/lmod/package.py @@ -44,6 +44,7 @@ class Lmod(Package): depends_on('lua@5.2:') depends_on('lua-luaposix', type=nolink) depends_on('lua-luafilesystem', type=nolink) + depends_on('tcl') parallel = False diff --git a/var/spack/repos/builtin/packages/tcl/package.py b/var/spack/repos/builtin/packages/tcl/package.py index ef922314d8..16d896acc6 100644 --- a/var/spack/repos/builtin/packages/tcl/package.py +++ b/var/spack/repos/builtin/packages/tcl/package.py @@ -57,3 +57,5 @@ class Tcl(Package): configure("--prefix={0}".format(prefix)) make() make("install") + with working_dir(prefix.bin): + symlink('tclsh{0}'.format(self.version.up_to(2)), 'tclsh') |