Opened 7 years ago

Closed 7 years ago

#52791 closed defect (fixed)

port reclaim: keeps asking for permission to remove dependencies of inactive ports

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.99
Keywords: Cc:
Port:

Description

I just decided to run port reclaim instead of port uninstall inactive.

The dealbreaker is that I have been asked 323 times the same pointless question (after deactivating all the p5.22-* ports):

Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break: foo @x.y_z
Continue? [y/N]: y
Warning: Uninstall forced.  Proceeding despite dependencies.

Of course the port foo @x.y_z was inactive and scheduled for removal.

The script should be more clever and not ask for permission to remove dependencies of ports that are planned to be removed anyway.

(On top of that the script needed some 4-5 GB of memory to complete and "froze" my old computer (while other programs fought for additional gigabytes of swap). That's not something I expect anyone to fix – other than me buying new hardware, I just wanted to mention it.)

Change History (2)

comment:1 Changed 7 years ago by jmroot (Joshua Root)

This message doesn't come from reclaim but from registry::check_dependents. Reclaim should probably pre-sort the inactive ports into dependency order like 'port uninstall' does.

comment:2 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

In ea850b2/macports-base:

Uninstall in correct order in reclaim

Sort inactive ports into dependency order before uninstalling, since
some of them may depend on others. Also display version information
as well as port names, as there may be more than one inactive version
of any given port.

Fixes: #52791

Note: See TracTickets for help on using tickets.