Linkage broken with wrong HOMEBREW_PREFIX on Apple Silicon #5605
Unanswered
emmercm
asked this question in
Tap maintenance and brew development
Replies: 1 comment 3 replies
-
Your call to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I cannot for the life of me figure out why the formula in my tap has broken linkages.
I have a formula (permalink) that
depends_on
libdeflate, libuv, lz4, node@20, and sdl2. When I install it via typical commands on my M2 MacBook:I get a broken linkage:
My understanding is that
/usr/local
was replaced with/opt/homebrew
on Apple silicon. If so, why is Homebrew looking for these libraries in the old prefix? The libraries do get installed correctly in the new prefix:I get the same issue when I try to test the formula in CI, with the caveat that I have to force
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
because otherwise the update-after-install will unlink my binary because of the broken linkage:Beta Was this translation helpful? Give feedback.
All reactions