Opened 19 years ago

Closed 19 years ago

#7195 closed defect (wontfix)

inactive ports cannot be uninstalled due to irrelevant (?) dependencies

Reported by: opendarwin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

I have two instances of cairo installed, one of which is inactive:

gpb:/opt/local/var/db soren$ sudo port uninstall cairo ---> The following versons of cairo are currently installed: ---> cairo 1.0.0_1 ---> cairo 1.0.2_0 (active)

I'm trying to uninstall all my inactive ports (leaving only one active version) but port uninstall inactive thinks that my inactive port is still relevant.

gpb:/opt/local/var/db soren$ sudo port uninstall inactive ---> Unable to uninstall cairo 1.0.0_1, the following ports depend on it: ---> pango ---> gtk2 ---> pango ---> gtk2 ---> libglade2 ---> pango ---> gtk2 Error: /opt/local/bin/port: port uninstall failed: Please uninstall the ports that depend on cairo first.

I'm not quite sure whether a port depends on the specific versions which were active at the time it was built, but I would hope it wouldn't be necessary to keep every version of every previous port.

Workaround: port uninstall -f inactive complains a lot but does what I want.

Note: this is for DarwinPorts 1.2, but the Version selector in bugzilla only allows me to select 0.5 and 1.0. ("darwinports bugzilla thinks dports 1.0 is the latest version" filed as bug 7193.)

Change History (1)

comment:1 Changed 19 years ago by olegb@…

Resolution: wontfix
Status: newclosed

this is *not* a bug - force (-f) is documented in port(1). Though it is true there is no uninstall example there.

Note: See TracTickets for help on using tickets.