New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82135


Ignore:
Timestamp:
08/08/11 07:30:17 (4 years ago)
Author:
afb@…
Message:

fix the arch of deb packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/package1.0/portdpkg.tcl

    r79593 r82135  
    5454 
    5555proc portdpkg::main {args} { 
    56         global UI_PREFIX destpath os.arch os.platform 
     56        global UI_PREFIX destpath os.arch os.platform supported_archs configure.build_arch 
    5757     
    5858        ui_msg "$UI_PREFIX [format [msgcat::mc "Creating dpkg for %s-%s"] [option subport] [option version]]" 
     
    132132        # freebsd and openbsd. Use of gnu in this string is reserved for the            
    133133        # GNU/Hurd operating system. 
    134         switch -regex ${os.arch} { 
     134        switch -regex ${configure.build_arch} { 
    135135                i[3-9]86 { set pkg_arch "i386" } 
     136                x86_64 { set pkg_arch "x86_64" } 
    136137                default { set pkg_arch ${os.arch} } 
    137138        } 
     
    141142        if {${os.platform} != "linux"} { 
    142143                set pkg_arch "${os.platform}-${pkg_arch}" 
     144        } elseif {${pkg_arch} == "x86_64"} { 
     145                set pkg_arch "amd64" 
     146        } 
     147         
     148        # An architecture-independent package 
     149        if {$supported_archs == "noarch"} { 
     150                set pkg_arch "all" 
    143151        } 
    144152 
Note: See TracChangeset for help on using the changeset viewer.