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

libwhy-test.pc from highway formulae breaks pkg-config #112785

Closed
2 tasks done
mikhailkoliada opened this issue Oct 10, 2022 · 5 comments
Closed
2 tasks done

libwhy-test.pc from highway formulae breaks pkg-config #112785

mikhailkoliada opened this issue Oct 10, 2022 · 5 comments
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age

Comments

@mikhailkoliada
Copy link
Contributor

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

HOMEBREW_VERSION: 3.6.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: d5b6b068c15a8df60f0f5e34a4ca80dcf82c48e3
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a1b61b0fec33a77423af06e132d396ba28296be0
Core tap last commit: 11 days ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: 3650
HOMEBREW_COLOR: set
HOMEBREW_MAKE_JOBS: 3
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 3-core 64-bit ivybridge
Clang: 14.0.0 build 1400
Git: 2.37.3 => /usr/local/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-x86_64
CLT: 14.0.0.0.1.1661618636
Xcode: 14.0.1 => /Applications/Xcode_14.0.1.app/Contents/Developer
Your system is ready to brew.

Verification

  • 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.

What were you trying to do (and why)?

The original ticket was reported to the GitHub Actions team (actions/runner-images#6364)

Simple test revealed that /usr/local/lib/pkgconfig/libhwy-test.pc removal fixes the problem. This pkg-config file comes from the highway formulae, which, in turn, is a dependency of imagemagick (we are installing imagemagick to macOS runners).
I also noticed that compiling highway from scratch also bring the problem back, so formally it myst go directly to upstream, but in the formulae I see these files are being overwritten by the jpeg-xl formula so I di nit know who is the real culprit.

NB: I see this problem exists only on the Big Sur and Monterey runners, Catalina seems to be unaffected.

What happened (include all command output)?

/Users/runner/work/_temp/51c71d4c-af30-4e69-826a-37bc32455a38.sh: line 8: 23019 Segmentation fault: 11 pkg-config --list-all

What did you expect to happen?

no segfault, list all available modules

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

brew install imagemagick
pkg-config --list-all

OR

brew install highway
pkg-config --list-all
@mikhailkoliada mikhailkoliada added the bug Reproducible Homebrew/homebrew-core bug label Oct 10, 2022
@SMillerDev
Copy link
Member

If it also happens when compiled from source it should probably be reported upstream instead.

@mikhailkoliada
Copy link
Contributor Author

@SMillerDev true that but:

  1. at which upstream exactly? (jpeg-xl, highway, both?)
  2. do not want brew to fix it locally in a formulae/formula? (though I do not know if it is a case to be fixed)

@SMillerDev
Copy link
Member

  1. The link overwrite just means that if you still have those files brew can assign them to highway so that's the upstream those files now come from
  2. Brew only ships fixes that have been submitted and accepted upstream.

@mikhailkoliada
Copy link
Contributor Author

@SMillerDev ah ok, now I see, lets report it upstream then, I will CC you if you are not minding as I think brew might be interested in getting a fix too.

@Bo98
Copy link
Member

Bo98 commented Oct 10, 2022

Looks like it's already fixed upstream: google/highway@357e21b

We can apply this patch to the formula.

Bo98 added a commit to Bo98/homebrew-core that referenced this issue Oct 10, 2022
@github-actions github-actions bot added the outdated PR was locked due to age label Nov 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants