Date: Mon, 9 Apr 2007 18:32:13 +0200 (CEST) From: Gerald Pfeifer <gerald@pfeifer.com> To: Colin Percival <cperciva@freebsd.org> Cc: cvs-ports@FreeBSD.org, ports-committers@FreeBSD.org, Gerald Pfeifer <gerald@FreeBSD.org>, cvs-all@FreeBSD.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: cvs commit: ports/lang/gcc43 pkg-descr Message-ID: <Pine.LNX.4.64.0704091828090.11247@acrux.dbai.tuwien.ac.at> In-Reply-To: <461A172F.4000202@freebsd.org> References: <200703311441.l2VEfSgZ070944@repoman.freebsd.org> <20070331192739.GA69788@xor.obsecurity.org> <Pine.LNX.4.64.0704091215200.11247@acrux.dbai.tuwien.ac.at> <461A172F.4000202@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 9 Apr 2007, Colin Percival wrote: > Could I suggest > s|increase the the datasize limit|set kern.maxdsiz in /boot/loader.conf| > for the benefit of people who aren't familiar with loader.conf? Good input. How about the following update to my original patch? (Note that the user still may need to increase the datasize limit beyond the setting in /boot/loader.conf, for example in /etc/login.conf or one or the other login script.) Gerald Index: Makefile =================================================================== RCS file: /home/pcvs/ports/lang/gcc43/Makefile,v retrieving revision 1.304 diff -u -3 -p -r1.304 Makefile --- Makefile 9 Apr 2007 13:23:10 -0000 1.304 +++ Makefile 9 Apr 2007 15:32:11 -0000 @@ -135,6 +135,15 @@ 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; DSIZBYTE=734003200; \ + if [ `ulimit -d` -lt $$DSIZ ]; then \ + echo "You need to increase the datasize limit to at least $$DSIZ \ + (and set kern.maxdsiz=\"$$DSIZBYTE\" in /boot/loader.conf) to \ + build with Java support." | ${FMT} -s; \ + 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.0704091828090.11247>