Subject: pkg/37381: [fix] lang/clisp doesn't build on NetBSD-current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Aleksej Saushev <asau@inbox.ru>
List: pkgsrc-bugs
Date: 11/13/2007 23:40:00
>Number:         37381
>Category:       pkg
>Synopsis:       [fix] lang/clisp doesn't build on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 13 23:40:00 +0000 2007
>Originator:     Aleksej Saushev <asau@inbox.ru>
>Release:        NetBSD 4.99.35
>Organization:
>Environment:
System: NetBSD asau.local 4.99.35 NetBSD 4.99.35 (KERN) #0: Mon Nov 12 01:34:34 MSK 2007 asau@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	The package doesn't build on current NetBSD, this breaks SBCL and Maxima,
	which depend on CLISP.
>How-To-Repeat:
	cd lang/clisp; make
>Fix:
Thanks to Arnaud Degroote <degroote@netbsd.org>, who suggested the idea:

--- Makefile	13 Nov 2007 01:38:55 +0300	1.64
+++ Makefile	14 Nov 2007 00:52:09 +0300	
@@ -17,6 +17,11 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if ${OPSYS} == "NetBSD"
+# CLISP doesn't work with jemalloc, which is default in current
+MODULES+=		--with-gmalloc
+.endif
+
 .if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mx86_64} || ${OPSYS} == "DragonFly"
 MODULES+=		--disable-mmap
 .endif