<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><br class=""><div class="">On Jan 21, 2020, at 03:54, Chris Jones wrote:<br class=""></div><br class=""><blockquote type="cite" class="">On 21/01/2020 1:28 am, Dave Horsfall wrote:<br class=""></blockquote><blockquote type="cite" class=""><br class=""></blockquote><blockquote type="cite" class=""><blockquote type="cite" class="">I don't have web access right now, hence the list...<br class="">My ancient Sierra MacBook failed (graphics board which is no longer available) but I have been offered a more recent second-hand one for a reasonable price, and it will run High Sierra (I don't want Mojave just yet).<br class="">What's the procedure to update all the existing ports i.e. is there such a thing as "port upgrade all" to do "the right thing"?  I have the old system drive available (external USB - long story) and can slurp the appropriate files over (I don't like restoring using Time Machine, and the Capsule may not be up to date anyway, as I was working when the video disappeared).<br class="">I know that I have to recompile my own stuff.<br class="">Anything else that I should know about?  I like to be forewarned, and remember that I don't have web access right now.<br class=""></blockquote></blockquote><blockquote type="cite" class=""><br class=""></blockquote><blockquote type="cite" class="">As with any OS upgrade, follow the instructions at<br class=""><br class=""><a href="https://trac.macports.org/wiki/Migration" class="">https://trac.macports.org/wiki/Migration</a><br class=""></blockquote><div class=""><br class=""></div><div class="">Since you don't have web access, I'll reproduce the main part of that page here:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" style="font-family: monospace; border-left-style: none; color: inherit; padding: inherit; margin: inherit;" class=""><div id="main" style="font-family: Verdana, Arial, "Bitstream Vera Sans", Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><div id="content" class="wiki" style="position: relative;"><div class="wikipage searchable" style="padding-left: 18px;"><div id="wikipage" class="trac-content" style="padding: 0.5em 1em 0.5em 28px; margin: 0.3em auto 0.3em -18px; border: 1px solid rgb(228, 228, 228); border-top-left-radius: 0.5em; border-top-right-radius: 0.5em; border-bottom-right-radius: 0.5em; border-bottom-left-radius: 0.5em; box-shadow: rgb(238, 238, 238) 0.2em 0.3em 1.5em; clear: both;"><h2 id="Migrationprocedure" style="font-family: Arial, Verdana, "Bitstream Vera Sans", Helvetica, sans-serif; letter-spacing: -0.018em; break-after: avoid-page; font-size: 16px; margin-left: -18px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(221, 221, 221); box-shadow: rgb(242, 242, 242) 0.1em 0.4em 0.7em 0px; padding: 0.2em 0.3em 0.1em;" class="">Migration procedure<a class="anchor" href="https://trac.macports.org/wiki/Migration#Migrationprocedure" title="Link to this section" style="text-decoration: none; color: rgb(215, 215, 215); border: none; font-size: 0.8em; vertical-align: text-top; visibility: hidden;"></a></h2><ol class=""><li class=""><span class="wikianchor" id="xcode"><strong class="">Install the latest version of Xcode and the Xcode command-line tools</strong><a class="anchor" href="https://trac.macports.org/wiki/Migration#xcode" title="Link to #xcode" style="text-decoration: none; color: rgb(215, 215, 215); border: none; font-size: 0.8em; vertical-align: text-top; visibility: hidden;"></a></span></li></ol><blockquote class=""><p class="">Update the development tools by <a class="ext-link" href="https://guide.macports.org/#installing.xcode" style="text-decoration: none; color: rgb(1, 85, 205); border-bottom-style: none;"><span class="icon" style="background-image: url(https://trac.macports.org/chrome/common/extlink.gif); padding-left: 15px; background-position: left center; background-repeat: no-repeat no-repeat;">​</span>installing Xcode</a>. Open the Xcode application once after installation and follow any prompts.</p></blockquote><blockquote class=""><p class="">Install the command line tools package as well (run <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">xcode-select --install</code>).</p></blockquote><ol start="2" class=""><li class=""><span class="wikianchor" id="base"><strong class="">Reinstall MacPorts base system</strong><a class="anchor" href="https://trac.macports.org/wiki/Migration#base" title="Link to #base" style="text-decoration: none; color: rgb(215, 215, 215); border: none; font-size: 0.8em; vertical-align: text-top; visibility: hidden;"></a></span></li></ol><blockquote class=""><p class="">To reinstall, simply <a href="https://www.macports.org/install.php" style="text-decoration: none; color: rgb(1, 85, 205); border-bottom-style: none;" class="">install the base MacPorts system</a> for your new platform.</p></blockquote><ol start="3" class=""><li class=""><span class="wikianchor" id="config"><strong class="">Update your macports.conf (if not default)</strong><a class="anchor" href="https://trac.macports.org/wiki/Migration#config" title="Link to #config" style="text-decoration: none; color: rgb(215, 215, 215); border: none; font-size: 0.8em; vertical-align: text-top; visibility: hidden;"></a></span></li></ol><blockquote class=""><p class="">If your <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">macports.conf</code> (typically at <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">/opt/local/etc/macports/macports.conf</code>) contains uncommented settings for <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">universal_archs</code> or <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">build_arch</code>, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. Default values are fine for most users, so unless you know you need something different, just comment out these two lines.</p></blockquote><blockquote class=""><p class="">Several other settings in <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">macports.conf</code> have changed their defaults over the years. Take a moment to compare each line of your <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">macports.conf</code> with the corresponding line in <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">macports.conf.default</code>in the same directory. Unless you know a reason why a line in your settings file should be different from the defaults, adopt the line from the defaults file.</p></blockquote><ol start="3" class=""><li class=""><span class="wikianchor" id="ports"><strong class="">Reinstall your ports</strong><a class="anchor" href="https://trac.macports.org/wiki/Migration#ports" title="Link to #ports" style="text-decoration: none; color: rgb(215, 215, 215); border: none; font-size: 0.8em; vertical-align: text-top; visibility: hidden;"></a></span><ol class="loweralpha" style="list-style-type: lower-alpha;"><li class="">Save the list of installed ports:<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">port -qv installed > myports.txt
</pre></li><li class="">(optional) Save the list of requested ports:<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">port echo requested | cut -d ' ' -f 1 > requested.txt
</pre></li><li class="">Uninstall all installed ports:<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">sudo port -f uninstall installed
</pre></li><li class="">Clean any partially-completed builds:<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">sudo rm -rf /opt/local/var/macports/build/*
</pre></li><li class="">Download and execute the restore_ports script. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p option when you run restore_ports.tcl; see <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">./restore_ports.tcl -h</code>.)<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">curl --location --remote-name <a href="https://github.com/macports/macports-contrib/raw/master/restore_ports/restore_ports.tcl" class="">https://github.com/macports/macports-contrib/raw/master/restore_ports/restore_ports.tcl</a>
chmod +x restore_ports.tcl
xattr -d com.apple.quarantine restore_ports.tcl
sudo ./restore_ports.tcl myports.txt
</pre>Note: ports that are not available on your new platform will be skipped, with only a warning message. <br class=""></li><li class="">(optional) Restore requested status: If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states.<pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); box-shadow: rgb(238, 238, 238) 0px 0px 1em; border-top-left-radius: 0.3em; border-top-right-radius: 0.3em; border-bottom-right-radius: 0.3em; border-bottom-left-radius: 0.3em; margin: 1em 1.75em; padding: 0.25em; overflow: auto;">sudo port unsetrequested installed
xargs sudo port setrequested < requested.txt
</pre>Warning: if a port in <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">requested.txt</code> was <em class="">not</em> installed in the previous step, the iterative <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">setrequested</code> will terminate, leaving some ports still marked as not-requested. Edit <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">requested.txt</code>to remove any ports that were not installed and repeat this step. Double-check your desired ports are set as requested with <code style="color: rgb(102, 0, 0); border: 1px solid rgb(238, 221, 204); border-top-left-radius: 0.25em; border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; border-bottom-left-radius: 0.25em; padding: 0px 0.3em; background-color: rgb(250, 250, 250);" class="">port echo requested</code>.</li></ol></li></ol></div></div></div></div></blockquote></div><div class=""><span style="font-family: monospace;" class=""><br class=""></span></div><div class=""><span style="font-family: monospace;" class=""><br class=""></span></div><div class=""><span style="font-family: monospace;" class="">If your new machine is old enough to run Sierra, and if you have not yet set up or put any of your data on the new machine, then the simplest way to proceed might be to clone your old machine's disk to your new machine (using Carbon Copy Cloner, SuperDuper, or similar), then boot up from your new machine's internal disk and upgrade to High Sierra, and then follow the migration instructions as normal.</span></div><div class=""><br class=""></div></body></html>