[MacPorts] #62461: When a port is activated as a dependency of another port, the wrong version is used

MacPorts noreply at macports.org
Mon Mar 15 13:08:46 UTC 2021


#62461: When a port is activated as a dependency of another port, the wrong version
is used
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.6.99
 Keywords:              |       Port:
------------------------+--------------------
 If I deactivate a port ''X'' and one of its dependencies, and then
 reactivate ''X'', it should also reactivate the dependency. But there
 appears to be a bug:

 {{{
 $ port deps paracode
 Full Name: paracode @2.8_1
 Runtime Dependencies: python39
 }}}
 {{{
 $ sudo port -f deact python39 paracode
 --->  Deactivating paracode @2.8_1
 --->  Cleaning paracode
 --->  Unable to deactivate python39 @3.9.2_1+universal, the following
 ports depend on it:
 [snip]
 Warning: Deactivate forced.  Proceeding despite dependencies.
 --->  Deactivating python39 @3.9.2_1+universal
 --->  Cleaning python39
 }}}
 {{{
 $ sudo port act paracode
 --->  Computing dependencies for paracode
 --->  Dependencies to be installed: python39
 Error: Failed to activate python39: Registry error: python39 @2.8_1 is not
 installed.
 Error: See /opt/local/var/macports/logs/_Users_rschmidt_macports_macports-
 ports-ryandesign-fork_lang_python39/python39/main.log for details.
 Warning: Failed to execute portfile from registry for paracode @2.8_1
 --->  Activating paracode @2.8_1
 }}}

 Of course there is no python39 @2.8_1. There's paracode @2.8_1 and
 python39 @3.9.2_1+universal. Somehow it has tried and failed to activate
 python39 with paracode's version.

 Let's try that again with other ports:

 {{{
 $ port deps exec-wrapper
 Full Name: exec-wrapper @1.0.1_4
 Extract Dependencies: lbzip2
 Runtime Dependencies: coreutils
 }}}
 {{{
 $ sudo port -f deact exec-wrapper coreutils
 --->  Deactivating exec-wrapper @1.0.1_4
 --->  Cleaning exec-wrapper
 --->  Unable to deactivate coreutils @8.32_0+universal, the following
 ports depend on it:
 [snip]
 Warning: Deactivate forced.  Proceeding despite dependencies.
 --->  Deactivating coreutils @8.32_0+universal
 --->  Cleaning coreutils
 }}}
 {{{
 $ sudo port act exec-wrapper
 --->  Computing dependencies for exec-wrapper
 --->  Dependencies to be installed: coreutils
 --->  Fetching archive for coreutils
 --->  Attempting to fetch coreutils-8.32_0.darwin_17.x86_64.tbz2 from
 https://packages.macports.org/coreutils
 --->  Attempting to fetch coreutils-8.32_0.darwin_17.x86_64.tbz2.rmd160
 from https://packages.macports.org/coreutils
 --->  Installing coreutils @8.32_0
 Error: Failed to activate coreutils: Registry error: coreutils @1.0.1_4 is
 not installed.
 Error: See /opt/local/var/macports/logs/_Users_rschmidt_macports_macports-
 ports-ryandesign-fork_sysutils_coreutils/coreutils/main.log for details.
 Warning: Failed to execute portfile from registry for exec-wrapper
 @1.0.1_4
 --->  Activating exec-wrapper @1.0.1_4
 }}}

 Similar situation.

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


More information about the macports-tickets mailing list