Skip to content

Conversation

gromgit
Copy link
Contributor

@gromgit gromgit commented Feb 23, 2023

Just by installing to include/tcl-tk instead of include, we solve several issues when removing the "keg-only" attribute:

  • pathname clashes with xorgproto
  • brew audit complaints about shadowing macOS Tcl/Tk's own headers
  • tclConfig.sh and tkConfig.sh are generated with the correct include path, so everything that depends on Tcl/Tk should still build correctly

Addresses https://github.com/orgs/Homebrew/discussions/4264.

  • 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 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 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Just by installing to `include/tcl-tk` instead of `include`, we solve several issues when removing the "keg-only" attribute:

* pathname clashes with `xorgproto`
* `brew audit` complaints about shadowing macOS Tcl/Tk's own headers
* `tclConfig.sh` and `tkConfig.sh` are generated with the correct include path, so everything that depends on Tcl/Tk should still build correctly

Addresses https://github.com/orgs/Homebrew/discussions/4264.
@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

simonjwright added a commit to simonjwright/tcladashell that referenced this pull request Feb 24, 2023
Prior to Homebrew/homebrew-core#124056, tcl-tk
was "keg-only" which meant it couldn't be found on the standard
include path ($HOMEBREW_PREFIX/include); however, you can always find
an installed package in $HOMEBREW_PREFIX/opt.  The change above moves
the tcl-tk includes down a level, so here we include both; one of them
should work!

  * tcl_tk_options.gpr (C_Compiler_Switches): on macos, provide both
      possible include paths.
  * alire.toml (version): update to 8.7.2.
simonjwright added a commit to simonjwright/tcladashell that referenced this pull request Feb 24, 2023
Prior to Homebrew/homebrew-core#124056, tcl-tk
was "keg-only" which meant it couldn't be found on the standard
include path ($HOMEBREW_PREFIX/include); however, you can always find
an installed package in $HOMEBREW_PREFIX/opt.  The change above moves
the tcl-tk includes down a level, so here we include both; one of them
should work!

  * tcl_tk_options.gpr (C_Compiler_Switches): on macos, provide both
      possible include paths.
  * alire.toml (version): update to 8.7.2.
  * config/: removed. It gets regenerated on fetch or update.
ZhongRuoyu added a commit to Porkepix/homebrew-core that referenced this pull request Mar 8, 2023
The location of `tcl-tk` headers was changed in Homebrew#124056.
@ZhongRuoyu ZhongRuoyu mentioned this pull request Mar 8, 2023
BrewTestBot pushed a commit that referenced this pull request Mar 8, 2023
* x3270 4.2ga9
* x3270: fix `tcl-tk` includes
  The location of `tcl-tk` headers was changed in #124056.

Closes #124903.

Co-authored-by: Ruoyu Zhong <[email protected]>
Signed-off-by: Patrick Linnane <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
ZhongRuoyu added a commit to chenrui333/homebrew-core that referenced this pull request Mar 16, 2023
The location of `tcl-tk` headers was changed in Homebrew#124056.
BrewTestBot pushed a commit that referenced this pull request Mar 17, 2023
* opencascade 7.7.0
* opencascade: fix build
* opencascade: fix `tcl-tk` includes
  The location of `tcl-tk` headers was changed in #124056.

Signed-off-by: Rui Chen <[email protected]>

Co-authored-by: Ruoyu Zhong <[email protected]>
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2023
@gromgit gromgit deleted the tcl-tk/move-headers branch May 10, 2023 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants