[MacPorts] #51498: requested (meta) ports get uninstalled on uninstall leaves

MacPorts noreply at macports.org
Mon Jun 1 17:43:56 UTC 2020


#51498: requested (meta) ports get uninstalled on uninstall leaves
--------------------------+--------------------------------
  Reporter:  nick@…       |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:  2.3.4
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by ryandesign):

 Replying to [comment:8 mojca]:
 > * I'm generally slightly worried about the fact that the registry
 doesn't change if (default) variants change. I probably never revbump
 ports after changing default variants. I thought that worked properly out-
 of-the-box: the buildbot builds a binary with new variants, so those who
 install the port from scratch do get the right thing, while "port upgrade
 outdated" on installed ports won't fix variants even if the port gets
 revbumped. See also #46956.

 This isn't specific to perl module ports, but:

 * If you add a variant to a default_variants line, you should increase the
 revision so that any users who already had the port installed without that
 variant will get it reinstalled with that variant.
 * If you remove a variant from a default_variants line, you should not
 increase the revision because MacPorts preserves variant selections across
 upgrades; forcing a user to rebuild the port will not affect the variants
 with which they have it installed as long as those variants still exist.
 * If you remove a variant from a port entirely, you should increase the
 revision so that any users who had the port installed with that variant
 will get it reinstalled without the variant.
 * If you add a new non-default variant to a port, you probably don't need
 to increase the revision. The only users for whom increasing the revision
 would be relevant is those users who have that variant name listed in
 their variants.conf file.

-- 
Ticket URL: <https://trac.macports.org/ticket/51498#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list