Subject: pkg/5838: hp2xx does not compile on elf machines
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 07/24/1998 23:33:34
>Number: 5838
>Category: pkg
>Synopsis: hp2xx does not compile on elf machines
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 24 23:20:01 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:
hp2xx does not compile on elf machines. It needs rpath. In addition, it
requires x11, but doesn't set USE_X11, nor provide a -I line for it.
>How-To-Repeat:
try to compile it, and lose.
>Fix:
--- Makefile.orig Fri Jul 24 23:21:02 1998
+++ Makefile Fri Jul 24 23:27:24 1998
@@ -10,3 +10,10 @@
INFO_FILES= hp2xx.info
+USE_X11= yes
.include "../../mk/bsd.pkg.mk"
+
+.if (${OBJECT_FMT} == "ELF")
+RPATH= -Wl,-rpath,${PREFIX}/lib
+.endif
+MAKE_ENV+= RPATH=${RPATH}
+
begin 644 patches/patch-ab
M+2TM('-O=7)C97,O36%K969I;&4N;W)I9PE-;VX@3F]V(#$U(#$T.C0W.C0Y
M(#$Y.3,**RLK('-O=7)C97,O36%K969I;&4)1G)I($IU;"`R-"`R,SHR-SHT
M-"`Q.3DX"D!`("TS-BPS("LS-BPS($!`"B`C"BUP<F5F:7@@("`]("]U<W(O
M;&]C86P**W!R969I>"`@(#T@)'M04D5&25A]"B!B:6YD:7(@("`]("0H<')E
M9FEX*2]B:6X*0$`@+30Y+#0@*S0Y+#0@0$`*(`HM3$9,04=3("`@/2`@("`@
M("`@("`@("`@("`C(&]N;'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