From owner-cvs-all@FreeBSD.ORG Mon Apr 9 10:22:07 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DF3716A400; Mon, 9 Apr 2007 10:22:07 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.131.111.2]) by mx1.freebsd.org (Postfix) with ESMTP id D92AD13C457; Mon, 9 Apr 2007 10:22:06 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from acrux.dbai.tuwien.ac.at (acrux [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id B0CCA137C6; Mon, 9 Apr 2007 12:22:05 +0200 (CEST) Received: by acrux.dbai.tuwien.ac.at (Postfix, from userid 1203) id EEF491A7C9; Mon, 9 Apr 2007 12:22:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by acrux.dbai.tuwien.ac.at (Postfix) with ESMTP id DCD3A1A7C7; Mon, 9 Apr 2007 12:22:07 +0200 (CEST) Date: Mon, 9 Apr 2007 12:22:07 +0200 (CEST) From: Gerald Pfeifer To: Kris Kennaway In-Reply-To: <20070331192739.GA69788@xor.obsecurity.org> Message-ID: References: <200703311441.l2VEfSgZ070944@repoman.freebsd.org> <20070331192739.GA69788@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: cvs-ports@FreeBSD.org, Gerald Pfeifer , cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/lang/gcc43 pkg-descr X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 10:22:07 -0000 On Sat, 31 Mar 2007, Kris Kennaway wrote: >>| +(Building the Java frontend and the associated libgcj library will >>| +consume more than 512MB of main memory. Set WITHOUT_JAVA=yes in >>| +the environment when building this port to avoid that.) > Maybe also describe how to achieve this? i.e. you need to increase > the datasize limit. It would also be good to check this before > starting the build and abort if it is going to fail later on. Did you have something like the patch below in mind? (Not committed yet.) BTW, I cannot believe that even with FreeBSD 6.2 we still need to hack /boot/loader.conf and reboot to support more than 512MB per process. Is there really no better way? I failed to find suitable documentation on FreeBSD.org so far. Gerald Index: Makefile =================================================================== RCS file: /home/pcvs/ports/lang/gcc43/Makefile,v retrieving revision 1.303 diff -u -3 -p -r1.303 Makefile --- Makefile 28 Mar 2007 14:25:11 -0000 1.303 +++ Makefile 9 Apr 2007 10:16:27 -0000 @@ -135,6 +135,13 @@ PLIST_SUB+= JAVA="@comment " pre-everything:: @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}" +.if ! defined(WITHOUT_JAVA) + @DSIZ=700000; \ + if [ `ulimit -d` -lt $$DSIZ ]; then \ + echo "You need to increase the datasize limit to at least $$DSIZ to build with Java support." | fmt; \ + exit 1; \ + fi +.endif post-patch: @${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \