pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/clisp Make it build on NetBSD-current again: use ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7645c9ab0d1
branches:  trunk
changeset: 535647:a7645c9ab0d1
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Nov 23 21:59:44 2007 +0000

description:
Make it build on NetBSD-current again: use a private malloc implementation
to avoid jemalloc. The simple allocator used by clisp in the NetBSD
case appears to use some assumptions, like allocations below sbrk(), which
don't hold with jemalloc. We might switch to another allocator later,
but as the code looks this needs more work and testing.
>From Aleksej Saushev per PR pkg/37381; the patch is attributed to
Arnaud Degroote.
Should also fix PR pkg/37304 from Yakovetsky Vladimir.

diffstat:

 lang/clisp/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2284b4339eba -r a7645c9ab0d1 lang/clisp/Makefile
--- a/lang/clisp/Makefile       Fri Nov 23 21:29:17 2007 +0000
+++ b/lang/clisp/Makefile       Fri Nov 23 21:59:44 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2007/11/03 22:36:06 rillig Exp $
+# $NetBSD: Makefile,v 1.65 2007/11/23 21:59:44 drochner Exp $
 
 DISTNAME=      clisp-2.41
 CATEGORIES=    lang
@@ -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



Home | Main Index | Thread Index | Old Index