]> err.no Git - util-linux/commitdiff
2.12r-11ubuntu2
authorLaMont Jones <lamont@mmjgroup.com>
Thu, 19 Jul 2007 02:52:40 +0000 (20:52 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Thu, 19 Jul 2007 02:52:40 +0000 (20:52 -0600)
debian/changelog
debian/patches/00list
debian/patches/99page_size.dpatch [new file with mode: 0644]

index 5f693375385fb6a185cb83d7dac61b1766c5866e..87425e8a31dd69d53f7f6ac0e9f6906dfa162ecf 100644 (file)
@@ -1,3 +1,9 @@
+util-linux (2.12r-11ubuntu2) edgy; urgency=low
+
+  * Drop PAGE_SIZE usage complete, and switch to sysconf(_SC_PAGESIZE).
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Fri, 13 Oct 2006 00:07:40 +1000
+
 util-linux (2.12r-11ubuntu1) edgy; urgency=low
 
   * Merge NFS fix from Debian.
index b6214790da701169e26da08a1f8cdf008f3ab322..8afacf27bcac214fdd870d42fc5f5a5f8033ddd5 100644 (file)
@@ -17,3 +17,4 @@
 60_opt_O1
 65_llseek-syscall
 70libvolume_id-support
+99page_size
diff --git a/debian/patches/99page_size.dpatch b/debian/patches/99page_size.dpatch
new file mode 100644 (file)
index 0000000..7f60778
--- /dev/null
@@ -0,0 +1,50 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 99page_size.dpatch by Adam Conrad <adconrad@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad util-linux-2.12r~/disk-utils/fsck.cramfs.c util-linux-2.12r/disk-utils/fsck.cramfs.c
+--- util-linux-2.12r~/disk-utils/fsck.cramfs.c 2006-10-13 00:24:33.000000000 +1000
++++ util-linux-2.12r/disk-utils/fsck.cramfs.c  2006-10-13 00:24:46.000000000 +1000
+@@ -76,7 +76,6 @@
+ #define PAD_SIZE 512
+-#include <asm/page.h>
+ #ifdef PAGE_SIZE
+ #define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
+ #elif defined __ia64__
+diff -urNad util-linux-2.12r~/disk-utils/mkswap.c util-linux-2.12r/disk-utils/mkswap.c
+--- util-linux-2.12r~/disk-utils/mkswap.c      2004-12-22 04:21:24.000000000 +1100
++++ util-linux-2.12r/disk-utils/mkswap.c       2006-10-13 00:24:34.000000000 +1000
+@@ -48,17 +48,6 @@
+ #include <uuid/uuid.h>
+ #endif
+-/* Try to get PAGE_SIZE from libc or kernel includes */
+-#ifdef HAVE_sys_user_h
+-                              /* Note: <sys/user.h> says: for gdb only */
+-#include <sys/user.h>         /* for PAGE_SIZE and PAGE_SHIFT */
+-#else
+-#ifdef HAVE_asm_page_h
+-#include <asm/page.h>         /* for PAGE_SIZE and PAGE_SHIFT */
+-                              /* we also get PAGE_SIZE via getpagesize() */
+-#endif
+-#endif
+-
+ #ifndef _IO
+ /* pre-1.3.45 */
+ #define BLKGETSIZE 0x1260
+@@ -166,9 +155,7 @@
+ static void
+ init_signature_page(void) {
+-#ifdef PAGE_SIZE
+-      defined_pagesize = PAGE_SIZE;
+-#endif
++      defined_pagesize = sysconf(_SC_PAGESIZE);
+       kernel_pagesize = getpagesize();
+       pagesize = kernel_pagesize;