<div dir="ltr">Hi Bradley,<div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 25, 2017 at 1:59 AM, Bradley Giesbrecht <span dir="ltr"><<a href="mailto:pixilla@macports.org" target="_blank">pixilla@macports.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
>> For the migration functionality wouldn’t we only install “requested” ports? Dependencies could be different with a platform change.<br>
>> Also, if the installed variants for a given port are the default variants would we want to ignore variants?<br>
><br>
> These two points are related. A requested flag for variants is needed to be able to do the right thing.<br>
><br>
> We don't want to ignore variants exactly; we want to apply only the requested variants (positive and negative) when reinstalling ports.<br>
<br>
</span>Is a “default” variant requested? I believe some ports have different default variants depending on the platform, operation system or other environment factors. Shouldn’t we be replicating the actual user install commands as close as possible? </blockquote><div><br></div><div>I believe a default variant is requested unless the first command to install the port has variants explicitly mentioned but it is not requested in the context of a user because the user can probably be unaware of available variants. </div><div><br></div><div>But again, as you said, there can be different default variants, storing the original defaults can result in confusion between what originally was default (they should not become requested) and what is the current default? So, I think we should NOT treat the default as requested. Replicating the actual user commands is the most ideal thing to do. </div><div><br></div><div>A confusion could have been here: `port install port_name` and `port install port_name +default`. Both will install default but it's not requested in first case while requested in second case. The second one should get listed as requested in db and hence, not create any problem further.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Should we include variants the user did not supply to the port install command?<br></blockquote><div> <br></div><div>I didn't get it. Either the variants are default or they were requested, both will be present in the stack. How can we get the variants which the user never supplied? Are you trying to hint at the difference in the port installed at the first run and the variants installed later on?</div></div><div><br></div><div>Also, I need your help in a technical detail. I'll try to push in some time and get back to you if you're free.</div><div><br></div><div><br></div>Regards,<br><div class="gmail_signature"><div dir="ltr">Umesh Singla</div></div>
</div></div>