Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40721 closed defect (fixed)

mportdepends sometimes gets an mport with no workername

Reported by: jmroot (Joshua Root) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.2.1
Component: base Version: 2.2.99
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager)
Port:

Description

This will reproduce the problem:

sudo port -dy install jessie

With vanilla base, you'll get a backtrace like this:

DEBUG: invalid command name ""
    while executing
"$workername eval array get ::PortInfo"
    (procedure "mportinfo" line 3)
    invoked from within
"mportinfo $mport"
    (procedure "mportdepends" line 3)
    invoked from within
"mportdepends $depport {} $recurseDeps $skipSatisfied 1"
    (procedure "mportdepends" line 171)
    invoked from within
"mportdepends $mport $target"
    (procedure "mportexec" line 48)
    invoked from within
"mportexec $workername $target"

The attached patch adds a check which illustrates that the bad mport is being returned from dlist_match_multi. More debugging is needed to find out how and when the mport becomes workername-less.

Attachments (1)

mportdepends_debug.patch (856 bytes) - added by jmroot (Joshua Root) 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by jmroot (Joshua Root)

Attachment: mportdepends_debug.patch added

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

Cc: ryandesign@… added

This might also be the reason why the buildbots always get invalid command name "" when building winetricks, though I can't reproduce it on my system since I already have the dependencies installed.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

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

Cc: egall@… added

Cc Me!

comment:4 Changed 11 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.2.1
Note: See TracTickets for help on using tickets.