summaryrefslogtreecommitdiff
path: root/parallel/pvm3/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>1999-11-23 16:05:28 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>1999-11-23 16:05:28 +0000
commit111c5e466b6f0bdc8ca3693ba5a6d014182be975 (patch)
tree1463921a0171841be52ba7d9cc5a7815e5784937 /parallel/pvm3/patches
parent99f389a8cdda217b8104a7d0b35c82606cfbdbab (diff)
downloadpkgsrc-111c5e466b6f0bdc8ca3693ba5a6d014182be975.tar.gz
-Update from 3.4beta7 to 3.4.2.
-Add USE_FORTRAN to the package Makefile for correct handling of the required fortran compiler. -Fix the .m4 files which control how fortran symbols are handled. -Rework package to use a different PVM_ARCH for each MACHINE_ARCH. As opposed to a single PVM_ARCH. This addresses PR pkg/6890 (Thanks to Ignatios Souvatzis for the PR). -Rework package to install missing programs including: pvmgetarch, aimk debugger, debugger2, and the configuration stubs (*.def, *.m4). This address part of PR pkg/6924 (Thanks to Ignatios Souvatzis for the PR). -Rework package to maintain the normal pvm3 directory layout so that only one variable (PVM_ROOT) has to be set to a non-traditional value. This address the remainder of PR pkg/6924 (Thanks again Ig!).
Diffstat (limited to 'parallel/pvm3/patches')
-rw-r--r--parallel/pvm3/patches/patch-aa39
-rw-r--r--parallel/pvm3/patches/patch-ab17
-rw-r--r--parallel/pvm3/patches/patch-ac11
-rw-r--r--parallel/pvm3/patches/patch-ad11
-rw-r--r--parallel/pvm3/patches/patch-ae11
-rw-r--r--parallel/pvm3/patches/patch-af11
-rw-r--r--parallel/pvm3/patches/patch-ag18
-rw-r--r--parallel/pvm3/patches/patch-ah36
-rw-r--r--parallel/pvm3/patches/patch-ai42
-rw-r--r--parallel/pvm3/patches/patch-aj37
-rw-r--r--parallel/pvm3/patches/patch-ak31
-rw-r--r--parallel/pvm3/patches/patch-al36
-rw-r--r--parallel/pvm3/patches/patch-am33
-rw-r--r--parallel/pvm3/patches/patch-an30
-rw-r--r--parallel/pvm3/patches/patch-ao46
-rw-r--r--parallel/pvm3/patches/patch-ap24
-rw-r--r--parallel/pvm3/patches/patch-aq11
-rw-r--r--parallel/pvm3/patches/patch-ar17
-rw-r--r--parallel/pvm3/patches/patch-as15
-rw-r--r--parallel/pvm3/patches/patch-at24
-rw-r--r--parallel/pvm3/patches/patch-au15
-rw-r--r--parallel/pvm3/patches/patch-av24
-rw-r--r--parallel/pvm3/patches/patch-aw15
-rw-r--r--parallel/pvm3/patches/patch-ax24
-rw-r--r--parallel/pvm3/patches/patch-ay15
-rw-r--r--parallel/pvm3/patches/patch-az24
-rw-r--r--parallel/pvm3/patches/patch-ba15
-rw-r--r--parallel/pvm3/patches/patch-bb24
-rw-r--r--parallel/pvm3/patches/patch-bc15
-rw-r--r--parallel/pvm3/patches/patch-bd24
-rw-r--r--parallel/pvm3/patches/patch-be15
-rw-r--r--parallel/pvm3/patches/patch-bf24
-rw-r--r--parallel/pvm3/patches/patch-bg15
-rw-r--r--parallel/pvm3/patches/patch-bh24
34 files changed, 577 insertions, 196 deletions
diff --git a/parallel/pvm3/patches/patch-aa b/parallel/pvm3/patches/patch-aa
index a7b510ad774..75647042ecb 100644
--- a/parallel/pvm3/patches/patch-aa
+++ b/parallel/pvm3/patches/patch-aa
@@ -1,7 +1,32 @@
-$NetBSD: patch-aa,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/ddpro.c.orig Fri Aug 7 00:37:07 1998
-+++ src/ddpro.c Fri Aug 7 00:37:25 1998
-@@ -234,2 +234,3 @@
- #ifdef NEEDMENDIAN
-+#include <sys/types.h>
- #include <machine/endian.h>
+$NetBSD: patch-aa,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./lib/pvmgetarch.orig Wed Jul 7 15:54:41 1999
++++ ./lib/pvmgetarch Mon Nov 1 19:57:42 1999
+@@ -128,12 +128,19 @@
+
+ if [ -f /netbsd ]; then
+- case "`/usr/bin/machine`" in
+- i386) ARCH=NETBSDI386 ;;
+- amiga) ARCH=NETBSDAMIGA ;;
+- hp300) ARCH=NETBSDHP300 ;;
+- mac68k) ARCH=NETBSDMAC68K ;;
+- pmax) ARCH=NETBSDPMAX ;;
+- sparc) ARCH=NETBSDSPARC ;;
+- sun3) ARCH=NETBSDSUN3 ;;
++ # use the processor type for NetBSD because machines with
++ # the same processor are binary compatible.
++ case "`/usr/bin/uname -p`" in
++ alpha) ARCH=NETBSDALPHA ;;
++ arm32) ARCH=NETBSDARM32 ;;
++ i386) ARCH=NETBSDI386 ;;
++ m68k) ARCH=NETBSDM68K ;;
++ mipseb) ARCH=NETBSDMIPSEB ;;
++ mipsel) ARCH=NETBSDMIPSEL ;;
++ ns32k) ARCH=NETBSDNS32K ;;
++ powerpc) ARCH=NETBSDPOWERPC ;;
++ sh3) ARCH=NETBSDSH3 ;;
++ sparc) ARCH=NETBSDSPARC ;;
++ sparc64) ARCH=NETBSDSPARC64 ;;
++ vax) ARCH=NETBSDVAX ;;
+ esac
+ elif [ -f /usr/bin/machine ]; then
diff --git a/parallel/pvm3/patches/patch-ab b/parallel/pvm3/patches/patch-ab
index 8e0c681be94..ddffafe79e6 100644
--- a/parallel/pvm3/patches/patch-ab
+++ b/parallel/pvm3/patches/patch-ab
@@ -1,7 +1,10 @@
-$NetBSD: patch-ab,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/hoster.c.orig Fri Aug 7 00:37:49 1998
-+++ src/hoster.c Fri Aug 7 00:38:11 1998
-@@ -142,2 +142,3 @@
- #ifdef NEEDMENDIAN
-+#include <sys/types.h>
- #include <machine/endian.h>
+$NetBSD: patch-ab,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./xep/imp.c.orig Tue Mar 16 11:01:44 1999
++++ ./xep/imp.c Mon Nov 1 09:39:01 1999
+@@ -73,4 +73,5 @@
+ #define byteswide(w) (((w)+7)/8)
+
++static int mkrbow(unsigned int *,unsigned int *,unsigned int *,int,int);
+
+ /***************
diff --git a/parallel/pvm3/patches/patch-ac b/parallel/pvm3/patches/patch-ac
index 3c4f14bdc36..31abc84ffd9 100644
--- a/parallel/pvm3/patches/patch-ac
+++ b/parallel/pvm3/patches/patch-ac
@@ -1,7 +1,10 @@
-$NetBSD: patch-ac,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/pvmdpack.c.orig Fri Aug 7 00:39:13 1998
-+++ src/pvmdpack.c Fri Aug 7 00:39:27 1998
-@@ -66,2 +66,3 @@
+$NetBSD: patch-ac,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./src/ddpro.c.orig Thu Aug 19 11:39:22 1999
++++ ./src/ddpro.c Sun Oct 31 11:41:54 1999
+@@ -278,4 +278,5 @@
+
#ifdef NEEDMENDIAN
+#include <sys/types.h>
#include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-ad b/parallel/pvm3/patches/patch-ad
index b6ecf774090..88bfde866a3 100644
--- a/parallel/pvm3/patches/patch-ad
+++ b/parallel/pvm3/patches/patch-ad
@@ -1,7 +1,10 @@
-$NetBSD: patch-ad,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/sdpro.c.orig Fri Aug 7 00:39:58 1998
-+++ src/sdpro.c Fri Aug 7 00:40:27 1998
-@@ -75,2 +75,3 @@
+$NetBSD: patch-ad,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./src/hoster.c.orig Thu Aug 19 11:39:24 1999
++++ ./src/hoster.c Sun Oct 31 11:43:48 1999
+@@ -171,4 +171,5 @@
+
#ifdef NEEDMENDIAN
+#include <sys/types.h>
#include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-ae b/parallel/pvm3/patches/patch-ae
index e5d1baf31bc..76cea1fc933 100644
--- a/parallel/pvm3/patches/patch-ae
+++ b/parallel/pvm3/patches/patch-ae
@@ -1,7 +1,10 @@
-$NetBSD: patch-ae,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/task.c.orig Fri Aug 7 00:41:01 1998
-+++ src/task.c Fri Aug 7 00:41:17 1998
-@@ -145,2 +145,3 @@
+$NetBSD: patch-ae,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./src/pvmdpack.c.orig Thu Jul 8 15:00:10 1999
++++ ./src/pvmdpack.c Sun Oct 31 11:44:18 1999
+@@ -75,4 +75,5 @@
+
#ifdef NEEDMENDIAN
+#include <sys/types.h>
#include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-af b/parallel/pvm3/patches/patch-af
index 9a10650ec36..7950864765a 100644
--- a/parallel/pvm3/patches/patch-af
+++ b/parallel/pvm3/patches/patch-af
@@ -1,7 +1,10 @@
-$NetBSD: patch-af,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/tdpro.c.orig Fri Aug 7 00:43:15 1998
-+++ src/tdpro.c Fri Aug 7 00:43:37 1998
-@@ -207,2 +207,3 @@
+$NetBSD: patch-af,v 1.2 1999/11/23 16:05:30 dmcmahill Exp $
+
+--- ./src/sdpro.c.orig Thu Jul 8 15:00:15 1999
++++ ./src/sdpro.c Sun Oct 31 11:44:40 1999
+@@ -84,4 +84,5 @@
+
#ifdef NEEDMENDIAN
+#include <sys/types.h>
#include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-ag b/parallel/pvm3/patches/patch-ag
index 0de7f4d998c..a25b3330acc 100644
--- a/parallel/pvm3/patches/patch-ag
+++ b/parallel/pvm3/patches/patch-ag
@@ -1,10 +1,10 @@
-$NetBSD: patch-ag,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- xep/Makefile.aimk.orig Fri Aug 7 00:47:14 1998
-+++ xep/Makefile.aimk Fri Aug 7 00:48:49 1998
-@@ -26,4 +26,4 @@
- XLIBS = -lXaw -lXmu -lXext -lXt -lX11
--XCFLAGS = -I/usr/local/X11R5/include -I/usr/local/X11/include \
-- -L/usr/local/X11R5/lib -L/usr/local/X11/lib
-+XCFLAGS = -I$(X11BASE)/include -Wl,-R$(X11BASE)/lib \
-+ -L$(X11BASE)/lib
+$NetBSD: patch-ag,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+--- ./src/task.c.orig Thu Jul 8 15:00:15 1999
++++ ./src/task.c Sun Oct 31 11:45:04 1999
+@@ -165,4 +165,5 @@
+
+ #ifdef NEEDMENDIAN
++#include <sys/types.h>
+ #include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-ah b/parallel/pvm3/patches/patch-ah
index 8907a25231a..0a8f81a2140 100644
--- a/parallel/pvm3/patches/patch-ah
+++ b/parallel/pvm3/patches/patch-ah
@@ -1,26 +1,10 @@
-$NetBSD: patch-ah,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- lib/pvmgetarch.orig Fri Aug 7 00:50:47 1998
-+++ lib/pvmgetarch Fri Aug 7 00:53:48 1998
-@@ -120,11 +120,13 @@
- if [ -f /netbsd ]; then
-- case "`/usr/bin/machine`" in
-- i386) ARCH=NETBSDI386 ;;
-- amiga) ARCH=NETBSDAMIGA ;;
-- hp300) ARCH=NETBSDHP300 ;;
-- mac68k) ARCH=NETBSDMAC68K ;;
-- pmax) ARCH=NETBSDPMAX ;;
-- sparc) ARCH=NETBSDSPARC ;;
-- sun3) ARCH=NETBSDSUN3 ;;
-- esac
-+ ARCH=NETBSD
-+# case "`/usr/bin/machine`" in
-+# i386) ARCH=NETBSDI386 ;;
-+# alpha) ARCH=NETBSDALPHA ;;
-+# amiga) ARCH=NETBSDAMIGA ;;
-+# hp300) ARCH=NETBSDHP300 ;;
-+# mac68k) ARCH=NETBSDMAC68K ;;
-+# pmax) ARCH=NETBSDPMAX ;;
-+# sparc) ARCH=NETBSDSPARC ;;
-+# sun3) ARCH=NETBSDSUN3 ;;
-+# esac
- elif [ -f /usr/bin/machine ]; then
+$NetBSD: patch-ah,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- ./src/tdpro.c.orig Thu Jul 8 15:00:16 1999
++++ ./src/tdpro.c Sun Oct 31 11:45:28 1999
+@@ -223,4 +223,5 @@
+
+ #ifdef NEEDMENDIAN
++#include <sys/types.h>
+ #include <machine/endian.h>
+ #endif
diff --git a/parallel/pvm3/patches/patch-ai b/parallel/pvm3/patches/patch-ai
index 9f825ed3eff..4eca27166b5 100644
--- a/parallel/pvm3/patches/patch-ai
+++ b/parallel/pvm3/patches/patch-ai
@@ -1,11 +1,31 @@
-$NetBSD: patch-ai,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- /dev/null Fri Aug 7 01:41:07 1998
-+++ conf/NETBSD.def Fri Aug 7 01:46:28 1998
-@@ -0,0 +1,7 @@
-+ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"$(LOCALBASE)/bin/ssh\" -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DLOCALBASE=\"$(LOCALBASE)\"
-+ARCHDLIB =
-+ARCHDOBJ =
-+ARCHLIB =
-+HASRANLIB = t
-+AR = ar
-+PVM_ARCH = NETBSD
+$NetBSD: patch-ai,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- ./src/pmsg.c.orig Thu Jul 8 15:00:05 1999
++++ ./src/pmsg.c Sun Oct 31 11:56:52 1999
+@@ -269,4 +269,18 @@
+
+ for (j = 0; j < n; j++)
++ if (j < n/2) {
++ if (p[n/2 - 1 - j ]
++ != thesigs[i].bytes[j])
++ break;
++ } else {
++ if (p[n + n/2 - 1 - j ]
++ != thesigs[i].bytes[j])
++ break;
++ }
++
++ if (j == n)
++ return ((1 << 4) | i) << o;
++
++ for (j = 0; j < n; j++)
+ if (p[n - 1 - j] != thesigs[i].bytes[j])
+ break;
+@@ -275,5 +289,6 @@
+ }
+ }
+- fprintf(stderr, "can't generate signature for my integer byte order\n");
++ fprintf(stderr,
++ "can't generate signature for my floating point byte order\n");
+ abort();
+ return 0;
diff --git a/parallel/pvm3/patches/patch-aj b/parallel/pvm3/patches/patch-aj
index c13c367c6bf..840430420fd 100644
--- a/parallel/pvm3/patches/patch-aj
+++ b/parallel/pvm3/patches/patch-aj
@@ -1,24 +1,13 @@
-$NetBSD: patch-aj,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- /dev/null Fri Aug 7 00:35:18 1998
-+++ conf/NETBSD.m4 Fri Aug 7 00:56:51 1998
-@@ -0,0 +1,20 @@
-+divert(-1)
-+undefine(`len')
-+#
-+# FORTRAN function names are in upper case
-+#
-+define(`FUNCTION',`translit($1,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)')
-+#
-+# FORTRAN character strings are passed as follows:
-+# XXX is this right?
-+# a pointer to the base of the string is passed in the normal
-+# argument list, and the length is passed by value as an extra
-+# argument, after all of the other arguments.
-+#
-+define(`ARGS',`($1`'undivert(1))')
-+define(`SAVE',`divert(1)$1`'divert(0)')
-+define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
-+define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
-+define(`STRING_LEN',`$1_len')
-+define(`STRING_PTR',`$1_ptr')
-+divert(0)
+$NetBSD: patch-aj,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- ./xep/Makefile.aimk.orig Fri Aug 29 10:17:48 1997
++++ ./xep/Makefile.aimk Sun Oct 31 11:47:13 1999
+@@ -25,6 +25,6 @@
+ LIBS = -l$(PVMLIB) $(ARCHLIB) $(OS2XEPLIBS)
+ XLIBS = -lXaw -lXmu -lXext -lXt -lX11
+-XCFLAGS = -I/usr/local/X11R5/include -I/usr/local/X11/include \
+- -L/usr/local/X11R5/lib -L/usr/local/X11/lib
++XCFLAGS = -I${X11BASE}/include \
++ -L${X11BASE}/lib -Wl,-R$(X11BASE)/lib
+
+ HEADERS = $(SDIR)/hostc.h $(SDIR)/imp.h $(SDIR)/myalloc.h \
diff --git a/parallel/pvm3/patches/patch-ak b/parallel/pvm3/patches/patch-ak
index 007cd7a6173..b08a3f65387 100644
--- a/parallel/pvm3/patches/patch-ak
+++ b/parallel/pvm3/patches/patch-ak
@@ -1,20 +1,11 @@
-$NetBSD: patch-ak,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- lib/pvm.orig Thu Aug 28 13:12:35 1997
-+++ lib/pvm Fri Aug 7 03:31:05 1998
-@@ -14,2 +14,4 @@
- #
-+PVM_ROOT=XXPKGXX
-+PVM_ARCH=NETBSD
-
-@@ -60,4 +62,4 @@
-
--if [ ! -f $PVM_ROOT/lib/$PVM_ARCH/pvm$sfx ]; then
-- echo "pvm: $PVM_ROOT/lib/$PVM_ARCH/pvm$sfx doesn't exist." >&2
-+if [ ! -f $PVM_ROOT/libexec/pvm$sfx ]; then
-+ echo "pvm: $PVM_ROOT/libexec/pvm$sfx doesn't exist." >&2
- echo "Make sure PVM is built and PVM_ROOT is set correctly" >&2
-@@ -66,3 +68,3 @@
- export PVM_ARCH
--exec $PVM_ROOT/lib/$PVM_ARCH/pvm$sfx $@
-+exec $PVM_ROOT/libexec/pvm$sfx $@
- exit 1
+$NetBSD: patch-ak,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- ./conf/NETBSDSPARC.def.orig Wed Oct 7 11:48:38 1998
++++ ./conf/NETBSDSPARC.def Mon Nov 8 08:25:25 1999
+@@ -1,4 +1,4 @@
+-ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"/usr/bin/rsh\" \
+- -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
+ ARCHDLIB =
+ ARCHDOBJ =
diff --git a/parallel/pvm3/patches/patch-al b/parallel/pvm3/patches/patch-al
index 8e472050943..c6efd8d6cfc 100644
--- a/parallel/pvm3/patches/patch-al
+++ b/parallel/pvm3/patches/patch-al
@@ -1,19 +1,17 @@
-$NetBSD: patch-al,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- lib/pvmd.orig Thu Aug 28 13:13:16 1997
-+++ lib/pvmd Fri Aug 7 03:31:27 1998
-@@ -15,2 +15,5 @@
-
-+PVM_ROOT=XXPKGXX
-+PVM_ARCH=NETBSD
-+
- case "x$PVM_ROOT" in x )
-@@ -81,3 +84,3 @@
-
--if [ ! -f $PVM_ROOT/lib/$PVM_ARCH/pvmd3$sfx ]; then
-+if [ ! -f $PVM_ROOT/libexec/pvmd3$sfx ]; then
- echo "pvmd: $PVM_ROOT/lib/$PVM_ARCH/pvmd3$sfx doesn't exist." >&2
-@@ -86,3 +89,3 @@
- fi
--exec $PVM_ROOT/lib/$PVM_ARCH/pvmd3$sfx $@
-+exec $PVM_ROOT/libexec/pvmd3$sfx $@
- exit 1
+$NetBSD: patch-al,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- ./conf/NETBSDSPARC.m4.orig Mon Sep 23 16:18:02 1996
++++ ./conf/NETBSDSPARC.m4 Mon Nov 1 08:58:05 1999
+@@ -2,10 +2,9 @@
+ undefine(`len')
+ #
+-# FORTRAN function names are in upper case
++# append an underscore to FORTRAN function names
+ #
+-define(`FUNCTION',`translit($1,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)')
++define(`FUNCTION',`$1_')
+ #
+ # FORTRAN character strings are passed as follows:
+-# XXX is this right?
+ # a pointer to the base of the string is passed in the normal
+ # argument list, and the length is passed by value as an extra
diff --git a/parallel/pvm3/patches/patch-am b/parallel/pvm3/patches/patch-am
index 2ef9830e670..b60ad225f21 100644
--- a/parallel/pvm3/patches/patch-am
+++ b/parallel/pvm3/patches/patch-am
@@ -1,18 +1,15 @@
-$NetBSD: patch-am,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/global.h.orig Fri Aug 7 01:36:40 1998
-+++ src/global.h Fri Aug 7 01:38:54 1998
-@@ -232,3 +232,3 @@
- #ifndef DEFBINDIR
--#define DEFBINDIR "$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH"
-+#define DEFBINDIR LOCALBASE "/libexec"
- #endif
-@@ -243,3 +243,3 @@
- #else
--#define PVMDFILE "lib/pvmd"
-+#define PVMDFILE LOCALBASE "/bin/pvmd"
- #endif
-@@ -248,3 +248,3 @@
- #ifndef PVMDPATH
--#define PVMDPATH "$PVM_ROOT/lib/pvmd"
-+#define PVMDPATH LOCALBASE "/bin/pvmd"
- #endif
+$NetBSD: patch-am,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDALPHA.def Mon Nov 1 16:54:59 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDALPHA
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-an b/parallel/pvm3/patches/patch-an
index 981c70704ac..42fe10ce507 100644
--- a/parallel/pvm3/patches/patch-an
+++ b/parallel/pvm3/patches/patch-an
@@ -1,8 +1,24 @@
-$NetBSD: patch-an,v 1.1.1.1 1998/10/13 23:31:04 garbled Exp $
---- src/host.c.orig Fri Aug 7 03:15:36 1998
-+++ src/host.c Fri Aug 7 03:16:05 1998
-@@ -877,3 +877,3 @@
-
--#ifdef SIOCGIFCONF
-+#if defined(SIOCGIFCONF) && !defined(__NetBSD__)
+$NetBSD: patch-an,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDALPHA.m4 Mon Nov 1 16:55:01 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-ao b/parallel/pvm3/patches/patch-ao
index 9d47abb1b19..cb12a86930d 100644
--- a/parallel/pvm3/patches/patch-ao
+++ b/parallel/pvm3/patches/patch-ao
@@ -1,33 +1,15 @@
-$NetBSD: patch-ao,v 1.1 1998/10/29 05:15:10 garbled Exp $
---- src/pmsg.c.orig Tue Mar 10 12:32:31 1998
-+++ src/pmsg.c Wed Oct 28 11:23:53 1998
-@@ -252,13 +252,28 @@
- return ((3 << 4) | i) << o;
+$NetBSD: patch-ao,v 1.2 1999/11/23 16:05:31 dmcmahill Exp $
- for (j = 0; j < n; j++)
-+ if (j < n/2) {
-+ if (p[n/2 - 1 - j ]
-+ != thesigs[i].bytes[j])
-+ break;
-+ } else {
-+ if (p[n + n/2 - 1 - j ]
-+ != thesigs[i].bytes[j])
-+ break;
-+ }
-+
-+ if (j == n)
-+ return ((1 << 4) | i) << o;
-+
-+ for (j = 0; j < n; j++)
- if (p[n - 1 - j] != thesigs[i].bytes[j])
- break;
- if (j == n)
- return i << o;
- }
- }
-- fprintf(stderr, "can't generate signature for my integer byte order\n");
-+ fprintf(stderr,
-+ "can't generate signature for my floating point byte order\n");
- abort();
- return 0;
- }
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDARM32.def Mon Nov 1 16:55:03 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDARM32
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-ap b/parallel/pvm3/patches/patch-ap
new file mode 100644
index 00000000000..c30d75a3608
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ap
@@ -0,0 +1,24 @@
+$NetBSD: patch-ap,v 1.1 1999/11/23 16:05:31 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDARM32.m4 Mon Nov 1 16:55:05 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-aq b/parallel/pvm3/patches/patch-aq
new file mode 100644
index 00000000000..c06ba090577
--- /dev/null
+++ b/parallel/pvm3/patches/patch-aq
@@ -0,0 +1,11 @@
+$NetBSD: patch-aq,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- ./conf/NETBSDI386.def.orig Wed Oct 7 11:48:36 1998
++++ ./conf/NETBSDI386.def Mon Nov 1 16:55:07 1999
+@@ -1,4 +1,4 @@
+-ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"/usr/bin/rsh\" \
+- -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
+ ARCHDLIB =
+ ARCHDOBJ =
diff --git a/parallel/pvm3/patches/patch-ar b/parallel/pvm3/patches/patch-ar
new file mode 100644
index 00000000000..acf62a54777
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ar
@@ -0,0 +1,17 @@
+$NetBSD: patch-ar,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- ./conf/NETBSDI386.m4.orig Mon Sep 23 16:17:58 1996
++++ ./conf/NETBSDI386.m4 Mon Nov 1 16:55:09 1999
+@@ -2,10 +2,9 @@
+ undefine(`len')
+ #
+-# FORTRAN function names are in upper case
++# append an underscore to FORTRAN function names
+ #
+-define(`FUNCTION',`translit($1,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ)')
++define(`FUNCTION',`$1_')
+ #
+ # FORTRAN character strings are passed as follows:
+-# XXX is this right?
+ # a pointer to the base of the string is passed in the normal
+ # argument list, and the length is passed by value as an extra
diff --git a/parallel/pvm3/patches/patch-as b/parallel/pvm3/patches/patch-as
new file mode 100644
index 00000000000..8838a292d9c
--- /dev/null
+++ b/parallel/pvm3/patches/patch-as
@@ -0,0 +1,15 @@
+$NetBSD: patch-as,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDM68K.def Mon Nov 1 16:55:11 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDM68K
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-at b/parallel/pvm3/patches/patch-at
new file mode 100644
index 00000000000..7e5bd26909d
--- /dev/null
+++ b/parallel/pvm3/patches/patch-at
@@ -0,0 +1,24 @@
+$NetBSD: patch-at,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDM68K.m4 Mon Nov 1 16:55:13 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-au b/parallel/pvm3/patches/patch-au
new file mode 100644
index 00000000000..0e62d070920
--- /dev/null
+++ b/parallel/pvm3/patches/patch-au
@@ -0,0 +1,15 @@
+$NetBSD: patch-au,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDMIPSEB.def Mon Nov 1 16:55:15 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDMIPSEB
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-av b/parallel/pvm3/patches/patch-av
new file mode 100644
index 00000000000..fc7721da4fb
--- /dev/null
+++ b/parallel/pvm3/patches/patch-av
@@ -0,0 +1,24 @@
+$NetBSD: patch-av,v 1.1 1999/11/23 16:05:32 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDMIPSEB.m4 Mon Nov 1 16:55:17 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-aw b/parallel/pvm3/patches/patch-aw
new file mode 100644
index 00000000000..484c11e9505
--- /dev/null
+++ b/parallel/pvm3/patches/patch-aw
@@ -0,0 +1,15 @@
+$NetBSD: patch-aw,v 1.1 1999/11/23 16:05:33 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDMIPSEL.def Mon Nov 1 16:55:19 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDMIPSEL
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-ax b/parallel/pvm3/patches/patch-ax
new file mode 100644
index 00000000000..7f7588b21e3
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ax
@@ -0,0 +1,24 @@
+$NetBSD: patch-ax,v 1.1 1999/11/23 16:05:33 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDMIPSEL.m4 Mon Nov 1 16:55:21 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-ay b/parallel/pvm3/patches/patch-ay
new file mode 100644
index 00000000000..4d81c1a5b3f
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ay
@@ -0,0 +1,15 @@
+$NetBSD: patch-ay,v 1.1 1999/11/23 16:05:33 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDNS32K.def Mon Nov 1 16:55:23 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDNS32K
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-az b/parallel/pvm3/patches/patch-az
new file mode 100644
index 00000000000..e35f4ec1b87
--- /dev/null
+++ b/parallel/pvm3/patches/patch-az
@@ -0,0 +1,24 @@
+$NetBSD: patch-az,v 1.1 1999/11/23 16:05:34 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDNS32K.m4 Mon Nov 1 16:55:25 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-ba b/parallel/pvm3/patches/patch-ba
new file mode 100644
index 00000000000..acf8a177bbd
--- /dev/null
+++ b/parallel/pvm3/patches/patch-ba
@@ -0,0 +1,15 @@
+$NetBSD: patch-ba,v 1.1 1999/11/23 16:05:34 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDPOWERPC.def Mon Nov 1 16:55:27 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDPOWERPC
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bb b/parallel/pvm3/patches/patch-bb
new file mode 100644
index 00000000000..7faa3604baf
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bb
@@ -0,0 +1,24 @@
+$NetBSD: patch-bb,v 1.1 1999/11/23 16:05:36 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDPOWERPC.m4 Mon Nov 1 16:55:29 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bc b/parallel/pvm3/patches/patch-bc
new file mode 100644
index 00000000000..5857024d97b
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bc
@@ -0,0 +1,15 @@
+$NetBSD: patch-bc,v 1.1 1999/11/23 16:05:36 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDSH3.def Mon Nov 1 16:55:31 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDSH3
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bd b/parallel/pvm3/patches/patch-bd
new file mode 100644
index 00000000000..5099bf7a742
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bd
@@ -0,0 +1,24 @@
+$NetBSD: patch-bd,v 1.1 1999/11/23 16:05:37 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDSH3.m4 Mon Nov 1 16:55:33 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-be b/parallel/pvm3/patches/patch-be
new file mode 100644
index 00000000000..946b57d0170
--- /dev/null
+++ b/parallel/pvm3/patches/patch-be
@@ -0,0 +1,15 @@
+$NetBSD: patch-be,v 1.1 1999/11/23 16:05:37 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDSPARC64.def Mon Nov 1 16:55:35 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDSPARC64
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bf b/parallel/pvm3/patches/patch-bf
new file mode 100644
index 00000000000..2fcbad09d91
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bf
@@ -0,0 +1,24 @@
+$NetBSD: patch-bf,v 1.1 1999/11/23 16:05:37 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDSPARC64.m4 Mon Nov 1 16:55:37 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)
diff --git a/parallel/pvm3/patches/patch-bg b/parallel/pvm3/patches/patch-bg
new file mode 100644
index 00000000000..6c9a4a2cc19
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bg
@@ -0,0 +1,15 @@
+$NetBSD: patch-bg,v 1.1 1999/11/23 16:05:37 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDVAX.def Mon Nov 1 16:55:39 1999
+@@ -0,0 +1,10 @@
++ARCHCFLAGS = -DSOCKADHASLEN -DRSHCOMMAND=\"${LOCALBASE}/bin/ssh\" \
++ -DHASERRORVARS -DNOREXEC -DNEEDMENDIAN -DSYSERRISCONST
++ARCHDLIB =
++ARCHDOBJ =
++ARCHLIB =
++HASRANLIB = t
++AR = ar
++PVM_ARCH = NETBSDVAX
++MAKE = make
++#MAKE = gmake
diff --git a/parallel/pvm3/patches/patch-bh b/parallel/pvm3/patches/patch-bh
new file mode 100644
index 00000000000..edca0f9c394
--- /dev/null
+++ b/parallel/pvm3/patches/patch-bh
@@ -0,0 +1,24 @@
+$NetBSD: patch-bh,v 1.1 1999/11/23 16:05:37 dmcmahill Exp $
+
+--- /dev/null Mon Nov 1 14:10:37 1999
++++ ./conf/NETBSDVAX.m4 Mon Nov 1 16:55:41 1999
+@@ -0,0 +1,19 @@
++divert(-1)
++undefine(`len')
++#
++# append an underscore to FORTRAN function names
++#
++define(`FUNCTION',`$1_')
++#
++# FORTRAN character strings are passed as follows:
++# a pointer to the base of the string is passed in the normal
++# argument list, and the length is passed by value as an extra
++# argument, after all of the other arguments.
++#
++define(`ARGS',`($1`'undivert(1))')
++define(`SAVE',`divert(1)$1`'divert(0)')
++define(`STRING_ARG',`$1_ptr`'SAVE(`, $1_len')')
++define(`STRING_ARG_DECL',`char * $1_ptr; int $1_len')
++define(`STRING_LEN',`$1_len')
++define(`STRING_PTR',`$1_ptr')
++divert(0)