Skip to content

(PA-8072) Create formula for precompiled bottles - #424

Merged
cthorn42 merged 2 commits into
masterfrom
gettext
Jan 12, 2026
Merged

cthorn42 merged 2 commits into
masterfrom
gettext

Conversation

@joshcooper

Copy link
Copy Markdown
Contributor

homebrew dropped bottles for macOS 13, so readd them:

Tap this repo

bash-3.2$ brew tap puppetlabs/puppet
==> Tapping puppetlabs/puppet
Cloning into '/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet'...
remote: Enumerating objects: 2405, done.
remote: Counting objects: 100% (325/325), done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 2405 (delta 180), reused 180 (delta 161), pack-reused 2080 (from 2)
Receiving objects: 100% (2405/2405), 1.43 MiB | 20.88 MiB/s, done.
Resolving deltas: 100% (1365/1365), done.
Tapped 13 casks and 5 formulae (47 files, 1.6MB).

Switch to branch:

bash-3.2$ cd "$(brew --repo puppetlabs/puppet)"
bash-3.2$ git checkout gettext
branch 'gettext' set up to track 'origin/gettext'.
Switched to a new branch 'gettext'

Install cmake

bash-3.2$ brew install puppetlabs/puppet/cmake
Warning: You are using macOS 13.
We (and Apple) do not provide support for this old version.
You may have better luck with MacPorts which supports older versions of macOS:
  https://www.macports.org

This is a Tier 3 configuration:
  https://docs.brew.sh/Support-Tiers#tier-3
You can report Tier 3 unrelated issues to Homebrew/* repositories!
Read the above document before opening any issues or PRs.

==> Fetching downloads for: cmake
✔︎ Bottle Manifest cmake (3.31.6)                                                                             Downloaded   15.4KB/ 15.4KB
✔︎ Bottle cmake (3.31.6)                                                                                      Downloaded   20.2MB/ 20.2MB
==> Installing cmake from puppetlabs/puppet
==> Pouring cmake--3.31.6.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/cmake/3.31.6: 3,788 files, 63.7MB
==> Running `brew cleanup cmake`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake

Install libunistring

bash-3.2$ time brew install puppetlabs/puppet/libunistring
Warning: You are using macOS 13.
We (and Apple) do not provide support for this old version.
You may have better luck with MacPorts which supports older versions of macOS:
  https://www.macports.org

This is a Tier 3 configuration:
  https://docs.brew.sh/Support-Tiers#tier-3
You can report Tier 3 unrelated issues to Homebrew/* repositories!
Read the above document before opening any issues or PRs.

==> Fetching downloads for: libunistring
✔︎ Bottle Manifest libunistring (1.3)                                                                         Downloaded    9.4KB/  9.4KB
✔︎ Bottle libunistring (1.3)                                                                                  Downloaded    1.9MB/  1.9MB
==> Installing libunistring from puppetlabs/puppet
==> Pouring libunistring--1.3.ventura.bottle.1.tar.gz
🍺  /usr/local/Cellar/libunistring/1.3: 59 files, 5.8MB
==> Running `brew cleanup libunistring`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).

real	0m2.861s
user	0m1.226s
sys	0m0.507s

Install gettext

bash-3.2$ time brew install puppetlabs/puppet/gettext
Warning: You are using macOS 13.
We (and Apple) do not provide support for this old version.
You may have better luck with MacPorts which supports older versions of macOS:
  https://www.macports.org

This is a Tier 3 configuration:
  https://docs.brew.sh/Support-Tiers#tier-3
You can report Tier 3 unrelated issues to Homebrew/* repositories!
Read the above document before opening any issues or PRs.

==> Fetching downloads for: gettext
✔︎ Bottle Manifest gettext (0.26)                                                                             Downloaded   17.9KB/ 17.9KB
✔︎ Bottle gettext (0.26)                                                                                      Downloaded    9.6MB/  9.6MB
==> Installing gettext from puppetlabs/puppet
==> Pouring gettext--0.26.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/gettext/0.26: 2,428 files, 29MB
==> Running `brew cleanup gettext`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).

real	0m6.862s
user	0m2.198s
sys	0m1.873s

I downloaded these formulas from upstream (just prior to then dropping ventura
support)

https://github.com/Homebrew/homebrew-core/blob/bc1540c647d28ede9bfef2b25353c41dbe440bb2/Formula/lib/libunistring.rb
https://github.com/Homebrew/homebrew-core/blob/b889b970ec654e0357222ee8b9db58768e94bdc3/Formula/g/gettext.rb

And I removed the `install` block so we don't accidentally fallback to building
from source in the future (if the bottles are removed).
Copied from cmake@3.rb and dropped the `install` block.
@joshcooper joshcooper changed the title Create formula for precompiled bottles (PA-8072) Create formula for precompiled bottles Jan 12, 2026
@cthorn42
cthorn42 merged commit b53d50e into master Jan 12, 2026
1 of 16 checks passed
@joshcooper
joshcooper deleted the gettext branch January 12, 2026 23:33
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