cvs commit: ports/lang/gcc43 pkg-descr

Gerald Pfeifer gerald at pfeifer.com
Mon Apr 9 16:32:10 UTC 2007


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]";|' \


More information about the cvs-all mailing list