Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#25543 closed defect (fixed)

port upgrade fails when version and revision are same but epoch differs

Reported by: ryandesign (Ryan Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.9.2
Component: base Version: 1.9.1
Keywords: Cc: jmroot (Joshua Root), skymoo (Adam Mercer)
Port:

Description

With MacPorts 1.9 branch @69388 (I tested both Tiger and Snow Leopard):

$ port outdated autoconf
The following installed ports are outdated:
autoconf                       2.65_1 < 2.65_1  (epoch 0 < 1)  
$ sudo port -u upgrade autoconf
--->  Computing dependencies for autoconf
--->  Fetching autoconf
--->  Verifying checksum(s) for autoconf
--->  Extracting autoconf
--->  Applying patches to autoconf
--->  Configuring autoconf
--->  Building autoconf
--->  Staging autoconf into destroot
no matching port found for: name=autoconf, version=2.65, revision=1, variants=, epoch=1
    while executing
"registry::entry open $name $version $revision $variants $epoch"
    (procedure "receipt_sqlite::open_entry" line 2)
    invoked from within
"${macports::registry.format}::open_entry $name $version $revision $variants $epoch"
    (procedure "registry::open_entry" line 4)
    invoked from within
"registry::open_entry $newname $version_in_tree $revision_in_tree $portinfo(canonical_active_variants) $epoch_in_tree"
    (procedure "macports::_upgrade" line 378)
    invoked from within
"macports::_upgrade $portname $dspec $variationslist $optionslist depscache"
    (procedure "macports::upgrade" line 20)
    invoked from within
"macports::upgrade $portname "port:$portname" [array get requested_variations] [array get options] depscache"
    invoked from within
"if {![info exists depscache(port:$portname)]} {
            set status [macports::upgrade $portname "port:$portname" [array get requested_variations] ..."
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $block"
    (procedure "foreachport" line 18)
    invoked from within
"foreachport $portlist {
        if {![info exists depscache(port:$portname)]} {
            set status [macports::upgrade $portname "port:$portname" [..."
    (procedure "action_upgrade" line 8)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 87)
    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
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4415)
$ 

Change History (3)

comment:1 Changed 8 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

comment:3 Changed 8 years ago by jmroot (Joshua Root)

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