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

Use plist main binary for Rosetta audit #18109

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

leipert
Copy link
Contributor

@leipert leipert commented Aug 21, 2024

Currently brew audit only audits the first binary in a cask. For example the cask wiso-steuer-2024 contains multiple binaries in Contents/MacOS:

  • btssysteminfo
  • whilfe
  • wmain24

The first binary (some telemetry tool) is not the main binary and not a universal binary, but the other two are. Given that wmain24 is defined as the main binary in the Contents/Info.plist, brew probably should audit that binary rather than just checking the first one.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Currently `brew audit` only audits the first binary in a cask.
For example the cask `wiso-steuer-2024` contains multiple binaries in
`Contents/MacOS`:
- `btssysteminfo`
- `whilfe`
- `wmain24`

The first binary (some telemetry tool) is not the main binary and not
a universal binary, but the other two are. Given that `wmain24` is
defined as the main binary in the `Contents/Info.plist`, brew probably
should audit that binary rather than just checking the first one.
@leipert leipert force-pushed the leipert-fix-rosetta-audit branch from db877b9 to 8814a49 Compare August 21, 2024 08:01
@leipert
Copy link
Contributor Author

leipert commented Aug 21, 2024

@MikeMcQuaid / @SMillerDev WDYT about this follow-up to #17573 ?

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems much nicer, good work @leipert!

@MikeMcQuaid
Copy link
Member

Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @leipert!

@MikeMcQuaid MikeMcQuaid merged commit b308218 into Homebrew:master Aug 21, 2024
24 checks passed
@leipert leipert deleted the leipert-fix-rosetta-audit branch August 21, 2024 10:52
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