Opened 13 years ago

Last modified 6 years ago

#27552 new defect

port -u upgrade doesn't uninstall if replaced_by

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts Future
Component: base Version: 1.9.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

It seems "sudo port -u upgrade" doesn't uninstall the old version(s), if the port has been replaced_by another.

$ sudo port -u upgrade p5-xml-libxml-common
--->  p5-xml-libxml-common is replaced by p5-xml-libxml
--->  Computing dependencies for p5-xml-libxml
--->  Fetching p5-xml-libxml
--->  Attempting to fetch XML-LibXML-1.70.tar.gz from ftp://mirror.hiwaay.net/CPAN/modules/by-module/XML
--->  Verifying checksum(s) for p5-xml-libxml
--->  Extracting p5-xml-libxml
--->  Configuring p5-xml-libxml
--->  Building p5-xml-libxml
--->  Staging p5-xml-libxml into destroot
--->  Deactivating p5-xml-libxml-common @0.13_0+universal
--->  Unable to uninstall/deactivate p5-xml-libxml-common @0.13_0+universal, the following ports depend on it:
--->  	p5-xml-libxml @1.69_0
--->  	p5-xml-libxml @1.69_0+universal
Warning: Uninstall/deactivate forced.  Proceeding despite dependencies.
--->  Computing dependencies for p5-xml-libxml
--->  Installing p5-xml-libxml @1.70_0+universal
--->  Deactivating p5-xml-libxml @1.69_0+universal
--->  Activating p5-xml-libxml @1.70_0+universal
--->  Cleaning p5-xml-libxml
$ port installed name:p5-xml-libxml
The following ports are currently installed:
  p5-xml-libxml @1.69_0
  p5-xml-libxml @1.69_0+universal
  p5-xml-libxml @1.70_0+universal (active)
  p5-xml-libxml-common @0.13_0
  p5-xml-libxml-common @0.13_0+universal
$ 

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: MacPorts Future

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by rmstonecipher@…

Cc: rmstonecipher@… added

Cc Me!

comment:4 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmstonecipher@… removed
Note: See TracTickets for help on using tickets.