Subject: Re: How to make lang/clisp work amd64
To: Jari Kuittinen <jkuittinen@gmx.de>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 03/17/2006 23:12:47
--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Mar 17, 2006 at 04:38:47PM +0200, Jari Kuittinen wrote:
> lang/clisp needs few minor changes to succesfully compile on amd64:
> 
>    ./configure needs to be run with --disable-mmap
>    (or alternatively CFLAGS set to -DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE 
> -DNO_SINGLEMAP     -DNO_TRIVIALMAP)
> 
> post-install phase:
>    ./makemake needs --disable-mmap too

Is the attached patch sufficient? (alpha added because the
README recommends it for Linux)
 Thomas

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="clisp.diff"

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/clisp/Makefile,v
retrieving revision 1.51
diff -u -r1.51 Makefile
--- Makefile	16 Mar 2006 22:17:04 -0000	1.51
+++ Makefile	17 Mar 2006 21:33:51 -0000
@@ -17,6 +17,12 @@
 
 PKG_INSTALLATION_TYPES= overwrite pkgviews
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mx86_64}
+CFLAGS+=		-DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE -DNO_SINGLEMAP -DNO_TRIVIALMAP
+.endif
+
 USE_PKGLOCALEDIR=	YES
 BUILD_DIRS=		src
 CONFIGURE_DIRS=		. modules/i18n modules/syscalls modules/pcre modules/rawsock \

--huq684BweRXVnRxX--