Skip to content

macOS package requires Rosetta to install #8566

Closed

Description

@floam

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

Activity

  1. added
    macos
    on Dec 21, 2021
  2. floam commented on Dec 21, 2021

    @floam
    MemberAuthor

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

  3. floam commented on Dec 21, 2021

    @floam
    MemberAuthor

    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.

  4. ridiculousfish commented on Dec 27, 2021

    @ridiculousfish
    Member

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

  5. floam commented on Jan 2, 2022

    @floam
    MemberAuthor

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

  6. floam commented on Jan 2, 2022

    @floam
    MemberAuthor

    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.

  7. added this to the fish 3.4.0 milestone on Jan 9, 2022
  8. locked as resolved and limited conversation to collaborators on Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

macospackaging

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions