Date: Mon, 2 Jul 2012 17:40:17 GMT From: David Naylor <naylor.b.david@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/169607: [patch] fix lang/pypy memory check for i386 Message-ID: <201207021740.q62HeHwb059647@red.freebsd.org> Resent-Message-ID: <201207021750.q62Ho7rI074497@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169607 >Category: ports >Synopsis: [patch] fix lang/pypy memory check for i386 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jul 02 17:50:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: David Naylor >Release: >Organization: Private >Environment: >Description: Fix detection of i386 platforms (which require 2GiB of memory). See github.com/DragonSA/pypy for development records >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN --exclude .git --exclude TODO /usr/ports/lang/pypy/Makefile pypy/Makefile --- /usr/ports/lang/pypy/Makefile 2012-06-30 03:14:19.000000000 +0200 +++ pypy/Makefile 2012-07-02 19:35:23.000000000 +0200 @@ -181,7 +181,7 @@ @${ECHO} @${ECHO} "On a fast machine PyPy takes around 45 minutes to translate and compile," @${ECHO} "however an average machine takes in excess of 4 hours, per instance." -.if !defined(PYPY_IGNORE_MEM) && (${PYPY_ARCH} == "i386" || ${PYPY_ARCH} == "ppc_32") +.if !defined(PYPY_IGNORE_MEM) && (${PYPY_ARCH} == "x86_32" || ${PYPY_ARCH} == "ppc_32") @if [ $$((`sysctl -n hw.physmem` / 1024 / 1024)) -le 2000 ]; then \ ${ECHO}; \ ${ECHO} "err: this system has insufficient memory, expected at least 2G RAM",; \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207021740.q62HeHwb059647>