Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15515 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

"port provides" broken in trunk

Reported by: ryandesign@… Owned by: raimue@…
Priority: Normal Milestone: MacPorts base bugs
Component: base Version: 1.7.0
Keywords: Cc: raimue@…
Port:

Description

"port provides" seems to be broken in trunk (@37376). Not sure yet when this problem appeared. This is with Mac OS X 10.4.11 and Xcode 2.4.1 on Intel.

$ /mp/bin/port provides foo
list must have an even number of elements
    while executing
"array set portspec { foo }"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 "array set portspec { $portspec }""
    (procedure "foreachport" line 6)
    invoked from within
"foreachport $portlist {
        set file [compat filenormalize $portname]
        if {[file exists $file]} {
            if {![file isdirectory $file]..."
    (procedure "action_provides" line 9)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 86)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command

    # Exit immediately, by default, unless..."
    (file "/mp/bin/port" line 3165)
$

Change History

Changed 6 months ago by ryandesign@…

  • cc raimue@… added

It looks like r37238 caused this.

Changed 6 months ago by raimue@…

  • owner changed from macports-tickets@… to raimue@…
  • status changed from new to assigned

Changed 6 months ago by raimue@…

  • status changed from assigned to closed
  • resolution set to fixed

Sorry, that was my mistake. While I changed the definition of the action to get an unexpanded argument list, I didn't change the action itself to operate on a list of strings instead of ports. Thanks for the report.

Fixed in r37386.

Note: See TracTickets for help on using tickets.