Handling of multiple Portfile versions

Joshua Root jmr at macports.org
Mon Nov 9 08:28:12 PST 2015


On 2015-11-10 03:08 , Artur Szostak wrote:
> Hi,
> 
> Is MacPorts supposed to work correctly if multiple repositories are added to the /opt/local/etc/macports/sources.conf file, each with a different version of the Portfile, but with the same port name?
> In such a scenario with multiple versions, I notice that things like the following do not appear to work as expected, i.e. the wrong version is selected or the dependencies are not followed:
> 
> port install myport @1.2
> port install myport version:1.2
> port activate myport @1.2
> port activate myport version:1.2
> port uninstall --follow-dependencies myport @1.2
> port uninstall --follow-dependencies myport version:1.2

It works correctly for some value of "correct". ;)

The Portfile in the source that is listed first in sources.conf is the
one that is used. You can't specify a version when installing a port,
only the one current version is ever available.

- Josh


More information about the macports-dev mailing list