summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2021-10-09 19:43:54 +0200
committerGitHub <noreply@github.com>2021-10-09 12:43:54 -0500
commit5deb8a05c48f4da0c1748016edc7dcd7013bf7ce (patch)
tree17b93aa86b66a453a978ad956363cbf1e61ce5f4 /var
parent9194ca1e2f468172d9463bd2da82e54a8c15172f (diff)
downloadspack-5deb8a05c48f4da0c1748016edc7dcd7013bf7ce.tar.gz
spack-5deb8a05c48f4da0c1748016edc7dcd7013bf7ce.tar.bz2
spack-5deb8a05c48f4da0c1748016edc7dcd7013bf7ce.tar.xz
spack-5deb8a05c48f4da0c1748016edc7dcd7013bf7ce.zip
environment-modules: fix build (#26632)
PR #25904 moved the `--with-tcl` option to only older versions. However, without this option, the build breaks: ``` checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh ```
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/environment-modules/package.py4
1 files changed, 2 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 9a6888d50a..7bc1db8047 100644
--- a/var/spack/repos/builtin/packages/environment-modules/package.py
+++ b/var/spack/repos/builtin/packages/environment-modules/package.py
@@ -57,6 +57,8 @@ class EnvironmentModules(Package):
config_args = [
"--prefix=" + prefix,
+ # It looks for tclConfig.sh
+ "--with-tcl=" + tcl.libs.directories[0],
'--datarootdir=' + prefix.share
]
@@ -117,8 +119,6 @@ class EnvironmentModules(Package):
config_args.extend([
"--without-tclx",
"--with-tclx-ver=0.0",
- # It looks for tclConfig.sh
- "--with-tcl=" + tcl.libs.directories[0],
"--with-tcl-ver={0}".format(tcl.version.up_to(2)),
'--disable-versioning'
])