From 5deb8a05c48f4da0c1748016edc7dcd7013bf7ce Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Sat, 9 Oct 2021 19:43:54 +0200 Subject: [PATCH] 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 ``` --- .../repos/builtin/packages/environment-modules/package.py | 4 ++-- 1 file 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 9a6888d50a5..7bc1db80478 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 @@ def install(self, spec, prefix): config_args = [ "--prefix=" + prefix, + # It looks for tclConfig.sh + "--with-tcl=" + tcl.libs.directories[0], '--datarootdir=' + prefix.share ] @@ -117,8 +119,6 @@ def install(self, spec, prefix): 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' ])