Subject: pkg/14032: pkgsrc/shells/zsh PLIST tuning for Zoularis
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <seb@script.jussieu.fr>
List: netbsd-bugs
Date: 09/21/2001 12:55:07
>Number:         14032
>Category:       pkg
>Synopsis:       pkgsrc/shells/zsh PLIST tuning for Zoularis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 21 03:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stoned Elipot
>Release:        pkgsrc-current
>Organization:
SCRIPT, Paris VII University, France
>Environment:
System: SunOS tzolkin 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-5_10

>Description:
${LOCALBASE}/lib/zsh/libzsh-4.0.2.so does not seems to be installed
on Solaris. I cannot find why... If anyone has any insight on how zsh
modules are build/installed I'd be delighted to here about that.
>How-To-Repeat:
Build and install zsh pkg on Solaris/Zoularis and look for 
${LOCALBASE}/lib/zsh/libzsh-4.0.2.so
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/shells/zsh/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	2001/07/23 18:23:44	1.23
+++ Makefile	2001/09/21 10:50:05
@@ -24,7 +24,12 @@
 CONFIGURE_ARGS+=--disable-dynamic
 LDFLAGS+=	-static
 .else
+.if ${OPSYS} == "SunOS"
+ZSHLIB_INSTALLED=	'@comment '
+.endif
+ZSHLIB_INSTALLED?=	''
 PLIST_SRC+=	${PKGDIR}/PLIST.dynamic
+PLIST_SUBST+=	ZSHLIB_INSTALLED=${ZSHLIB_INSTALLED}
 .endif
 
 post-install:
Index: pkg/PLIST.dynamic
===================================================================
RCS file: /cvsroot/pkgsrc/shells/zsh/pkg/PLIST.dynamic,v
retrieving revision 1.2
diff -u -r1.2 PLIST.dynamic
--- PLIST.dynamic	2001/07/23 18:23:45	1.2
+++ PLIST.dynamic	2001/09/21 10:50:05
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST.dynamic,v 1.2 2001/07/23 18:23:45 nra Exp $
-lib/zsh/libzsh-4.0.2.so
+${ZSHLIB_INSTALLED}lib/zsh/libzsh-4.0.2.so
 lib/zsh/4.0.2/zsh/rlimits.so
 lib/zsh/4.0.2/zsh/sched.so
 lib/zsh/4.0.2/zsh/cap.so
>Release-Note:
>Audit-Trail:
>Unformatted: