[GSoC] migration

Umesh Singla umeshksingla at macports.org
Sat Jun 24 22:20:24 UTC 2017


Hi Bradley,

On Sun, Jun 25, 2017 at 1:59 AM, Bradley Giesbrecht <pixilla at macports.org>
wrote:
>
> >> For the migration functionality wouldn’t we only install “requested”
> ports? Dependencies could be different with a platform change.
> >> Also, if the installed variants for a given port are the default
> variants would we want to ignore variants?
> >
> > These two points are related. A requested flag for variants is needed to
> be able to do the right thing.
> >
> > We don't want to ignore variants exactly; we want to apply only the
> requested variants (positive and negative) when reinstalling ports.
>
> 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?


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.

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.

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.


> Should we include variants the user did not supply to the port install
> command?
>

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?

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.


Regards,
Umesh Singla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20170625/bc55650b/attachment.html>


More information about the macports-dev mailing list