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]";|' \
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to