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

macOS package requires Rosetta to install #8566

Closed
floam opened this issue Dec 21, 2021 · 6 comments
Closed

macOS package requires Rosetta to install #8566

floam opened this issue Dec 21, 2021 · 6 comments
Assignees
Labels
macos macOS-specific issue packaging
Milestone

Comments

@floam
Copy link
Member

floam commented Dec 21, 2021

While the binaries in the .pkg are universal, there is a missing bit of magic in some XML that leads Installer to not be aware this install will not require Rosetta. @ridiculousfish is aware but here's an issue so we don't forget.

Users are unlikely to notice unless they do not already have Rosetta installed, as this triggers a prompt that requires downloading and installing Rosetta to continue.

Screen Shot 2021-12-20 at 9 50 51 PM

@floam floam added packaging macos macOS-specific issue labels Dec 21, 2021
@floam
Copy link
Member Author

floam commented Dec 21, 2021

(If you hit Not Now, it will not continue the installation, either:
image )

@floam
Copy link
Member Author

floam commented Dec 21, 2021

To reproduce if you already have Rosetta installed on an M1 Mac, it is a little tricky as there is no official way to uninstall it. Do this:

Get a list of rosetta files:

$ pkgutil --files com.apple.pkg.RosettaUpdateAuto
Library
Library/Apple
Library/Apple/usr
Library/Apple/usr/lib
Library/Apple/usr/lib/libRosettaAot.dylib
Library/Apple/usr/libexec
Library/Apple/usr/libexec/oah
Library/Apple/usr/libexec/oah/debugserver
Library/Apple/usr/libexec/oah/libRosettaRuntime
Library/Apple/usr/libexec/oah/runtime
Library/Apple/usr/libexec/oah/translate_tool
Library/Apple/usr/share
Library/Apple/usr/share/rosetta
Library/Apple/usr/share/rosetta/rosetta

Disable System Integrity Protection / delete the listed files in Recovery mode. Reboot and you'll hit the first run experience when you try to execute an x86-64 binary or install fish shell.

@ridiculousfish
Copy link
Member

Also see #7505. Any idea what the "missing bit of magic in some XML" is?

@floam
Copy link
Member Author

floam commented Jan 2, 2022

Check the gitter.im history, I think a key like hostDistributions or hostArchitectures or something. It should be like x86-64, arm64.

@floam
Copy link
Member Author

floam commented Jan 2, 2022

@floam
Copy link
Member Author

floam commented Jan 2, 2022

On https://github.com/fish-shell/fish-shell/blob/master/build_tools/osx_distribution.xml.

I can't try it myself, a) I'm kind of hazy on the workflow b) my daughter spilled a pitcher full of bathtub water onto my M1 MacBook Air. The magic smoke came out. I sold some stuff and should have an M1 MBP on the way soon though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
macos macOS-specific issue packaging
Projects
None yet
Development

No branches or pull requests

3 participants