-
Notifications
You must be signed in to change notification settings - Fork 763
Reset $TCL_SRC_DIR in tclConfig.sh created by Tcl
#24397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
When e.g. Tk is built on top of Tcl it will source this file and add include paths like `-I$TCL_SRC_DIR/unix` which (usually) don't exist anymore (removed after Tcl installation). Hence those flags have no effect. However if the path happens to be inaccessible (e.g. in another users $HOME) then the build fails with a permission issue. Simply set this variable to the install dir which always exists.
|
@boegelbot please test @ jsc-zen3 |
|
@Thyre: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... - notification for comment with ID 3461717794 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @Thyre |
|
We might need to "adapt" a few more paths, not sure if jreuter@ZAM054 > /opt/EasyBuild/apps/software/Tcl/9.0.1-GCCcore-14.3.0 $ grep -rni "/opt/EasyBuild/apps/build/" include lib share bin
lib/tclConfig.sh:102:TCL_BUILD_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix -ltcl9.0'
lib/tclConfig.sh:137:TCL_SRC_DIR='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1'
lib/tclConfig.sh:155:TCL_BUILD_STUB_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix -ltclstub'
lib/tclConfig.sh:162:TCL_BUILD_STUB_LIB_PATH='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/libtclstub.a'
lib/itcl4.3.2/itclConfig.sh:24:itcl_BUILD_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2 -litcl4.3.2'
lib/itcl4.3.2/itclConfig.sh:25:ITCL_BUILD_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2 -litcl4.3.2'
lib/itcl4.3.2/itclConfig.sh:38:itcl_BUILD_STUB_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2 -litclstub'
lib/itcl4.3.2/itclConfig.sh:39:ITCL_BUILD_STUB_LIB_SPEC='-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2 -litclstub'
lib/itcl4.3.2/itclConfig.sh:48:itcl_BUILD_STUB_LIB_PATH='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2/libitclstub.a'
lib/itcl4.3.2/itclConfig.sh:49:ITCL_BUILD_STUB_LIB_PATH='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/itcl4.3.2/libitclstub.a'
lib/itcl4.3.2/itclConfig.sh:61:itcl_SRC_DIR='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/itcl4.3.2'
lib/itcl4.3.2/itclConfig.sh:62:ITCL_SRC_DIR='/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/itcl4.3.2'
grep: lib/libtcl9.0.so: binary file matches
lib/tdbc1.1.10/tdbcConfig.sh:22:tdbc_BUILD_LIB_SPEC="-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10 -ltdbc1.1.10"
lib/tdbc1.1.10/tdbcConfig.sh:23:TDBC_BUILD_LIB_SPEC="-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10 -ltdbc1.1.10"
lib/tdbc1.1.10/tdbcConfig.sh:36:tdbc_BUILD_STUB_LIB_SPEC="-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10 -ltdbcstub"
lib/tdbc1.1.10/tdbcConfig.sh:37:TDBC_BUILD_STUB_LIB_SPEC="-L/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10 -ltdbcstub"
lib/tdbc1.1.10/tdbcConfig.sh:45:tdbc_BUILD_STUB_LIB_PATH="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10/libtdbcstub.a"
lib/tdbc1.1.10/tdbcConfig.sh:46:TDBC_BUILD_STUB_LIB_PATH="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/unix/pkgs/tdbc1.1.10/libtdbcstub.a"
lib/tdbc1.1.10/tdbcConfig.sh:57:tdbc_SRC_DIR="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10"
lib/tdbc1.1.10/tdbcConfig.sh:58:TDBC_SRC_DIR="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10"
lib/tdbc1.1.10/tdbcConfig.sh:67:tdbc_BUILD_INCLUDE_SPEC="-I/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10/generic"
lib/tdbc1.1.10/tdbcConfig.sh:68:TDBC_BUILD_INCLUDE_SPEC="-I/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10/generic"
lib/tdbc1.1.10/tdbcConfig.sh:75:tdbc_BUILD_LIBRARY_PATH="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10/library"
lib/tdbc1.1.10/tdbcConfig.sh:76:TDBC_BUILD_LIBRARY_PATH="/opt/EasyBuild/apps/build/Tcl/9.0.1/GCCcore-14.3.0/tcl9.0.1/pkgs/tdbc1.1.10/library"Could we do that via |
Replacing paths with I think we don't need to handle the |
|
Test report by @Flamefire |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Test report by @Micket |
When e.g. Tk is built on top of Tcl it will source this file and add include paths like
-I$TCL_SRC_DIR/unixwhich (usually) don't exist anymore (removed after Tcl installation).Hence those flags have no effect.
However if the path happens to be inaccessible (e.g. in another users $HOME) then the build fails with a permission issue.
Simply set this variable to the install dir which always exists.