Skip to content

Conversation

cho-m
Copy link
Member

@cho-m cho-m commented Sep 6, 2025

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Looks like this uses system TCL on macOS - https://github.com/B-Lang-org/bsc/blob/main/platform.sh#L81-L86

@github-actions github-actions bot added haskell Haskell use is a significant feature of the PR or issue perl Perl use is a significant feature of the PR or issue labels Sep 6, 2025

uses_from_macos "bison" => :build
uses_from_macos "flex" => :build
uses_from_macos "libffi"
uses_from_macos "perl"
uses_from_macos "tcl-tk"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOS tcl-tk is old and deprecated; we probably shouldn't be using it anymore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would need upstream changes as they specifically set to system copy - https://github.com/B-Lang-org/bsc/blob/main/platform.sh#L81-L86

if [ ${OSTYPE} = "Darwin" ] ; then
    # Have Makefile avoid Homebrew's install of tcl on Mac
    TCLSH=/usr/bin/tclsh
else
    TCLSH=`which tclsh`
fi

Copy link
Contributor

@gromgit gromgit Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth clarifying with upstream if this change, introduced over 4 years ago, still makes sense, especially since:-

sonoma$ /usr/bin/tclsh

WARNING: This version of tcl is included in macOS for compatibility with legacy software.
In future versions of macOS the tcl runtime will not be available by
default, and may require you to install an additional package.

% 

Copy link
Member Author

@cho-m cho-m Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'll try make TCLSH=... to see if it overrides lookup.

EDIT: insufficient as still used to find tclversion and tclinc:

Using tclsh: /opt/homebrew/opt/tcl-tk/bin/tclsh
Tcl version: 8.5
Using Tcl defines: TCL85
Using tcl include flags: 
Using tcl library flags: -ltcl8.5

Copy link
Member Author

@cho-m cho-m Sep 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream should be aware that system Tcl is outdated and has mentioned interest in moving away from it back in 2022:

Someone in issue discussion patched out the system Tcl logic like: kammoh/bsc@ded6d77

@cho-m cho-m mentioned this pull request Sep 6, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
haskell Haskell use is a significant feature of the PR or issue perl Perl use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants