Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#16740 closed defect (fixed)

base multiple versions of port active; deactivate and uninstall fail thereafter

Reported by: febeling@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description

Under certain conditions it is possible to get multiple versions of the same port be active. I this situatiuon it is no longer possible to deactivate or uninstall, even when specifiying the full name @version_rev string.

Please note that the port in question uses the unusual version number 0.0.

DEBUG: Executing org.macports.activate (mochiweb)
--->  Activating mochiweb @0.0_2
Error: Target org.macports.activate returned: Image error: Another version of this port (mochiweb @0.0_0) is already active.
Warning: the following items did not execute (for mochiweb): org.macports.activate
Error: Status 1 encountered during processing.
flomac:mochiweb febeling$ port installed mochiweb
The following ports are currently installed:
  mochiweb @0.0_0 (active)
  mochiweb @0.0_1 (active)
  mochiweb @0.0_2 (active)
flomac:mochiweb febeling$ sudo port -f uninstall mochiweb mochiweb @0.0_0
--->  The following versions of mochiweb are currently installed:
--->  	mochiweb @0.0_0 (active)
--->  	mochiweb @0.0_1 (active)
--->  	mochiweb @0.0_2 (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.
flomac:mochiweb febeling$ port installed ruby
The following ports are currently installed:
  ruby @1.8.6-p111_0+darwin_9+dtrace+thread_hooks
  ruby @1.8.7-p22_2+thread_hooks
  ruby @1.8.7-p22_3+thread_hooks (active)
flomac:mochiweb febeling$ sudo port -f uninstall mochiweb @0.0_0
Error: port uninstall failed: Registry error: Please specify the name of the port.
flomac:mochiweb febeling$ sudo port -f uninstall mochiweb     
--->  The following versions of mochiweb are currently installed:
--->  	mochiweb @0.0_0 (active)
--->  	mochiweb @0.0_1 (active)
--->  	mochiweb @0.0_2 (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

(Running trunk on 10.5.5 Intel)

Change History (4)

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

Milestone: Port BugsMacPorts base bugs
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Confirmed. We do not handle ports whose version equals the number 0 ("0", "0.0", "0.00", etc.) properly. This is a problem with the registry. I'm looking into it.

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r41854, and I don't think I broke anything else in the process. :)

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

ChangeLog updated in r41978.

comment:4 Changed 15 years ago by blb@…

Milestone: MacPorts base bugsMacPorts 1.7.0
Note: See TracTickets for help on using tickets.