Subject: pkg/33135: security/fprot-workstation-bin support for NetBSD/amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: pkgsrc-bugs
Date: 03/23/2006 17:05:00
>Number: 33135
>Category: pkg
>Synopsis: security/fprot-workstation-bin support for NetBSD/amd64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 23 17:05:00 +0000 2006
>Originator: Nicolas Joly
>Release: NetBSD 3.99.17
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 3.99.17 NetBSD 3.99.17 (LANFEUST) #0: Tue Mar 21 11:38:38 CET 2006 root@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
The security/fprot-workstation-bin package has no NetBSD/amd64 binary
distribution; however, amd64 machines with COMPAT_NETBSD32 support
(kernel and userland) can run the distributed NetBSD/i386 binaries.
I'm running it, for a few weeks now, without any problem ...
>How-To-Repeat:
Simply try to install security/fprot-workstation-bin package on a machine
running NetBSD/amd64.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/fprot-workstation-bin/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile 4 Mar 2006 21:30:33 -0000 1.29
+++ Makefile 23 Mar 2006 16:48:31 -0000
@@ -15,7 +15,8 @@
PKG_INSTALLATION_TYPES= overwrite pkgviews
-ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 SunOS-*-sparc
+ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-[2-9]*-x86_64 \
+ Linux-*-i386 SunOS-*-sparc
RESTRICTED= "Redistribution not permitted"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
@@ -53,6 +54,10 @@
DISTNAME= fp-solaris-sparc-ws-${FPVER}
.endif
+.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64")
+DEPENDS+= netbsd32_compat16>=1.0:../../emulators/netbsd32_compat16
+.endif
+
DIST_SUBDIR= ${DISTNAME}
SUBST_CLASSES+= f-prot