Subject: pkg/14810: cannot exec zsh when LOCALBASE is not /usr/pkg
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 12/02/2001 23:46:21
>Number:         14810
>Category:       pkg
>Synopsis:       cannot exec zsh when LOCALBASE is not /usr/pkg
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 02 06:47:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        -current 1.5X
>Organization:
	
>Environment:
	
System: NetBSD river.my.domain 1.5X NetBSD 1.5X (River) #0: Fri Aug 10 08:55:32 JST 2001 hiramatsu@river.my.domain:/usr/src/sys/arch/i386/compile/River i386
Architecture: i386
Machine: i386
>Description:
zsh can't find libzsh-4.0.4.so when LOCALBASE is not set /usr/pkg,
because Makefile passes "-Wl,-R/usr/pkg/lib/zsh" for linker flag.

>How-To-Repeat:
	
>Fix:

diff -ru zsh.orig/Makefile zsh/Makefile
--- zsh.orig/Makefile   Sun Dec  2 23:18:45 2001
+++ zsh/Makefile        Sun Dec  2 23:18:58 2001
@@ -25,7 +25,7 @@
 .if ${OPSYS} == "SunOS"
 PLIST_SRC=     ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
 .else
-LDFLAGS+=      -Wl,-R/usr/pkg/lib/zsh
+LDFLAGS+=      -Wl,-R${PREFIX}/lib/zsh
 PLIST_SRC=     ${PKGDIR}/PLIST.shlibs ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST
 .endif
 .endif

>Release-Note:
>Audit-Trail:
>Unformatted: