New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83143


Ignore:
Timestamp:
08/26/11 05:35:59 (4 years ago)
Author:
jmr@…
Message:

merge r82921, r82924 from trunk:

in mportdepends, don't add an mport with fewer archs than one with the same name already seen; and rename now-confusing 'subport' variables

Location:
branches/release_2_0
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/release_2_0

  • branches/release_2_0/base

  • branches/release_2_0/base/portmgr/fedora/macports.spec

  • branches/release_2_0/base/src/macports1.0/macports.tcl

    r83140 r83143  
    26002600    set deptypes [macports::_deptypes_for_target $target $workername] 
    26012601 
    2602     set subPorts {} 
     2602    set depPorts {} 
    26032603    if {[llength $deptypes] > 0} { 
    26042604        array set optionsarray [ditem_key $mport options] 
     
    26192619        } 
    26202620        foreach depspec $portinfo($deptype) { 
    2621             # skip depspec/archs combos we've already seen 
     2621            # skip depspec/archs combos we've already seen, and ones with less archs than ones we've seen 
    26222622            set seenkey "${depspec},[join $required_archs ,]" 
     2623            set seen 0 
    26232624            if {[info exists depspec_seen($seenkey)]} { 
     2625                set seen 1 
     2626            } else { 
     2627                set prev_seenkeys [array names depspec_seen ${depspec},*] 
     2628                set nrequired [llength $required_archs] 
     2629                foreach key $prev_seenkeys { 
     2630                    set key_archs [lrange [split $key ,] 1 end] 
     2631                    if {[llength $key_archs] > $nrequired} { 
     2632                        set seen 1 
     2633                        set seenkey $key 
     2634                        break 
     2635                    } 
     2636                } 
     2637            } 
     2638            if {$seen} { 
    26242639                if {$depspec_seen($seenkey) != 0} { 
    26252640                    # nonzero means the dep is not satisfied, so we have to record it 
     
    26712686                } 
    26722687                lappend options subport $dep_portname 
    2673                 # Figure out the subport. Check the open_mports list first, since 
     2688                # Figure out the depport. Check the open_mports list first, since 
    26742689                # we potentially leak mport references if we mportopen each time, 
    26752690                # because mportexec only closes each open mport once. 
    2676                 set subport [dlist_match_multi $macports::open_mports [list porturl $dep_portinfo(porturl) options $options variations $variations]] 
     2691                set depport [dlist_match_multi $macports::open_mports [list porturl $dep_portinfo(porturl) options $options variations $variations]] 
    26772692                 
    2678                 if {$subport == {}} { 
     2693                if {$depport == {}} { 
    26792694                    # We haven't opened this one yet. 
    2680                     set subport [mportopen $dep_portinfo(porturl) $options $variations] 
     2695                    set depport [mportopen $dep_portinfo(porturl) $options $variations] 
    26812696                } 
    26822697            } 
     
    26842699            # check archs 
    26852700            if {$parse && $check_archs 
    2686                 && ![macports::_mport_supports_archs $subport $required_archs]} { 
    2687  
    2688                 set supported_archs [_mportkey $subport supported_archs] 
    2689                 mportclose $subport 
     2701                && ![macports::_mport_supports_archs $depport $required_archs]} { 
     2702 
     2703                set supported_archs [_mportkey $depport supported_archs] 
     2704                mportclose $depport 
    26902705                set arch_mismatch 1 
    26912706                set has_universal 0 
     
    26982713                        set variation_array(universal) + 
    26992714                        # try again with +universal 
    2700                         set subport [mportopen $dep_portinfo(porturl) $options [array get variation_array]] 
    2701                         if {[macports::_mport_supports_archs $subport $required_archs]} { 
     2715                        set depport [mportopen $dep_portinfo(porturl) $options [array get variation_array]] 
     2716                        if {[macports::_mport_supports_archs $depport $required_archs]} { 
    27022717                            set arch_mismatch 0 
    27032718                        } 
     
    27132728                if {$recurseDeps} { 
    27142729                    # Add to the list we need to recurse on. 
    2715                     lappend subPorts $subport 
    2716                 } 
    2717      
     2730                    lappend depPorts $depport 
     2731                } 
     2732 
    27182733                # Append the sub-port's provides to the port's requirements list. 
    2719                 set subport_provides "[ditem_key $subport provides]" 
    2720                 ditem_append_unique $mport requires $subport_provides 
    2721                 set depspec_seen($seenkey) $subport_provides 
     2734                set depport_provides "[ditem_key $depport provides]" 
     2735                ditem_append_unique $mport requires $depport_provides 
     2736                set depspec_seen($seenkey) $depport_provides 
    27222737            } else { 
    27232738                set depspec_seen($seenkey) 0 
     
    27262741    } 
    27272742 
    2728     # Loop on the subports. 
     2743    # Loop on the depports. 
    27292744    if {$recurseDeps} { 
    2730         foreach subport $subPorts { 
     2745        foreach depport $depPorts { 
    27312746            # Sub ports should be installed (all dependencies must be satisfied). 
    2732             set res [mportdepends $subport "" $recurseDeps $skipSatisfied 1] 
     2747            set res [mportdepends $depport "" $recurseDeps $skipSatisfied 1] 
    27332748            if {$res != 0} { 
    27342749                return $res 
  • branches/release_2_0/base/src/pextlib1.0/sha2.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha2.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha256cmd.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha256cmd.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/registry2.0/receipt_sqlite.tcl

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.