Skip to content

Find tcl8 on Fedora-based systems #783

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danderson
Copy link
Contributor

With the release of tcl 9, tcl8 commands get installed with a suffix, e.g. 'tclsh8'. platform.sh rejects tcl 9 as unsupported, and fails to find tcl 8 when installed with a suffix.

Since 'tclsh8' more specifically identifies a tcl version that's definitely supported, look for that first, and then try the generic 'tclsh' as a fallback.


With this change, I'm able to make install-src on Fedora 42. Without it, the build fails partway because platform.mk fails to find a usable tclsh.

Possible alternative: support tcl 9? The build fails with a specific "unsupported" error when I have tcl9 installed. I assumed that meant that actual work is required to port to tcl9, but if that check is just a case of "it should work, but we want to verify explicitly before allowing it", I can instead try to do that, if you'd prefer.

With the release of tcl 9, tcl8 commands get installed with a suffix,
e.g. 'tclsh8'. platform.sh rejects tcl 9 as unsupported, and fails to
find tcl 8 when installed with a suffix.

Since 'tclsh8' more specifically identifies a tcl version that's
definitely supported, look for that first, and then try the generic
'tclsh' as a fallback.

Signed-off-by: David Anderson <[email protected]>
@quark17
Copy link
Collaborator

quark17 commented Jul 5, 2025

I believe the check you're referring to is in src/vendor/htcl/Makefile, although let me know if there are other places. This is probably an error merely because we haven't tried it. I would say, yes, see if allowing v9 works, including passing the test suite. The changes in v9.0 that are incompatible don't seem to me to be a worry, but maybe there are some Tcl scripts in the repo that would need to be updated (for example, to not use tilde in paths).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants