[66580] trunk/base/src/port1.0/portbuild.tcl

jmr at macports.org jmr at macports.org
Sat Apr 17 01:05:14 PDT 2010


Revision: 66580
          http://trac.macports.org/changeset/66580
Author:   jmr at macports.org
Date:     2010-04-17 01:05:13 -0700 (Sat, 17 Apr 2010)
Log Message:
-----------
handle absence of hw.memsize sysctl gracefully

Modified Paths:
--------------
    trunk/base/src/port1.0/portbuild.tcl

Modified: trunk/base/src/port1.0/portbuild.tcl
===================================================================
--- trunk/base/src/port1.0/portbuild.tcl	2010-04-17 08:01:47 UTC (rev 66579)
+++ trunk/base/src/port1.0/portbuild.tcl	2010-04-17 08:05:13 UTC (rev 66580)
@@ -112,7 +112,7 @@
             ui_warn "failed to determine the number of available CPUs (probably not supported on this platform)"
             ui_warn "defaulting to $jobs jobs, consider setting buildmakejobs to a nonzero value in macports.conf"
         }
-        if {$jobs > $memsize / 1000000000 + 1} {
+        if {[info exists memsize] && $jobs > $memsize / 1000000000 + 1} {
             set jobs [expr $memsize / 1000000000 + 1]
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100417/37699391/attachment.html>


More information about the macports-changes mailing list