diff --git a/util-linux-2.13-swap-page.patch b/util-linux-2.13-swap-page.patch new file mode 100644 index 0000000..797f646 --- /dev/null +++ b/util-linux-2.13-swap-page.patch @@ -0,0 +1,68 @@ +--- util-linux-2.13-pre6/disk-utils/mkswap.c.page 2006-06-12 17:30:57.000000000 +0200 ++++ util-linux-2.13-pre6/disk-utils/mkswap.c 2006-06-12 17:30:31.000000000 +0200 +@@ -53,17 +53,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 +@@ -172,10 +161,6 @@ + + static void + init_signature_page(void) { +- +-#ifdef PAGE_SIZE +- defined_pagesize = PAGE_SIZE; +-#endif + kernel_pagesize = getpagesize(); + pagesize = kernel_pagesize; + +--- util-linux-2.13-pre6/configure.ac.page 2006-06-12 17:28:51.000000000 +0200 ++++ util-linux-2.13-pre6/configure.ac 2006-06-12 17:28:28.000000000 +0200 +@@ -26,7 +26,8 @@ + ]) + AC_CHECK_HEADERS(langinfo.h) + AC_CHECK_HEADERS(sys/user.h) +-AC_CHECK_HEADERS(asm/page.h) ++# Suck ... ++#AC_CHECK_HEADERS(asm/page.h) + AC_CHECK_HEADERS(rpcsvc/nfs_prot.h) + AC_CHECK_HEADERS(sys/io.h) + AC_CHECK_HEADERS(pty.h) +--- util-linux-2.13-pre6/mount/swap.configure.page 2006-06-12 17:23:27.000000000 +0200 ++++ util-linux-2.13-pre6/mount/swap.configure 2006-06-12 17:25:28.000000000 +0200 +@@ -3,7 +3,7 @@ + + # Prepare test + CC=${CC-cc} +-compile="$CC -o conftest conftest.c >/dev/null 2>&1" ++compile="$CC -o conftest conftest.c" + rm -f conftest conftest.c swapargs.h + + # What include files shall we try? +@@ -14,9 +14,10 @@ + PAGEH= + if [ -f /usr/include/sys/swap.h ]; then + SWAPH="#include " +- if [ -f /usr/include/asm/page.h ]; then +- PAGEH="#include " +- fi ++ # Suck ... ++ #if [ -f /usr/include/asm/page.h ]; then ++ # PAGEH="#include " ++ #fi + fi + echo $PAGEH > conftest.c + echo $SWAPH >> conftest.c diff --git a/util-linux.spec b/util-linux.spec index f77a2d7..bd2c70f 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -211,8 +211,8 @@ Patch240: util-linux-2.13-fdisk-sectors.patch Patch241: util-linux-2.13-fdisk-isfull.patch # 181549 - raw(8) manpage has old information about dd Patch242: util-linux-2.12a-raw-man-dd.patch - -Patch243: util-linux-2.13-swapon-debug.patch +# Don't use asm/page.h +Patch243: util-linux-2.13-swap-page.patch # When adding patches, please make sure that it is easy to find out what bug # the # patch fixes. @@ -304,9 +304,8 @@ cp %{SOURCE8} %{SOURCE9} . %patch238 -p1 %patch239 -p1 %patch240 -p1 -%patch241 -p1 -b .isfull +%patch241 -p1 %patch242 -p1 - %patch243 -p1 %build @@ -705,6 +704,7 @@ fi - fdisk: wrong number of sectors for large disks (suse#160822) - merge fdisk-xvd (#182553) with new fdisk-isfull (#188981) patch - fix #181549 - raw(8) manpage has old information about dd +- remove asm/page.h usage * Wed May 24 2006 Dan Walsh 2.13-0.24 - Remove requirement on restorecon, since we can do the same thing