Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#63096 closed defect (fixed)

MacPort installer requires Rosetta 2

Reported by: gagarine (Simon) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.7.2
Component: base Version:
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

Running the MacPorts-2.7.1-11-BigSur.pkg do not support M1/Apple silicone and require Rosetta 2.

Change History (9)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Component: portsbase

I don't have an Apple Silicon machine so I can't confirm or deny this. I don't understand why the installer pkg would require a specific arch however. All the code that the installer runs is JavaScript or shell script. Do you have any more information about what part of the installer needs Rosetta 2?

comment:2 Changed 3 years ago by gagarine (Simon)

As soon as I launch the installer I get a warning. Certainly is simply a missing flag in the installer. Adding "arm64" may fix it.

hostArchtectures="x86_64,arm64"

https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW41

A related question is why using a .pkg and not directly launch a script like homebrew, composer and many others command line tools. To install brew I can simply run:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Last edited 3 years ago by gagarine (Simon) (previous) (diff)

comment:3 in reply to:  2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to gagarine:

A related question is why using a .pkg and not directly launch a script like homebrew, composer and many others command line tools. To install brew I can simply run:

Not related in any way. File another ticket if you would like to suggest that we offer such a feature. We use an installer package because it is Apple's preferred software distribution method. It is secure. Installers are signed. Etc.

comment:4 Changed 3 years ago by jmroot (Joshua Root)

OK, we don't currently set hostArchitectures since it is documented as being optional. This could well be an undocumented change in Big Sur's Installer.

comment:5 Changed 3 years ago by jmroot (Joshua Root)

Cc: jmroot added

comment:6 Changed 3 years ago by jmroot (Joshua Root)

In 09c4373d2bc435a925110fed8d6e7696f0578f2f/macports-base (master):

Add hostArchitectures placeholder to Distribution

See: #63096

comment:7 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 3f19f32204f5b9441844fbb490f5c512c91ccfbc/macports-ports (master):

MacPorts port: set hostArchitectures in Big Sur pkg

Closes: #63096

comment:8 Changed 3 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:9 Changed 2 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.7.2
Note: See TracTickets for help on using tickets.