Fri Aug 3 10:32:55 2012 UTC ()
net/coda: Back out DragonFly patches

Coda requires a kernel module to run and DragonFly had such a kernel at
one point.  However the kernel was removed six years ago and there is no
desire to restore it.  One of the main reasons against doing so is the
lack of IPv6 support in Coda.

The userland patches for coda are therefore unnecessary and coda has been
reverted to its previous state save for marking NOT-FOR-DRAGONFLY.

PKGREVISION was mispelled in the makefile, so fixing that typo bumps the
revision to nb2 (caught by pkglint).


(marino)
diff -r1.13 -r1.14 pkgsrc/net/coda/Makefile
diff -r1.9 -r1.10 pkgsrc/net/coda/distinfo
diff -r1.5 -r1.6 pkgsrc/net/coda/patches/patch-ac
diff -r1.1 -r0 pkgsrc/net/coda/patches/patch-coda-src_kerndep_pioctl.h
diff -r1.1 -r0 pkgsrc/net/coda/patches/patch-coda-src_venus_venusrecov.cc
diff -r1.1 -r0 pkgsrc/net/coda/patches/patch-config.h.in
diff -r1.2 -r0 pkgsrc/net/coda/patches/patch-coda-src_resolution_rename.cc

cvs diff -r1.13 -r1.14 pkgsrc/net/coda/Makefile (expand / switch to context diff)
--- pkgsrc/net/coda/Makefile 2012/07/22 03:20:03 1.13
+++ pkgsrc/net/coda/Makefile 2012/08/03 10:32:54 1.14
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2012/07/22 03:20:03 dholland Exp $
+# $NetBSD: Makefile,v 1.14 2012/08/03 10:32:54 marino Exp $
 #
 
 DISTNAME=	coda-6.9.5
-PKGEREVISION=	3
+PKGREVISION=	3
 CATEGORIES=	net
 MASTER_SITES=	http://www.coda.cs.cmu.edu/pub/coda/src/
 
@@ -13,6 +13,7 @@
 LICENSE=	gnu-gpl-v2
 
 PKG_DESTDIR_SUPPORT=	user-destdir
+NOT_FOR_PLATFORM+=	DragonFly-*-*
 
 # See http://coda.wikidev.net/Quick_Client_Action for hints on how
 # to configure venus.

cvs diff -r1.9 -r1.10 pkgsrc/net/coda/distinfo (expand / switch to context diff)
--- pkgsrc/net/coda/distinfo 2012/07/22 03:20:03 1.9
+++ pkgsrc/net/coda/distinfo 2012/08/03 10:32:54 1.10
@@ -1,12 +1,8 @@
-$NetBSD: distinfo,v 1.9 2012/07/22 03:20:03 dholland Exp $
+$NetBSD: distinfo,v 1.10 2012/08/03 10:32:54 marino Exp $
 
 SHA1 (coda-6.9.5.tar.gz) = 248af27c506f5c3be4c4e53f821c9c904580fe60
 RMD160 (coda-6.9.5.tar.gz) = 9ef0643aacc7d1352ef253af00d4c7e6ad9e1f78
 Size (coda-6.9.5.tar.gz) = 1723098 bytes
-SHA1 (patch-ac) = 1084fe8c5dc26500bb13fdb492d1613e1e112f6e
+SHA1 (patch-ac) = b9f9fd68c633e09717252562b06238b87df1a6b7
 SHA1 (patch-ad) = adfee7c5d7de913ee3b898a13bf7acfeac52b765
 SHA1 (patch-coda-src_dir_dirbody.c) = 3e3524a4a03ce359956ae00d9b24d1aa3292c752
-SHA1 (patch-coda-src_kerndep_pioctl.h) = d6e477b14e76492de0a800d07d83dad06aac1aa3
-SHA1 (patch-coda-src_resolution_rename.cc) = 63895308b981a5fceeb8142db750ba7e3c2b7142
-SHA1 (patch-coda-src_venus_venusrecov.cc) = 25e1e10aed36569aa7c336876c98bda648e4b7e2
-SHA1 (patch-config.h.in) = 38e4118aa34c4f415b5fd4d8b7867af2d716ea83

cvs diff -r1.5 -r1.6 pkgsrc/net/coda/patches/Attic/patch-ac (expand / switch to context diff)
--- pkgsrc/net/coda/patches/Attic/patch-ac 2012/07/15 17:39:17 1.5
+++ pkgsrc/net/coda/patches/Attic/patch-ac 2012/08/03 10:32:55 1.6
@@ -1,44 +1,16 @@
-$NetBSD: patch-ac,v 1.5 2012/07/15 17:39:17 marino Exp $
+$NetBSD: patch-ac,v 1.6 2012/08/03 10:32:55 marino Exp $
 
 Added experimental code to support mounting on NetBSD >= 4.99.24. The
 magic value of 256 is taken from coda_vfsops in coda_vfsops.c.
 
 --- coda-src/venus/worker.cc.orig	2008-10-06 16:52:22.000000000 +0000
 +++ coda-src/venus/worker.cc
-@@ -53,6 +53,10 @@ extern "C" {
- #include <sys/param.h>
- #endif
- 
-+#ifdef  __DragonFly__
-+#include <sys/param.h>
-+#endif
-+
- #ifdef __linux__
- #if !defined(__GLIBC__) || __GLIBC__ < 2
- #include <linux/fs.h>
-@@ -84,6 +88,10 @@ extern "C" {
- #define __BSD44__
- #endif
- 
-+#if defined(__DragonFly__)
-+#define __BSD44__
-+#endif
-+
- /* interfaces */
- /* from vicedep */
- #include <venusioctl.h>
-@@ -403,11 +411,26 @@ void VFSMount()
+@@ -403,11 +403,19 @@ void VFSMount()
  	    error = nmount(md, 6, 0);
  	}
  #endif
 -			
 +
-+#if defined(__DragonFly__)
-+	if (error < 0)
-+	    error = mount("coda", venusRoot, 0, (void *)kernDevice);
-+	if (error < 0)
-+	    error = mount("cfs", venusRoot, 0, (void *)kernDevice);
-+#else
 +#if defined(__NetBSD__) && defined(__NetBSD_Prereq__) && __NetBSD_Prereq__(4,99,24)
 +	if (error < 0)
 +	    error = mount("coda", venusRoot, 0, (void *)kernDevice, 256);
@@ -49,7 +21,6 @@
  	    error = mount("coda", venusRoot, 0, kernDevice);
  	if (error < 0)
  	    error = mount("cfs", venusRoot, 0, kernDevice);
-+#endif
 +#endif
 +
  #if defined(__FreeBSD__) && !defined(__FreeBSD_version)

File Deleted: pkgsrc/net/coda/patches/Attic/patch-coda-src_kerndep_pioctl.h

File Deleted: pkgsrc/net/coda/patches/Attic/patch-coda-src_venus_venusrecov.cc

File Deleted: pkgsrc/net/coda/patches/Attic/patch-config.h.in

File Deleted: pkgsrc/net/coda/patches/Attic/patch-coda-src_resolution_rename.cc