pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel/mpi-ch make this build on -current again (sta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ea288561414
branches:  trunk
changeset: 476980:4ea288561414
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Jun 24 17:31:43 2004 +0000

description:
make this build on -current again (statfs->statvfs)

diffstat:

 parallel/mpi-ch/distinfo         |   3 +-
 parallel/mpi-ch/patches/patch-ca |  52 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletions(-)

diffs (70 lines):

diff -r 6305d5f2e33f -r 4ea288561414 parallel/mpi-ch/distinfo
--- a/parallel/mpi-ch/distinfo  Thu Jun 24 17:27:26 2004 +0000
+++ b/parallel/mpi-ch/distinfo  Thu Jun 24 17:31:43 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2003/12/03 21:06:17 jschauma Exp $
+$NetBSD: distinfo,v 1.7 2004/06/24 17:31:43 drochner Exp $
 
 SHA1 (mpich-1.2.5.2.tar.gz) = a767e56bab24d08a13903493e627e987e1685f50
 Size (mpich-1.2.5.2.tar.gz) = 12383519 bytes
@@ -24,3 +24,4 @@
 SHA1 (patch-bc) = e89bbf9e1ef9f2aaa6b8000d170c5a158408988d
 SHA1 (patch-bd) = 7c96f575263fbe9adc0514ed64452db04cc68212
 SHA1 (patch-be) = d21a703dbe17a48fb940ce65fd232284a57ff3cf
+SHA1 (patch-ca) = 0fdb9a96df57bb8268d6d4e62e06794248cdbcf1
diff -r 6305d5f2e33f -r 4ea288561414 parallel/mpi-ch/patches/patch-ca
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/mpi-ch/patches/patch-ca  Thu Jun 24 17:31:43 2004 +0000
@@ -0,0 +1,52 @@
+$NetBSD: patch-ca,v 1.1 2004/06/24 17:32:14 drochner Exp $
+
+--- romio/adio/common/ad_fstype.c.orig 2002-12-04 00:38:23.000000000 +0100
++++ romio/adio/common/ad_fstype.c
+@@ -12,7 +12,15 @@
+ 
+ #include "adio.h"
+ 
+-#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY))
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Version__ >= 200040000
++#define NETBSD_STATVFS
++#define f_basetype f_fstypename
++#endif
++#endif
++
++#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY) || defined(NETBSD_STATVFS))
+ #include <sys/statvfs.h>
+ #endif
+ #ifdef LINUX
+@@ -143,10 +151,10 @@ static void ADIO_FileSysType_fncall(char
+     char *dir;
+     int err;
+ #endif
+-#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY))
++#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY) || defined(NETBSD_STATVFS))
+     struct statvfs vfsbuf;
+ #endif
+-#if (defined(LINUX) || defined(FREEBSD) || defined(tflops))
++#if (defined(LINUX) || defined(FREEBSD) || defined(tflops)) && !defined(NETBSD_STATVFS)
+     struct statfs fsbuf;
+ #endif
+ #ifdef PARAGON
+@@ -158,7 +166,7 @@ static void ADIO_FileSysType_fncall(char
+ 
+     *error_code = MPI_SUCCESS;
+ 
+-#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY))
++#if (defined(HPUX) || defined(SPPUX) || defined(IRIX) || defined(SOLARIS) || defined(AIX) || defined(DEC) || defined(CRAY) || defined(NETBSD_STATVFS))
+     do {
+       err = statvfs(filename, &vfsbuf);
+     } while (err && (errno == ESTALE));
+@@ -207,7 +215,7 @@ static void ADIO_FileSysType_fncall(char
+ # endif
+       else *fstype = ADIO_UFS;
+     }
+-#elif (defined(FREEBSD) && defined(HAVE_MOUNT_NFS))
++#elif (defined(FREEBSD) && defined(HAVE_MOUNT_NFS)) && !defined(NETBSD_STATVFS)
+     do {
+       err = statfs(filename, &fsbuf);
+     } while (err && (errno == ESTALE));



Home | Main Index | Thread Index | Old Index