Subject: quick fix for news/pan on linux
To: None <tech-pkg@NetBSD.org>
From: Sebastian Prause <sebastian-p@gmx.net>
List: tech-pkg
Date: 12/22/2004 17:08:30
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

on linux, the configure script fails at some point because it cannot
find -lcompat. 

The Makefile has:

.if (${OPSYS} != "SunOS")
LIBS=                   -lcompat
.endif

which must be changed to work on linux:

.if (${OPSYS} != "SunOS") && (${OPSYS} != "Linux")
LIBS=                   -lcompat
.endif

patch attached.


   -- Sebastian Prause


--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Description: pan_linux.patch
Content-Disposition: attachment; filename="pan_linux.patch"

--- Makefile.orig	2004-11-01 00:34:03.000000000 +0100
+++ Makefile	2004-12-22 17:02:38.000000000 +0100
@@ -20,7 +20,7 @@
 GNU_CONFIGURE=		YES
 
 .include "../../mk/bsd.prefs.mk"
-.if (${OPSYS} != "SunOS")
+.if (${OPSYS} != "SunOS") && (${OPSYS} != "Linux")
 LIBS=			-lcompat
 .endif
 

--azLHFNyN32YCQGCU--