During Migration to Arm64 mac, should I null out archs='x86_64' from installed ports list?

Ryan Schmidt ryandesign at macports.org
Thu Apr 14 21:06:26 UTC 2022

> On Apr 14, 2022, at 15:24, chilli.namesake at gmail.com wrote:
>> Error: Current platform "darwin 19" does not match expected platform "darwin 18"
>> Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
>> OS platform mismatch
>>   while executing
>> "mportinit ui_options global_options global_variations"
>> Error: /opt/macports18/bin/port: Failed to initialize MacPorts, OS platform mismatch
>> Which prevents further upgrades or installs in the existing tree. 
>> (Sadly one can't even run a "port installed" or a "port requested" at this point, in case one missed to capture these for reference before the macOS upgrade. Just noted as an aside; as this will happen with either prefix, default or custom.)
> I see. MacPorts likes to know things. I seriously doubt it is recommended, but I'll bet someone on the list knows where you can edit a config and change what platform MacPorts expects to see. 

Don't attempt to edit MacPorts to circumvent this message. Just reinstall MacPorts base. Then everything will work again. Your installed ports and data will not be affected.

More information about the macports-users mailing list