Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#57444 closed defect (duplicate)

Most ports failing on Mojave

Reported by: FGasper (Felipe Gasper) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: mojave Cc:
Port: libiconv

Description

Almost all of my outdated ports fail to upgrade with messages like this:

felipe@Felipes-MacBook-Pro 09:30:58 /opt/local/var/macports
> sudo port upgrade libiconv
Error: libiconv cannot be installed for the configured universal_archs 'x86_64 i386' because it only supports the arch(s) ''.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

ERROR 1
felipe@Felipes-MacBook-Pro 09:31:24 /opt/local/var/macports
> sudo port upgrade zsh
Error: libiconv cannot be installed for the configured universal_archs 'x86_64 i386' because it only supports the arch(s) ''.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

ERROR 1
felipe@Felipes-MacBook-Pro 09:32:37 /opt/local/var/macports
> sudo port upgrade zlib
Error: libiconv cannot be installed for the configured universal_archs 'x86_64 i386' because it only supports the arch(s) ''.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Change History (4)

comment:1 Changed 6 years ago by Schamschula (Marius Schamschula)

Did you follow the migration instructions? https://trac.macports.org/wiki/Migration

comment:2 Changed 6 years ago by FGasper (Felipe Gasper)

I’ve upgraded MP several times with OS upgrades but never uninstalled all ports then reinstalled them. Apparently that was necessary this time, though, to avoid some drama from the drop of i386 support.

Apparently the solution, in my case, is, for each individual port that was apparently installed as +universal:

sudo port upgrade --enforce-variants $PORTNAME -universal

And every time it finds a list of +universal ports that need to be updated, I have to refuse that prompt because if I do it’ll try to do a plain update, which means I have to manually:

sudo port clean $PORTNAME

… then repeat the “port upgrade” command.

comment:3 Changed 6 years ago by mf2k (Frank Schima)

Resolution: duplicate
Status: newclosed

Duplicate of #57133.

comment:4 Changed 5 years ago by smittysauce (Chris Smith)

I had to follow the full migration steps too to resolve this. In the past, I did not need to completely reinstall the ports but with Mojave looks like you need to.

Last edited 5 years ago by smittysauce (Chris Smith) (previous) (diff)
Note: See TracTickets for help on using tickets.