From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 20 06:10:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADAC91065694 for ; Sun, 20 Feb 2011 06:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 73F0F8FC18 for ; Sun, 20 Feb 2011 06:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1K6AC6o048123 for ; Sun, 20 Feb 2011 06:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1K6AC7m048122; Sun, 20 Feb 2011 06:10:12 GMT (envelope-from gnats) Resent-Date: Sun, 20 Feb 2011 06:10:12 GMT Resent-Message-Id: <201102200610.p1K6AC7m048122@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Denny Lin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5828D106564A for ; Sun, 20 Feb 2011 06:05:22 +0000 (UTC) (envelope-from dennylin93@hs.ntnu.edu.tw) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) by mx1.freebsd.org (Postfix) with ESMTP id E5B388FC0A for ; Sun, 20 Feb 2011 06:05:21 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 1001) id 40DBD4B7825; Sun, 20 Feb 2011 13:48:27 +0800 (CST) Message-Id: <20110220054827.40DBD4B7825@mail.hs.ntnu.edu.tw> Date: Sun, 20 Feb 2011 13:48:27 +0800 (CST) From: Denny Lin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/154899: [PATCH] Limit dynamic space size of SBCL for math/maxima X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Denny Lin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2011 06:10:12 -0000 >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: