From: LaMont Jones Date: Thu, 19 Jul 2007 02:52:40 +0000 (-0600) Subject: 2.12r-11ubuntu2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88cab26f50a16ccbbc6d98bccf45c5fda7dc2d26;p=util-linux 2.12r-11ubuntu2 --- diff --git a/debian/changelog b/debian/changelog index 5f693375..87425e8a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 13 Oct 2006 00:07:40 +1000 + util-linux (2.12r-11ubuntu1) edgy; urgency=low * Merge NFS fix from Debian. diff --git a/debian/patches/00list b/debian/patches/00list index b6214790..8afacf27 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -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 index 00000000..7f60778d --- /dev/null +++ b/debian/patches/99page_size.dpatch @@ -0,0 +1,50 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 99page_size.dpatch by Adam Conrad +## +## 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 + #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 + #endif + +-/* Try to get PAGE_SIZE from libc or kernel includes */ +-#ifdef HAVE_sys_user_h +- /* Note: says: for gdb only */ +-#include /* for PAGE_SIZE and PAGE_SHIFT */ +-#else +-#ifdef HAVE_asm_page_h +-#include /* 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; +