Skip to content
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

[email protected] does not disable tkinter on gnu+linux #202570

Open
4 tasks done
ipatch opened this issue Dec 27, 2024 · 2 comments
Open
4 tasks done

[email protected] does not disable tkinter on gnu+linux #202570

ipatch opened this issue Dec 27, 2024 · 2 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@ipatch
Copy link
Contributor

ipatch commented Dec 27, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

na

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

with my homebrew install on arch linux i run homebrew in a non standard prefix ie. ~/homebrew that said, i believe this issue could effect standard prefix installations of homebrew as well.

What happened (include all command output)?

running brew install [email protected] -v -s will fail.

i think the homebrew ci is able to produce a working bottle because it sets up a fresh homebrew installation to where tcl-tk is not installed in the environment. that said if someone has explicitly installed tcl-tk and then installs [email protected] from source the configure script for python will pick up on the tcl-tk install in the path and attempt to configure [email protected] with tcl-tk support thus running into the tkinter build / linking error.

in the [email protected] formula file there is the below snippet,

 # Disabled modules - provided in separate formulae
    args += %w[
      py_cv_module__tkinter=disabled
    ]

# Disabled modules - provided in separate formulae
args += %w[
py_cv_module__tkinter=disabled
]

that snippet essentially does nothing. one can verify by running the below command,

note: tcl-tk should be installed, ie. brew install tcl-tk

run,

brew install --interactive -v [email protected] -s

open up the config.log do a search for tkinter and notice the values set within the config.log


i ended up using the same technique that macports uses for disabling tcl-tk ie. seen below,

https://github.com/Homebrew/homebrew-core/blob/5024d5b785db171580f43ce223e0eb6a3b6a0c45/patches/python-3.12-disable-tkinter.patch

What did you expect to happen?

a working python installation, ie. a configure build link of python without failure.

Step-by-step reproduction instructions (by running brew commands)

previously mentioned
@ipatch ipatch added the bug Reproducible Homebrew/homebrew-core bug label Dec 27, 2024
@Bo98
Copy link
Member

Bo98 commented Dec 27, 2024

Does n/a work instead of disabled?

@ipatch
Copy link
Contributor Author

ipatch commented Dec 27, 2024

Does n/a work instead of disabled?

hunh? 🤨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants