Subject: pkg/37623: lang/clisp doesn't have X binding module
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <degroote@netbsd.org>
List: pkgsrc-bugs
Date: 12/26/2007 23:55:00
>Number:         37623
>Category:       pkg
>Synopsis:       lang/clisp doesn't have X binding module
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 26 23:55:00 +0000 2007
>Originator:     A. Degroote
>Release:        -current
>Organization:
>Environment:
NetBSD Amilo.at.home 4.99.45 NetBSD 4.99.45 (AMILO) #1: Wed Dec 26 12:07:33 CET 2007  zul@Amilo.at.home:/home/zul/netbsd-dev/build_temp/objdir/sys/arch/i386/compile/AMILO i386

>Description:
The lang/clisp package doesn't compile the module clx ( X binding for clisp). This prevents some users to use it the package for interaction with X. 
>How-To-Repeat:
cd /usr/pkgsrc/lang/clisp && make install
Then try to install clfswm ( clisp windows management, not packaged in pkgsrc for moment). 
You can check there is no clx.o objet in the /usr/pkg/clisp/lib directory.
>Fix:
The following patch compiles by default the clx-new module (which is faster than mit-clx). 

Of course, it will be better if we have an x11 option but I didn't add write the patch to convert the package to the option framework.

Index: Makefile
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/lang/clisp/Makefile,v
retrieving revision 1.65
diff -u -r1.65 Makefile
--- Makefile    23 Nov 2007 21:59:44 -0000      1.65
+++ Makefile    26 Dec 2007 20:00:44 -0000
@@ -30,7 +30,8 @@
 USE_PKGLOCALEDIR=      YES
 BUILD_DIRS=            src
 CONFIGURE_DIRS=                . modules/i18n modules/syscalls modules/pcre modules/rawsock \
-                       modules/readline modules/regexp modules/wildcard modules/zlib
+                       modules/readline modules/regexp modules/wildcard modules/zlib \
+                       modules/clx/new-clx
 CONFIGURE_ENV+=                CC=${CC:Q} CFLAGS=${CFLAGS:M*:Q} CPPFLAGS=${CPPFLAGS:M*:Q}
 GNU_CONFIGURE=         YES
 UNLIMIT_RESOURCES=     stacksize
@@ -38,6 +39,7 @@
 USE_GNU_READLINE=      YES
 MODULES+=              --with-module=pcre --with-module=rawsock
 MODULES+=              --with-module=wildcard --with-module=zlib
+MODULES+=              --with-module=clx/new-clx
 CONFIGURE_ARGS+=       ${MODULES}
 TEST_TARGET=           check
 MAKE_ENV+=             TOOLS_PLATFORM.install=${TOOLS_PLATFORM.install:Q}
@@ -61,5 +63,7 @@
 .include "../../devel/pcre/buildlink3.mk"
 BUILDLINK_API_DEPENDS.zlib+=   zlib>=1.2
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/lang/clisp/PLIST,v
retrieving revision 1.12
diff -u -r1.12 PLIST
--- PLIST       9 Jun 2007 06:10:31 -0000       1.12
+++ PLIST       26 Dec 2007 20:00:44 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2007/06/09 06:10:31 obache Exp $
+@comment $NetBSD$
 bin/clisp
 lib/clisp/base/calls.o
 lib/clisp/base/gettext.o
@@ -20,6 +20,7 @@
 lib/clisp/data/Symbol-Table.text
 lib/clisp/data/UnicodeDataFull.txt
 lib/clisp/full/calls.o
+lib/clisp/full/clx.o
 lib/clisp/full/cpcre.o
 lib/clisp/full/gettext.o
 lib/clisp/full/libavcall.a