<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageReplySection">
<div dir="auto">On Oct 2, 2023 at 10:58 PM +0100, Joshua Root <jmr@macports.org>, wrote:</div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">On 3/10/2023 08:17, Jimmy Wong wrote:<br />
<blockquote style="border-left: thin solid rgb(230, 126, 34); margin: 5px; padding-left: 10px;">On Oct 2, 2023 at 8:13 AM +0100, Joshua Root <jmr@macports.org>, wrote:<br />
<br />
This won't necessarily restore the variants of non-requested ports<br />
correctly, and will sometimes install the same port multiple<br />
times (a<br />
requested port that is a dep of another requested port can be first<br />
installed with its default variants, then again with its previously<br />
requested variants.)<br />
<br />
<br />
Yes it will. The requested.txt files produced this way come with<br />
variants.</blockquote>
You can't possibly restore the state of non-requested ports when you<br />
only record information about requested ones.<br />
<br /></blockquote>
<div dir="auto"><br />
The state of non-requested ports is the dependents and their variants right? Is there anything else? I'm not sure I understand your objection. Is there a situation where my previous explanation fails to restore the "state"? My instruction removes all versions, so even if you've done a `port selfupdate` right before restoration, and some of the ports have upgraded, it'll just work. Whereas, in the current instruction, the last setrequested step will fail.<br /></div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">If you understand the process well enough to evaluate the tradeoff of<br />
not restoring quite all the state, you are not really the target<br />
audience for the Migration instructions. </blockquote>
<div dir="auto"><br />
Who is the instruction for anyway? There are so many edge cases that require manual intervention. How many noobs are able to fix these problems themselves before they give up and reinstall every port manually one by one?<br /></div>
<blockquote style="border-left: thin solid rgb(26, 188, 156); margin: 5px; padding-left: 10px;">If you don't mind dealing with<br />
the occasional problem due to opportunistic use, you're free to simply<br />
run 'sudo port upgrade outdated' after reinstalling base.<br />
<br /></blockquote>
<div dir="auto"><br />
I do mind.</div>
</div>
</body>
</html>