[MacPorts] #68820: Upgrading specific port ignores epoch
MacPorts
noreply at macports.org
Fri Dec 1 06:55:06 UTC 2023
#68820: Upgrading specific port ignores epoch
-----------------------+--------------------
Reporter: fhgwright | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.8.1
Keywords: | Port:
-----------------------+--------------------
While testing that the recent rollback change for `openssl3` worked as
intended, I found that it did not when applied to the individual port.
With the recent change temporarily removed, I repeated the bad upgrade to
`openssl3 3.2.0`, which worked as intended:
{{{
MacPro:macports-ports fw$ sudo port upgrade openssl3
---> Computing dependencies for openssl3
---> Fetching archive for openssl3
---> Attempting to fetch
openssl3-3.2.0_0+universal.darwin_13.i386-x86_64.tbz2 from
http://packages.macports.org/openssl3
[...]
}}}
I then unremoved the recent change, and checked the "outdated" status,
which worked as intended:
{{{
MacPro:macports-ports fw$ port outdated
The following installed ports are outdated:
[...]
openssl3 3.2.0_0 < 3.1.4_1 (epoch 0 < 1)
[...]
}}}
But a plain upgrade of `openssl3` didn't work:
{{{
MacPro:macports-ports fw$ sudo port upgrade openssl3
---> Scanning binaries for linking errors
[...]
}}}
So had to force the issue:
{{{
MacPro:macports-ports fw$ sudo port -n upgrade --force openssl3
---> Fetching archive for openssl3
---> Attempting to fetch
openssl3-3.1.4_1+universal.darwin_13.i386-x86_64.tbz2 from
http://packages.macports.org/openssl3
[...]
}}}
It may well be that a plain `upgrade outdated` would have worked, but this
usage should have worked as well.
Note that this particular case only applies to the OS versions affected by
the rollback, meaning <10.14, though I suspect that the general problem
applies to any case where an epoch bump is being used for a version
downgrade.
--
Ticket URL: <https://trac.macports.org/ticket/68820>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list