pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/coda Added a patch for NetBSD >= 4.99.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1364387d26a5
branches:  trunk
changeset: 535999:1364387d26a5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 30 23:55:39 2007 +0000

description:
Added a patch for NetBSD >= 4.99.

diffstat:

 net/coda/distinfo         |   3 ++-
 net/coda/patches/patch-ac |  28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r e8ccc845f0a9 -r 1364387d26a5 net/coda/distinfo
--- a/net/coda/distinfo Fri Nov 30 22:53:54 2007 +0000
+++ b/net/coda/distinfo Fri Nov 30 23:55:39 2007 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2007/08/06 12:31:25 gdt Exp $
+$NetBSD: distinfo,v 1.3 2007/11/30 23:55:39 rillig Exp $
 
 SHA1 (coda-6.9.2.tar.gz) = 47e71299d04dbb9e03f9f5a7101933679b1cb316
 RMD160 (coda-6.9.2.tar.gz) = 4cdf2ad53333359d39793147daee865b22b38993
 Size (coda-6.9.2.tar.gz) = 1650937 bytes
 SHA1 (patch-aa) = f9cb4a72a4ff72020ba52382481811fe71931ab2
 SHA1 (patch-ab) = 07675cfb2eb7ebe40609338368ca7df813a7d5dd
+SHA1 (patch-ac) = 26fe8979c87fd1ccbee03eaffa61f528deffae82
diff -r e8ccc845f0a9 -r 1364387d26a5 net/coda/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/coda/patches/patch-ac Fri Nov 30 23:55:39 2007 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1 2007/11/30 23:55:39 rillig Exp $
+
+Added experimental code to support mounting on NetBSD >= 4.99. The magic
+value of 256 is taken from coda_vfsops in coda_vfsops.c.
+
+--- coda-src/venus/worker.cc.orig      2007-08-01 18:32:29.000000000 +0000
++++ coda-src/venus/worker.cc   2007-11-30 23:12:18.000000000 +0000
+@@ -367,11 +367,19 @@ void VFSMount()
+           error = nmount(md, 6, 0);
+       }
+ #endif
+-                      
++
++#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,0)
++      if (error < 0)
++          error = mount("coda", venusRoot, 0, kernDevice, 256);
++      if (error < 0)
++          error = mount("cfs", venusRoot, 0, kernDevice, 256);
++#else
+       if (error < 0)
+           error = mount("coda", venusRoot, 0, kernDevice);
+       if (error < 0)
+           error = mount("cfs", venusRoot, 0, kernDevice);
++#endif
++
+ #if defined(__FreeBSD__) && !defined(__FreeBSD_version)
+ #define MOUNT_CFS 19
+       if (error < 0)



Home | Main Index | Thread Index | Old Index