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

optipng won't compile on mac silicon #5581

Merged
merged 1 commit into from
May 2, 2024

Conversation

smithellis
Copy link
Contributor

  • create a Make option 'init-mac' to account for it
  • allow run-boostrap.sh to process the new --optipng-fix flag
  • update doc

Open to better ideas (yes, move to linux is valid)

  • Determining if you are on Apple silicon from run-bootstrap.sh directly appeared to be problematic since it is running in a container
  • Doing it prior in the make call seemed to make sense
    • change nothing for exisiting processes but add a simpler way forward for Mac folk
- create a Make option 'init-mac' to account for it
- allow run-boostrap.sh to process the new --optipng-fix flag

Open to better ideas (yes, move to linux is valid)
- Determining if you are on Apple silicon from
  run-bootstrap directly appeared to be problematic
  since it is running in a container
- Doing it prior in the make call seemed to make sense
  - change nothing for exisitng processes but add a
    simpler way forward for Mac folk
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

Tried it locally, and it worked great! Will think about it more and finalize my review soon.

@akatsoulas
Copy link
Collaborator

@smithellis / @escattone do we still need this or shall we close the PR?

@smithellis
Copy link
Contributor Author

I'm pretty sure optipng compiles properly now. Let's close and reopen if necessary.

@smithellis smithellis closed this Oct 25, 2023
@escattone
Copy link
Contributor

escattone commented May 1, 2024

Re-opening this PR, since compiling optipng on a Mac with M1 or M2 fails during npm run development. This is a nice approach that offers Mac folk a way forward without bothering others.

@escattone escattone reopened this May 1, 2024
@escattone escattone marked this pull request as ready for review May 1, 2024 23:29
@escattone escattone requested review from akatsoulas and removed request for akatsoulas May 1, 2024 23:51
@escattone
Copy link
Contributor

Since this is a small feature addition that doesn't affect anyone unless they're a Mac M1/M2 user that needs it, I'm going to merge it.

@escattone escattone merged commit be21341 into mozilla:main May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants