New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16169 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

"port upgrade p5-version" tries to uninstall it first (and fails)

Reported by: vinc17@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.6.0
Keywords: Cc: jmr@…, mcalhoun@…
Port:

Description

I want to upgrade p5-version, but port tries to uninstall it first, instead of deactivating it. So, I get the following error:

$ sudo port -d upgrade p5-version
DEBUG: Found port in file:///Users/vinc17/software/dports/perl/p5-version
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-version
DEBUG: epoch: in tree: 1 installed: 0
DEBUG: p5-version 0.76_0 exists in the ports tree
DEBUG: p5-version 0.7203_0 is installed
DEBUG: Found port in file:///Users/vinc17/software/dports/lang/perl5.8
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5.8 5.8.8_3 exists in the ports tree
DEBUG: perl5.8 5.8.8_3 is installed
DEBUG: No need to upgrade! perl5.8 5.8.8_3 >= perl5.8 5.8.8_3
DEBUG: No need to upgrade! p5-version 0.7203_0 >= p5-version 0.76_0
DEBUG: epoch override ... upgrading!
DEBUG: variants to install 
DEBUG: available variants are : universal
DEBUG: new portvariants: 
DEBUG: Changing to port directory: /Users/vinc17/software/dports/perl/p5-version
DEBUG: Requested variant powerpc is not provided by port p5-version.
DEBUG: Requested variant darwin is not provided by port p5-version.
DEBUG: Requested variant macosx is not provided by port p5-version.
DEBUG: Found port in file:///Users/vinc17/software/dports/lang/perl5.8
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: Changing to port directory: /Users/vinc17/software/dports/lang/perl5.8
DEBUG: Requested variant powerpc is not provided by port perl5.8.
DEBUG: Requested variant macosx is not provided by port perl5.8.
DEBUG: Executing variant darwin provides darwin
DEBUG: Executing variant darwin_8 provides darwin_8
DEBUG: Searching for dependency: perl5.8
DEBUG: Found Dependency: receipt exists for perl5.8
DEBUG: Skipping completed org.macports.main (p5-version)
DEBUG: Skipping completed org.macports.fetch (p5-version)
DEBUG: Skipping completed org.macports.checksum (p5-version)
DEBUG: Skipping completed org.macports.extract (p5-version)
DEBUG: Skipping completed org.macports.patch (p5-version)
DEBUG: Skipping completed org.macports.configure (p5-version)
DEBUG: Skipping completed org.macports.build (p5-version)
DEBUG: Skipping completed org.macports.destroot (p5-version)
DEBUG: Uninstalling p5-version 0.7203_0
DEBUG: p5-module-build depends on this port
DEBUG: p5-module-build depends on this port
DEBUG: p5-module-build depends on this port
DEBUG: p5-module-build depends on this port
DEBUG: p5-module-build depends on this port
DEBUG: p5-module-build depends on this port
--->  Unable to uninstall p5-version 0.7203_0, the following ports depend on it:
--->    p5-module-build
--->    p5-module-build
--->    p5-module-build
--->    p5-module-build
--->    p5-module-build
--->    p5-module-build
DEBUG: Please uninstall the ports that depend on p5-version first.
    while executing
"portuninstall::uninstall $portname ${version_installed}_$revision_installed$oldvariant $optionslist"
Error: Uninstall p5-version 0.7203_0 failed: Please uninstall the ports that depend on p5-version first.

Change History

Changed 4 years ago by jmr@…

  • cc jmr@… added

This should be fixed in trunk thanks to r37442.

Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

Changed 3 years ago by toby@…

  • milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

Changed 3 years ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacPorts Future to MacPorts 1.7.0

Assuming this is fixed since no indication to the contrary has been made.

Changed 3 years ago by vinc17@…

I confirm that I no longer have any problem.

Note: See TracTickets for help on using tickets.