Debugging restore_ports.tcl

Ryan Schmidt ryandesign at macports.org
Tue Feb 9 02:55:15 UTC 2021



On Feb 8, 2021, at 18:57, Eric Gallager wrote:

> It's the part on the Troubleshooting section of the wiki page where it says:
> 
> If you see an "infinite loop" error message, such as this:
> 
> Error: we appear to be stuck, exiting...
> infinite loop
>    while executing
> "sort_ports $portList"
>    invoked from within
> "set operationList [sort_ports $portList]"
>    (file "./restore_ports.tcl" line 285)
> 
> it indicates that the script has a list of ports to install, and it
> can't figure out which of the ports to install next.
> 
> https://trac.macports.org/wiki/Migration#Troubleshooting
> 
> The workaround it suggests to deal with this issue is "to reduce your
> list of ports to install, until it no longer has a dependency cycle,"
> but it doesn't say exactly HOW to go about choosing which ports to
> remove from the list in order to reduce its length.
> My myports.txt file has 6147 lines in it. I don't know where to begin with it.

I see. Well, that's a lot of ports. Do you actually need all of them? It could be simpler to install just the ports you actually want. MacPorts will take care of any dependencies for you.




More information about the macports-users mailing list