[MacPorts] #52303: `port uninstall --follow-dependents` uninstalls more ports than `port rdependents` reports
MacPorts
noreply at macports.org
Sun Dec 3 02:38:57 UTC 2023
#52303: `port uninstall --follow-dependents` uninstalls more ports than `port
rdependents` reports
---------------------+--------------------------------
Reporter: ksze | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.4
Resolution: | Keywords:
Port: |
---------------------+--------------------------------
Comment (by barracuda156):
Replying to [comment:1 jmroot]:
> The issue may have been that this loop assumes that the identifiers
refer to the same registry entries across the uninstall operation, which
potentially deletes and opens multiple entries:
https://github.com/macports/macports-
base/blob/v2.3.4/src/registry2.0/portuninstall.tcl#L123
>
> That assumption should actually hold after
[fc212a0b550ed961d07c261c715ca83580deac56/macports-base], so this may have
been fixed incidentally.
For some reason this command does not work at all for me. It only
uninstalls a port being specified, leaving dependents broken but
installed:
{{{
svacchanda at Sergeys-MacBook-Air ~ % sudo port uninstall --follow-dependents
R-CRAN-recommended
The following versions of R-CRAN-recommended are currently installed:
1) R-CRAN-recommended @1.0.0_0
2) R-CRAN-recommended @1.0.0_1 (active)
. . .
Continue? [y/N]: y
Warning: Uninstall forced. Proceeding despite dependencies.
---> Deactivating R-CRAN-recommended @1.0.0_1
---> Cleaning R-CRAN-recommended
---> Uninstalling R-CRAN-recommended @1.0.0_1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/52303#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list