Opened 18 years ago

Last modified 16 years ago

#8763 closed defect

BUG: 'port uninstall' does not remove entry in dependency list. — at Version 4

Reported by: agentmonkey@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version:
Keywords: Cc:
Port:

Description (last modified by jmpp@…)

After going through a few upgrades via "port -a upgrade" I noticed that the upgrades only deactivated older versions of packages. After uninstalling the inactive ports manually (I needed to use -f since inactive ports can still have dependents) I noticed that their entries in the "dependency list" are not removed. For example:

~ $ sudo port installed | grep apr
  apr @1.2.6_0 (active)
  apr-util @1.2.6_0 (active)
-= rom@leviathan =- Sun May 07, 02:00 AM 
~ $

then,

-= rom@leviathan =- Sun May 07, 02:00 AM 
~ $ sudo port uninstall apr
Password:
--->  Unable to uninstall apr 1.2.6_0, the following ports depend on it:
--->    apr-util
--->    apr-util
--->    apr-util
--->    subversion
--->    subversion-javahlbindings
Error: /opt/local/bin/port: port uninstall failed: Please uninstall the ports that depend on apr first.
-= rom@leviathan =- Sun May 07, 02:16 AM 
~ $ 

Notice that apr-util appears three times but in the former command only one apr-util package is shown to be installed (apr-util @1.2.6_0). These "residual" packages are from previous inactive versions (because of upgrades) that were manually uninstalled.

Change History (4)

comment:1 Changed 18 years ago by markd@…

Summary: port uninstall package does not remove entry in dependency list.BUG: 'port uninstall' does not remove entry in dependency list.

comment:2 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:3 Changed 17 years ago by pipping@…

Milestone: Port BugsMacPorts 1.4

comment:4 Changed 17 years ago by jmpp@…

Description: modified (diff)
Note: See TracTickets for help on using tickets.