From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 2 17:50:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB45B106572F for ; Mon, 2 Jul 2012 17:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3B0B28FC17 for ; Mon, 2 Jul 2012 17:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q62Ho7t9074498 for ; Mon, 2 Jul 2012 17:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q62Ho7rI074497; Mon, 2 Jul 2012 17:50:07 GMT (envelope-from gnats) Resent-Date: Mon, 2 Jul 2012 17:50:07 GMT Resent-Message-Id: <201207021750.q62Ho7rI074497@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Naylor Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 75CED106566B for ; Mon, 2 Jul 2012 17:40:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 6423E8FC17 for ; Mon, 2 Jul 2012 17:40:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q62HeHHi059648 for ; Mon, 2 Jul 2012 17:40:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q62HeHwb059647; Mon, 2 Jul 2012 17:40:17 GMT (envelope-from nobody) Message-Id: <201207021740.q62HeHwb059647@red.freebsd.org> Date: Mon, 2 Jul 2012 17:40:17 GMT From: David Naylor To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/169607: [patch] fix lang/pypy memory check for i386 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2012 17:50:10 -0000 >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: