From aa86342814a107119e1503586e0c1e08d1160151 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 5 Mar 2025 20:48:04 -0600 Subject: [PATCH] Ensure if TCL is already sourced on the system the lib paths don't interfere with spack's install step (#49325) --- var/spack/repos/builtin/packages/tcl/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/tcl/package.py b/var/spack/repos/builtin/packages/tcl/package.py index 5d5419a5c99..08c592a68a5 100644 --- a/var/spack/repos/builtin/packages/tcl/package.py +++ b/var/spack/repos/builtin/packages/tcl/package.py @@ -182,6 +182,12 @@ def setup_dependent_build_environment(self, env, dependent_spec): class AutotoolsBuilder(AnyBuilder, spack.build_systems.autotools.AutotoolsBuilder): configure_directory = "unix" + # if TCL is present on the system this may be set to the system's + # existing TCL so ensure it is unset + # https://wiki.tcl-lang.org/page/TCL%5FLIBRARY + def setup_build_environment(self, env): + env.set("TCL_LIBRARY", "") + def install(self, pkg, spec, prefix): with working_dir(self.build_directory): make("install")