Detect homebrew prefix path to fix search without pkg-config installed#36
Merged
kou merged 1 commit intoruby-gnome:mainfrom Aug 26, 2025
Merged
Detect homebrew prefix path to fix search without pkg-config installed#36kou merged 1 commit intoruby-gnome:mainfrom
kou merged 1 commit intoruby-gnome:mainfrom
Conversation
This is `/opt/homebrew` on most macs, which combines just below with `lib/pkgconfig` to get `/opt/homebrew/lib/pkgconfig` in the search paths, which is where all installed & linked homebrew pkgconfig files live. The homebrew repository path has a few .pc files that are versioned by OS release, these files provide pkgconfig info for some libraries bundled in macOS and the Xcode command line tools which don't provide their own.
Member
|
Thanks! |
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Aug 30, 2025
1.6.3 (2025-08-27) Improvements * Added support for detecting Homebrew's pkgconfig path by brew --path. - ruby-gnome/pkg-config#36 - Patch by meredith Thanks * meredith
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is
/opt/homebrewon most macs, which combines just below withlib/pkgconfigto get/opt/homebrew/lib/pkgconfigin the search paths, which is where all installed & linked homebrew pkgconfig files live.Hi! I had some trouble installing
irubywithrubygems-requirements-systemon a new Mac, where the homebrew install of libzmq was triggered and returned success (exit code 0), but there was still an unclear failure in the gem install. I traced that to the pkg-config check just after the install:This doesn't happen if you have installed
pkgconfthrough homebrew, but I can see the pkg-config executable is not intended to be required. I saw that pkg-config was vendored and came here to submit a patch -- the other gem is slightly out of date, but evenmainhere wasn't working for me withoutpkg-configavailable.This PR adds the right path, based on
brew --prefix, for installed homebrew packages. The most recent change in this section looks like it tests/opt/homebrew/Homebrew/lib/pkgconfigwhich doesn't exist.