Date: Sun, 20 Feb 2011 13:48:27 +0800 (CST) From: Denny Lin <dennylin93@hs.ntnu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/154899: [PATCH] Limit dynamic space size of SBCL for math/maxima Message-ID: <20110220054827.40DBD4B7825@mail.hs.ntnu.edu.tw> Resent-Message-ID: <201102200610.p1K6AC7m048122@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154899 >Category: ports >Synopsis: [PATCH] Limit dynamic space size of SBCL for math/maxima >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 20 06:10:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Denny Lin >Release: FreeBSD 8.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD cnmc32.hs.ntnu.edu.tw 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Sep 3 15:42:55 CST 2010 root@cnmc32.hs.ntnu.edu.tw:/usr/obj/usr/src/sys/CNMC32 amd64 >Description: SBCL sometimes fails to run when --dynamic-space-size isn't set to a reasonable value. The attached patch allows users to set this value (similar to the lang/sbcl port). The patch is quite ugly, but I don't know of a better way to do this. >How-To-Repeat: >Fix: --- Makefile.patch begins here --- --- Makefile.orig 2011-02-20 13:02:16.000000000 +0800 +++ Makefile 2011-02-20 13:41:31.000000000 +0800 @@ -73,6 +73,7 @@ #LISPBINARY is null so fudge this so deinstall works cleanly PLIST_SUB+= LISPBINARY="@comment " MAXIMABINARY= maxima.core +DYNAMIC_SPACE_SIZE?= 512 .else IGNORE= define only one lisp .endif @@ -81,6 +82,10 @@ ${FIND} -X ${WRKSRC}/archive ${WRKSRC}/interfaces/xmaxima \ -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e "s;tclsh;${TCLSH};g" ${REINPLACE_CMD} -e "s;/usr/;${LOCALBASE}/;g" ${WRKSRC}/src/intl.lisp + ${REINPLACE_CMD} -e "s/\"@SBCL_NAME@\"/\"@SBCL_NAME@\" --dynamic-space-size ${DYNAMIC_SPACE_SIZE}/g" \ + ${WRKSRC}/src/maxima.in + ${REINPLACE_CMD} -e "s/--noinform/--dynamic-space-size ${DYNAMIC_SPACE_SIZE} --noinform/g" \ + ${WRKSRC}/src/Makefile.am ${WRKSRC}/src/Makefile.in ( cd ${WRKSRC}/doc/info ; ${LOCALBASE}/bin/bash ./fix_crlf ; \ ${LOCALBASE}/bin/bash ./fix_tab ) --- Makefile.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110220054827.40DBD4B7825>