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

simg2img: patch formula to support apple silicon installations #201149

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

SoCuul
Copy link
Contributor

@SoCuul SoCuul commented Dec 14, 2024

The compiled binaries do not work properly when executed on apple silicon, only when they are ran on intel-based macs.

This has been solved by another fork (anestisb/android-simg2img#38), but the upstream maintainer of simg2img is inactive and has not merged it.

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@github-actions github-actions bot added the no ARM bottle Formula has no ARM bottle label Dec 14, 2024
@stefanb
Copy link
Member

stefanb commented Dec 14, 2024

Viable alternatives to dropping arm64 support on MacOS would be to either:

  • deprecate the formula as unmaintained (4 years since last commit)
  • change the source repo to one of the better maintained forks
  • apply the patch from the mentioned PR before building it

@SoCuul
Copy link
Contributor Author

SoCuul commented Dec 14, 2024

I didn't want to open an issue as to clutter up the repo, so i figured this was the best way to bring up this issue.

Changing the source repo would be the best solution at least in my-case, even though the fork is not maintained either (past the single patch for apple silicon).

@SMillerDev
Copy link
Member

apply the patch from the mentioned PR before building it

This seems like the best solution then.

@SoCuul SoCuul changed the title simg2img: remove support for apple silicon simg2img: patch formula to support apple silicon installations Dec 15, 2024
@github-actions github-actions bot added autosquash Automatically squash pull request commits according to Homebrew style. and removed no ARM bottle Formula has no ARM bottle labels Dec 15, 2024
Copy link
Contributor

Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request.

Formula/s/simg2img.rb Outdated Show resolved Hide resolved
Uses a patch to fix the execution of the compiled binaries on arm64

anestisb/android-simg2img@931df9d
@github-actions github-actions bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Dec 15, 2024
@SoCuul
Copy link
Contributor Author

SoCuul commented Dec 15, 2024

@daeho-ro This is my first time working with a formula patch, but I think it should now meet the requirements.

Copy link
Member

@daeho-ro daeho-ro left a comment

Choose a reason for hiding this comment

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

Thank you, @SoCuul.
Now it looks fine to go!

Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Dec 15, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Dec 15, 2024
Merged via the queue into Homebrew:master with commit 723bdd6 Dec 15, 2024
15 checks passed
@SoCuul SoCuul deleted the patch-1 branch December 15, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants