stuck in loop with restore_ports.tcl migrating to macOS Sierra (10.12.1)

Ryan Schmidt ryandesign at
Thu Nov 3 00:25:07 CET 2016

> On Nov 2, 2016, at 5:48 PM, Murray Eisenberg <murrayeisenberg at> wrote:
> After upgrading from OS X El Capitan to macOS Sierra (10.12.1), I’m following the migration steps at .
> Got to step 3. e and after downloading script restore_ports.tcl and making it executable, I executed:
>    sudo ./restore_ports.tcl myports.txt
> Output:
> Warning: Skipping p5.16-module-corelist (not in the ports tree)
> Warning: Skipping p5.20-module-corelist (not in the ports tree)
> Warning: Skipping p5.22-module-corelist (not in the ports tree)
> 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)
> Help!!   
> I’d certainly prefer NOT to have to restore all my ports (from list saved in myports.txt) manually, one-by-one.
> Any ideas?

Well, the warnings shown above are correct, there is no port p5.16-module-corelist in the ports tree at this time.

If those are listed in your myports.txt, try removing them.

More information about the macports-users mailing list