Opened 15 years ago

Closed 15 years ago

#21068 closed defect (worksforme)

Upgrade function broken in MacPorts 1.8.0

Reported by: ogoell@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port:

Description (last modified by tobypeterson)

$ which port
> /usr/local/bin/port
$ port --version
MacPorts 1.8.0
Entering interactive mode... ("help" for help, "quit" to quit)

$ sudo port -fv upgrade outdated
wrong # args: should be "macports::upgrade portname dspec globalvarlist variationslist optionslist ?depscachename?"
    while executing
"macports::upgrade $portname "port:$portname" [array get variations] [array get options]"
    ("uplevel" body line 9)
    invoked from within
"uplevel 1 $block"
    (procedure "foreachport" line 16)
    invoked from within
"foreachport $portlist {
                # Merge global variations into the variations specified for this port
                foreach { variation value } [array get global_variat..."
    (procedure "action_upgrade" line 4)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 58)
    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 we'r..."
    (file "/usr/local/bin/port" line 2661)

Change History (2)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:2 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

It looks like /usr/local/bin/port is from an older version of MacPorts (you shouldn't install into /usr/local anyway). Thus, it's trying to use the 1.8.0 functionality and failing due to different semantics. Remove /usr/local/bin/port (and any other junk in /usr/local), reinstall MacPorts if necessary...

Note: See TracTickets for help on using tickets.