From nobody@FreeBSD.org  Mon Jul  2 17:40:17 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 75CED106566B
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <naylor.b.david@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] fix lang/pypy memory check for i386
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 02 17:50:06 UTC 2012
>Closed-Date:    Wed Jul 04 21:41:36 UTC 2012
>Last-Modified:  Wed Jul  4 21:50:12 UTC 2012
>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:
State-Changed-From-To: open->closed 
State-Changed-By: pawel 
State-Changed-When: Wed Jul 4 21:41:36 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169607 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/169607: commit references a PR
Date: Wed,  4 Jul 2012 21:41:31 +0000 (UTC)

 pawel       2012-07-04 21:41:20 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang/pypy            Makefile 
   Log:
   Fix detection of i386 platforms
   
   PR:             ports/169607
   Submitted by:   David Naylor <naylor.b.david@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.5       +1 -1      ports/lang/pypy/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
