Ignore:
Timestamp:
Apr 9, 2013, 10:43:39 AM (7 years ago)
Author:
jmr@…
Message:

atlas: add missing error catching probably responsible for failure to index, and use internal sysctl proc (#38677, maintainer timeout)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r104603 r105083  
    161161
    162162# Finds the type of CPU we are running on
     163set native_arch $build_arch
    163164if {${os.arch} == "i386"} {
    164165
    165166    set universal_archs_supported {i386 x86_64}
    166     set native_arch     [exec sysctl -n hw.machine]
    167 } else {
     167    if {![catch {sysctl hw.machine} result]} {
     168        set native_arch $result
     169    }
     170} elseif {${os.arch} == "powerpc"} {
    168171
    169172    set universal_archs_supported {ppc  ppc64}
    170     if {[exec sysctl -n hw.cpusubtype] == 100} {
    171    
     173    if {![catch {sysctl hw.cpusubtype} result] && $result == 100} {
    172174        set native_arch "ppc64"
    173175    } else {
Note: See TracChangeset for help on using the changeset viewer.