port version reports 2.4.2 when built from tag v2.4.3

Joshua Root jmr at macports.org
Wed Apr 11 14:34:17 UTC 2018


On 2018-4-11 23:48 , Enrico Maria Crisostomo wrote:
>   * At this point /opt/macports-2.4.3/libexec/macports/lib/macports1.0/macports_autoconf.tcl correctly contains `variable macports_version "2.4.3"`.
>   * But port reports 2.4.2:
> 
>       % echo path
>       /opt/macports-2.4.3/bin:/opt/macports-2.4.3/sbin:/bin:/usr/bin:/usr/ucb:/usr/local/bin
>       % type port
>       port is /opt/macports-2.4.3/bin/port
>       % port version
>       Version: 2.4.2

Not sure what to tell you. The code could scarcely be simpler:

<https://github.com/macports/macports-base/blob/release-2.4/src/port/port.tcl#L2821>
<https://github.com/macports/macports-base/blob/release-2.4/src/macports1.0/macports.tcl#L94>

> If I clean the repo between the builds, the problem does not happen.

You could install both ways to different prefixes and do a recursive diff?

- Josh


More information about the macports-dev mailing list