<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 9 Feb 2021, at 11:22 am, Pieter van Oostrum <<a href="mailto:pieter-l@vanoostrum.org" class="">pieter-l@vanoostrum.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Eric Gallager via macports-users <</span><a href="mailto:macports-users@lists.macports.org" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">macports-users@lists.macports.org</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">> writes:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">On Mon, Feb 8, 2021 at 1:03 PM Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class=""><br class=""><br class="">On Feb 7, 2021, at 20:59, Eric Gallager wrote:<br class=""><br class=""><blockquote type="cite" class="">When restore_ports.tcl gets stuck building its list of ports to<br class="">restore, is there a way to get it to tell you which ports exactly it's<br class="">failing to process? i.e., which ports to remove from your myports.txt<br class="">to get it to continue?<br class=""></blockquote><br class="">I don't know. In what way is it getting stuck?<br class=""></blockquote><br class="">It's the part on the Troubleshooting section of the wiki page where it says:<br class=""><br class="">If you see an "infinite loop" error message, such as this:<br class=""><br class="">Error: we appear to be stuck, exiting...<br class="">infinite loop<br class=""> while executing<br class="">"sort_ports $portList"<br class=""> invoked from within<br class="">"set operationList [sort_ports $portList]"<br class=""> (file "./restore_ports.tcl" line 285)<br class=""><br class="">it indicates that the script has a list of ports to install, and it<br class="">can't figure out which of the ports to install next.<br class=""><br class=""><a href="https://trac.macports.org/wiki/Migration#Troubleshooting" class="">https://trac.macports.org/wiki/Migration#Troubleshooting</a><br class=""><br class="">The workaround it suggests to deal with this issue is "to reduce your<br class="">list of ports to install, until it no longer has a dependency cycle,"<br class="">but it doesn't say exactly HOW to go about choosing which ports to<br class="">remove from the list in order to reduce its length.<br class="">My myports.txt file has 6147 lines in it. I don't know where to begin with it.<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">The usual way of tackling these kinds of problems is "bisecting". Divide the list in two halves, and try each of these separately. If a half fails, then divide it in two halves again, etc.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote><br class=""></div><div>Personally, I would recommend not trying to restore *every* port, as this will include a bunch of dependencies that might not be needed on a new OS, or might even not work there. </div><div><br class=""></div><div>Look at the list of *requested* ports you installed. This will be a lot lot shorter, short enough to go through by hand and install one by one.</div><div><br class=""></div><div>Chris</div><br class=""></body></html>