Debugging restore_ports.tcl

Eric Gallager egall at gwmail.gwu.edu
Tue Feb 9 00:57:23 UTC 2021


On Mon, Feb 8, 2021 at 1:03 PM Ryan Schmidt <ryandesign at macports.org> wrote:
>
>
>
> On Feb 7, 2021, at 20:59, Eric Gallager wrote:
>
> > When restore_ports.tcl gets stuck building its list of ports to
> > restore, is there a way to get it to tell you which ports exactly it's
> > failing to process? i.e., which ports to remove from your myports.txt
> > to get it to continue?
>
> I don't know. In what way is it getting stuck?

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 tried adding some additional debugging
> > statements to the script, but they haven't helped very much:
> > https://github.com/macports/macports-contrib/pull/10
> > (let me know if attaching script output and/or my myports.txt in
> > question would be helpful; I'm migrating from Catalina to Big Sur
> > here)
>
>


More information about the macports-users mailing list