Subject: suse_compat under Linux!
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 01/11/2003 16:50:09
Installing pkgsrc/www/navigator under Linux I received:

===> suse_compat-7.3 is not available for Linux-2.2.13-i686

Of course, not needed. Maybe all packages needing Linux whatever, should
check if really needed -- like the tests often done in the buildlink2
files.

My workaround:

--- Makefile.common.orig	Fri Jan 10 20:20:11 2003
+++ Makefile.common	Sat Jan 11 16:41:49 2003
@@ -67,8 +67,10 @@
 #
 .elif (${MACHINE_ARCH} == "i386")
 PLIST_ARCH=	linux-i386
+.if ${OPSYS} != "Linux"
 DEPENDS+=	suse_compat>=6.4:../../emulators/${SUSE_DIR_PREFIX}_compat
 DEPENDS+=	suse_x11>=6.4:../../emulators/${SUSE_DIR_PREFIX}_x11
+.endif
 DISTUNAME=	x86-unknown-linux2.2
 DIST_DIR_NAME=	supported/linux22
 WRKNAME=	x86-unknown-linux2.2
@@ -110,8 +112,10 @@
 PKG_FAIL_REASON+= "platform.  Please cd to ../communicator and"
 PKG_FAIL_REASON+= "install communicator package instead."
 .endif
+.if ${OPSYS} != "Linux"
 DEPENDS+=	suse_compat>=6.4:../../emulators/${SUSE_DIR_PREFIX}_compat
 DEPENDS+=	suse_x11>=6.4:../../emulators/${SUSE_DIR_PREFIX}_x11
+.endif
 NS_VERS=	4.73
 PKGNAME=	${BINNAME}-${NS_VERS}
 DISTNAME=	netscape-4.7-3.ppc
@@ -235,5 +239,9 @@

 .if (${BINNAME} != "netscape")
 USE_BUILDLINK2=	# defined
+.if ${OPSYS} != "Linux"
 .include "../../emulators/suse_linux/Makefile.application"
+.else
+.include "../../mk/bsd.pkg.mk"
+.endif
 .endif

   Jeremy C. Reed

   http://www.bsdnewsletter.com/