Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 12:22:07 +0200 (CEST)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        cvs-ports@FreeBSD.org, Gerald Pfeifer <gerald@FreeBSD.org>, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/lang/gcc43 pkg-descr
Message-ID:  <Pine.LNX.4.64.0704091215200.11247@acrux.dbai.tuwien.ac.at>
In-Reply-To: <20070331192739.GA69788@xor.obsecurity.org>
References:  <200703311441.l2VEfSgZ070944@repoman.freebsd.org> <20070331192739.GA69788@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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]";|' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.64.0704091215200.11247>