[105083] trunk/dports/math/atlas/Portfile
jmr at macports.org
jmr at macports.org
Tue Apr 9 03:43:39 PDT 2013
Revision: 105083
https://trac.macports.org/changeset/105083
Author: jmr at macports.org
Date: 2013-04-09 03:43:39 -0700 (Tue, 09 Apr 2013)
Log Message:
-----------
atlas: add missing error catching probably responsible for failure to index, and use internal sysctl proc (#38677, maintainer timeout)
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-04-09 10:01:39 UTC (rev 105082)
+++ trunk/dports/math/atlas/Portfile 2013-04-09 10:43:39 UTC (rev 105083)
@@ -160,15 +160,17 @@
set universal [variant_isset universal]
# Finds the type of CPU we are running on
+set native_arch $build_arch
if {${os.arch} == "i386"} {
set universal_archs_supported {i386 x86_64}
- set native_arch [exec sysctl -n hw.machine]
-} else {
+ if {![catch {sysctl hw.machine} result]} {
+ set native_arch $result
+ }
+} elseif {${os.arch} == "powerpc"} {
set universal_archs_supported {ppc ppc64}
- if {[exec sysctl -n hw.cpusubtype] == 100} {
-
+ if {![catch {sysctl hw.cpusubtype} result] && $result == 100} {
set native_arch "ppc64"
} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130409/8ce26ffa/attachment.html>
More information about the macports-changes
mailing list