Subject: pkg/5840: xv does not compile on elf
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 07/25/1998 03:24:19
>Number: 5840
>Category: pkg
>Synopsis: xv does not compile on elf
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 25 03:05:00 1998
>Last-Modified:
>Originator: Tim Rightnour
>Organization:
Tim Rightnour - root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release: 1.3<NetBSD-current source date>
>Environment:
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386
>Description:
Xv doesn't work on elf. Usual story of needing -rpath. I don't however
see how it ever worked in the first place. Tiff-3.4 requires a co-link with
-lz. I added this as well.. No idea how this worked before.. unless
it was just a matter of noone noticed it.. (did we upgrade libtiff recently?)
>How-To-Repeat:
try to build it.. how else would you repeat something like this?
>Fix:
You know the drill... ;)
--- Makefile.orig Sat Jul 25 02:37:37 1998
+++ Makefile Sat Jul 25 02:38:15 1998
@@ -37 +37,7 @@
.include "../../mk/bsd.pkg.mk"
+
+.if (${OBJECT_FMT} == "ELF")
+RPATH= -Wl,-rpath,${LOCALBASE}/lib
+.endif
+MAKE_ENV+= RPATH=${RPATH}
+
begin 644 patches/patch-ad
M+2TM($EM86ME9FEL92YO<FEG"5-A="!*=6P@,C4@,#(Z,30Z,3<@,3DY.`HK
M*RL@26UA:V5F:6QE"5-A="!*=6P@,C4@,#(Z,S@Z-3@@,3DY.`I`0"`M."PS
M("LX+#0@0$`*("`J+PHM(V1E9FEN92!(879E2G!E9PHK+RH@(V1E9FEN92!(
M879E2G!E9R`J+PHK(V1E9FEN92!5<V5);G-T86QL961*<&5G"B`*0$`@+3$T
M+#,@*S$U+#0@0$`*("`J+PHM(V1E9FEN92!(879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