Skip to content

Bump munki-pkg so the pkg installs without Rosetta 2 on Apple Silicon - #98

Open
jby wants to merge 1 commit into
macadmins:mainfrom
jby:fix/munkipkg-host-architectures
Open

jby wants to merge 1 commit into
macadmins:mainfrom
jby:fix/munkipkg-host-architectures

Conversation

@jby

@jby jby commented Nov 25, 2026

Copy link
Copy Markdown

Problem

Installing the released pkg on an Apple Silicon Mac requires Rosetta 2 first.

The pinned munki-pkg (bbd0773) generates the Distribution file for distribution_style packages with:

<options customize="never" require-scripts="false"/>

There is no hostArchitectures attribute. macOS Installer treats a distribution package without one as Intel-only and asks for Rosetta 2, whatever the payload contains.

The payload itself doesn't need Rosetta. In a local 3.15 build, the interpreter, stdlib and pyobjc extensions are universal2, and preinstall is a zsh script.

Fix

Bump MP_SHA to munki-pkg 7d57d07. That version writes:

<options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>

With arm64 listed, Installer runs natively on Apple Silicon and doesn't prompt for Rosetta.

Testing

  • zsh -n build_python_framework_pkgs.zsh passes.
  • A local build with the new SHA succeeds, and the downloaded munkipkg contains the hostArchitectures change.
  • I didn't build a signed pkg (no installer identity). To confirm on a signed build:
    pkgutil --expand python_recommended_signed-*.pkg /tmp/pyexp && grep '<options' /tmp/pyexp/Distribution

Related, not addressed here

cffi installs from its macosx_11_0_arm64 wheel, so _cffi_backend is arm64-only, while the other native packages are universal2. That's fine on Apple Silicon. But since the pkg now also declares x86_64, an Intel install would succeed and cffi/xattr wouldn't import there. If Intel shouldn't be supported, hostArchitectures="arm64" would be stricter.

🤖 Generated with Claude Code

The pinned munki-pkg generated a Distribution file without a
hostArchitectures attribute. macOS Installer treats such packages as
Intel-only and requires Rosetta 2 before installing on Apple Silicon,
even though the framework payload is universal2/arm64.

Newer munki-pkg writes hostArchitectures="arm64,x86_64", so the
package installs natively on Apple Silicon without Rosetta 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant