--- /tmp/fsck.cramfs.c	2005-09-09 10:24:53.659608144 +0300
+++ util-linux-2.12p/disk-utils/fsck.cramfs.c	2005-09-09 10:24:12.901804272 +0300
@@ -95,7 +95,7 @@
 static unsigned long read_buffer_block = ~0UL;
 
 /* Uncompressing data structures... */
-static char outbuffer[PAGE_CACHE_SIZE*2];
+static char *outbuffer = NULL;
 z_stream stream;
 
 #endif /* INCLUDE_FS_TESTS */
@@ -493,6 +493,9 @@
 		usage(16);
 	filename = argv[optind];
 
+        outbuffer = (char*) malloc(PAGE_CACHE_SIZE*2);
+
+        
 	/* find the physical size of the file or block device */
 	if (lstat(filename, &st) < 0) {
 		perror(filename);

--- util-linux-2.12p.orig/debian/patches/10sparcumount.dpatch
+++ util-linux-2.12p/debian/patches/10sparcumount.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10sparcumount.dpatch by Jeff Bailey <jbailey@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Sparc and Arm have umount2 in glibc.
+
+@DPATCH@
+--- util-linux/mount/umount.c  2005-05-20 11:39:07.000000000 +0000
++++ util-linux/mount/umount.c  2005-05-20 11:39:15.000000000 +0000
+@@ -31,7 +31,7 @@
+ #include <arpa/inet.h>
+ #endif
+ 
+-#if defined(MNT_FORCE) && !defined(__sparc__) && !defined(__arm__)
++#if defined(MNT_FORCE) 
+ /* Interesting ... it seems libc knows about MNT_FORCE and presumably
+    about umount2 as well -- need not do anything */
+ #else /* MNT_FORCE */

--- /tmp/00list 2005-09-27 17:04:17.000000000 +0300
+++ util-linux-2.12p/debian/patches/00list      2005-09-27 17:04:29.000000000 +0300
@@ -6,5 +6,6 @@
 10license.dpatch
 10misc.dpatch
 10mount.dpatch
+10sparcumount.dpatch
 #20xgethostname.dpatch
 #50hurd.dpatch

--- /tmp/control	2006-10-25 21:37:33.000000000 +0300
+++ util-linux-2.12p/debian/control	2006-10-25 21:38:09.000000000 +0300
@@ -34,7 +34,7 @@
  messages in other languages than English.
 
 Package: mount
-Architecture: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc sh s390 sparc sparc64
+Architecture: alpha amd64 arm armel hppa i386 ia64 m68k mips mipsel powerpc sh s390 sparc sparc64
 Essential: yes
 Pre-Depends: ${mount:Depends}
 Description: Tools for mounting and manipulating filesystems
@@ -54,7 +54,7 @@
  Included are: logger, renice, replay, script, wall
 
 Package: fdisk-udeb
-Architecture: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc hurd-i386 sparc s390
+Architecture: alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc hurd-i386 sparc s390
 Priority: extra
 Section: debian-installer
 Depends: ${cfdisk-udeb:Depends}

