summaryrefslogtreecommitdiff
path: root/net/arla/patches
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>2003-01-14 12:00:08 +0000
committerwennmach <wennmach@pkgsrc.org>2003-01-14 12:00:08 +0000
commit27f579f1db0f63555a07cd35cedf4916887af07d (patch)
tree2c135e18cae50f19d8460b73adb5cca190f53827 /net/arla/patches
parenta1a69784ca52f48ee39440a8f1026ca807f9459d (diff)
downloadpkgsrc-27f579f1db0f63555a07cd35cedf4916887af07d.tar.gz
Update arla to 0.35.12pre1.
Prior versions had two major bugs that could lead to kernel panics on NetBSD-1.6 and -current. mmap(2)ing a file residing beneath /afs would trigger the panic. Thanks to Love <lha@stacken.kth.se> for preparing the snapshot.
Diffstat (limited to 'net/arla/patches')
-rw-r--r--net/arla/patches/patch-ah35
-rw-r--r--net/arla/patches/patch-ak46
-rw-r--r--net/arla/patches/patch-bt18
3 files changed, 13 insertions, 86 deletions
diff --git a/net/arla/patches/patch-ah b/net/arla/patches/patch-ah
index 8a7ad9b1905..4c136a83603 100644
--- a/net/arla/patches/patch-ah
+++ b/net/arla/patches/patch-ah
@@ -1,45 +1,36 @@
-$NetBSD: patch-ah,v 1.2 2000/08/15 16:08:25 wennmach Exp $
+$NetBSD: patch-ah,v 1.3 2003/01/14 12:00:09 wennmach Exp $
Install xfs_mod.o into $(lkmdir), not $(bindir).
Do not strip xfs_mod.o while installing it.
---- xfs/bsd/Makefile.in.orig Thu Jun 22 04:24:42 2000
-+++ xfs/bsd/Makefile.in Wed Aug 9 16:09:04 2000
-@@ -18,6 +18,7 @@
+--- xfs/bsd/Makefile.in.orig Fri Jan 10 14:18:09 2003
++++ xfs/bsd/Makefile.in Fri Jan 10 14:22:48 2003
+@@ -19,6 +19,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
-+INSTALL_LKM = ${INSTALL_PROGRAM:C/-s//}
++INSTALL_LKMD = ${INSTALL_PROGRAM:C/-s//}
INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
-@@ -26,6 +27,7 @@
+@@ -27,6 +28,7 @@
libdir = @libdir@
libexecdir = @libexecdir@
bindir = @bindir@
-+lkmdir = $(exec_prefix)/lkm
++lkmdir = $(exec_prefix)/lkm
transform = @program_transform_name@
EXECSUFFIX = @EXECSUFFIX@
-@@ -111,10 +113,10 @@
- ./bin/umount_xfs /afs
+@@ -117,10 +119,10 @@
+ $(INSTALL_DATA) Info.plist $(KEXTDIR)/Contents
- install: all
+ install-bsd:
- $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
+ $(MKINSTALLDIRS) $(DESTDIR)$(lkmdir)
PROG_BIN='$(XFS_BIN)'; for x in $$PROG_BIN; do \
f=`echo $$x | sed '$(transform)'`; \
- $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
-+ $(INSTALL_LKM) $$x $(DESTDIR)$(lkmdir)/$$f; \
++ $(INSTALL_LKMD) $$x $(DESTDIR)$(lkmdir)/$$f; \
done
- for i in lkm subsys modules; do \
- if test -d /$$i; then \
-@@ -126,7 +128,7 @@
- uninstall:
- PROG_BIN='$(XFS_BIN)'; for x in $$PROG_BIN; do \
- f=`echo $$x | sed '$(transform)'`; \
-- rm -f $(DESTDIR)$(bindir)/$$f; \
-+ rm -f $(DESTDIR)$(lkmdir)/$$f; \
- done
- for i in lkm subsys modules; do \
- if test -d /$$i; then \
+
+ install: all $(INSTALL_LKM)
diff --git a/net/arla/patches/patch-ak b/net/arla/patches/patch-ak
deleted file mode 100644
index 85f4e22725e..00000000000
--- a/net/arla/patches/patch-ak
+++ /dev/null
@@ -1,46 +0,0 @@
-$NetBSD: patch-ak,v 1.4 2002/10/07 19:01:25 wennmach Exp $
-
-Make arla work on -current (post NetBSD 1.6).
-
-Do not print a cryptic message after xfs_mod has been modloaded, say it
-in clear text.
-
---- xfs/bsd/xfs_wrap-bsd.c.~1.33.~ Mon Sep 30 21:58:30 2002
-+++ xfs/bsd/xfs_wrap-bsd.c Mon Sep 30 22:22:24 2002
-@@ -31,6 +31,8 @@
- * SUCH DAMAGE.
- */
-
-+#include <arla-version.h>
-+
- #include <xfs/xfs_locl.h>
- #include <xfs/xfs_message.h>
- #include <xfs/xfs_fs.h>
-@@ -205,7 +207,9 @@
- #elif defined(__FreeBSD__)
- MOD_DEV(xfs,LM_DT_CHAR,-1,&xfs_dev);
- #else
--#if !defined(__APPLE__)
-+#if __NetBSD_Version__ >= 106080000
-+MOD_DEV("xfs_mod","xfs_mod", NULL, -1, &xfs_dev, -1)
-+#elif !defined(__APPLE__)
- MOD_DEV("xfs_mod",LM_DT_CHAR,-1,&xfs_dev)
- #endif
- #endif
-@@ -302,8 +306,14 @@
- }
- ret = lkmdispatch(lkmtp, cmd);
- if(cmd == LKM_E_LOAD) {
-+#if __NetBSD_Version__ >= 106080000
-+ xfs_dev_major = _module.lkm_cdevmaj;
-+#else
- xfs_dev_major = _module.lkm_offset;
-- printf ("xfs: cdev: %d, syscall: %d\n",
-+#endif
-+ printf ("xfs (%s): "
-+ "using cdev: %d, syscall: %d\n",
-+ arla_version,
- xfs_dev_major, xfs_syscall_num);
- }
- return ret;
-
diff --git a/net/arla/patches/patch-bt b/net/arla/patches/patch-bt
deleted file mode 100644
index 241f55c99b0..00000000000
--- a/net/arla/patches/patch-bt
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-bt,v 1.2 2002/12/23 18:28:20 cjep Exp $
-
-Fix a problem with VOP_PUTPAGES on NetBSD-1.6. From Love <lha@netbsd.org>.
-
-diff -u -u -w -r1.87.2.8 -r1.87.2.9
---- xfs/bsd/xfs_vnodeops-bsd.c 2002/08/02 07:46:57 1.87.2.8
-+++ xfs/bsd/xfs_vnodeops-bsd.c 2002/09/22 15:25:40 1.87.2.9
-@@ -974,6 +974,9 @@
-
- XFSDEB(XDEBVNOPS, ("xfs_putpages\n"));
-
-+ if (t == NULL)
-+ return 0;
-+
- xn->flags |= XFS_DATA_DIRTY;
-
- #ifdef HAVE_STRUCT_VOP_PUTPAGES_ARGS_A_SYNC /* FreeBSD-style */
-