[MacPorts] #56234: Inactive port can't be uninstalled after replacement is installed

MacPorts noreply at macports.org
Thu Apr 5 19:02:38 UTC 2018


#56234: Inactive port can't be uninstalled after replacement is installed
----------------------------------------------------+--------------------
 Reporter:  ShadSterling                            |      Owner:  (none)
     Type:  defect                                  |     Status:  new
 Priority:  Normal                                  |  Milestone:
Component:  base                                    |    Version:  2.4.2
 Keywords:  uninstall inactive dependency replaced  |       Port:
----------------------------------------------------+--------------------
 It looks like `port upgrade outdated` replaced `py34-botocore` with
 `py35-botocore`, making `py34-botocore` inactive, but it can't be
 uninstalled because `py34-s3transfer` depends on it.

 Why is is possible for a port that can't be uninstalled to be made
 inactive?  If the replacement doesn't satisfy the dependency, the original
 should not be made inactive.  If it does satisfy the dependency, the
 original should be uninstallable.

 {{{
 $ sudo port uninstall inactive
 --->  Unable to uninstall py34-botocore @1.9.11_0, the following ports
 depend on it:
 --->    py34-s3transfer @0.1.13_0
 Error: Failed to uninstall py34-botocore: Please uninstall the ports that
 depend on py34-botocore first.
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py34-botocore-1.9.11_0_3d269263cf4e21e7ad3c6ceab9f307a76509a8f2a0d22bc9dfac4dd9516c97f8-1158/py34-botocore/main.log
 for details.
 Warning: Failed to execute portfile from registry for py34-botocore
 @1.9.11_0
 --->  Unable to uninstall py34-botocore @1.9.11_0, the following ports
 depend on it:
 --->    py34-s3transfer @0.1.13_0
 Error: port uninstall failed: Please uninstall the ports that depend on
 py34-botocore first.
 }}}

 {{{
 $ sudo port upgrade py34-s3transfer
 --->  py34-botocore is replaced by py35-botocore
 --->  Computing dependencies for py35-botocore
 --->  Cleaning py35-botocore
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/56234>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list