diff options
Diffstat (limited to 'sys-apps/util-linux/files/util-linux-2.12i-pic.patch')
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.12i-pic.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.12i-pic.patch b/sys-apps/util-linux/files/util-linux-2.12i-pic.patch deleted file mode 100644 index 8fb91be..0000000 --- a/sys-apps/util-linux/files/util-linux-2.12i-pic.patch +++ /dev/null @@ -1,59 +0,0 @@ -diff -ur util-linux-2.12i.orig/fdisk/llseek.c util-linux-2.12i/fdisk/llseek.c ---- util-linux-2.12i.orig/fdisk/llseek.c 2004-11-11 20:08:34.074942938 -0500 -+++ util-linux-2.12i/fdisk/llseek.c 2004-11-11 20:09:43.040353443 -0500 -@@ -3,6 +3,9 @@ - * - * Copyright (C) 1994 Remy Card. This file may be redistributed - * under the terms of the GNU Public License. -+ * -+ * Changes: -+ * 20030712 - Alexander Gabert <pappy@nikita.ath.cx> - adding PIC defines - */ - - #include <sys/types.h> -@@ -19,7 +22,9 @@ - - #else /* HAVE_LLSEEK */ - --#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__) -+/* do not use assembler to put together syscalls at compile time (for llseek for example) when using PIC */ -+#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__) \ -+ || defined(__PIC__) || defined(__pic__) - - #define my_llseek lseek - -diff -ur util-linux-2.12i.orig/fdisk/sfdisk.c util-linux-2.12i/fdisk/sfdisk.c ---- util-linux-2.12i.orig/fdisk/sfdisk.c 2004-11-11 20:08:34.074942938 -0500 -+++ util-linux-2.12i/fdisk/sfdisk.c 2004-11-11 20:11:07.242982424 -0500 -@@ -30,6 +30,7 @@ - * 19990319 - Arnaldo Carvalho de Melo <acme@conectiva.com.br> - i18n - * 20040428 - Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com> - added PACKED - * 20040824 - David A. Wheeler <dwheeler@dwheeler.com> - warnings to stderr -+ * 20030712 - Alexander Gabert <pappy@nikita.ath.cx> - adding PIC defines - */ - - #define PROGNAME "sfdisk" -@@ -172,7 +173,9 @@ - * Note: we use 512-byte sectors here, irrespective of the hardware ss. - */ - #undef use_lseek --#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__) -+/* do not use the assembler constructed syscalls for seeking if compiled as PIC */ -+#if defined (__alpha__) || defined (__ia64__) || defined (__x86_64__) || defined (__s390x__) \ -+ || defined(__PIC__) && defined(__pic__) - #define use_lseek - #endif - -diff -ur util-linux-2.12i.orig/partx/partx.c util-linux-2.12i/partx/partx.c ---- util-linux-2.12i.orig/partx/partx.c 2004-11-11 20:08:34.155928155 -0500 -+++ util-linux-2.12i/partx/partx.c 2004-11-11 20:12:34.740010020 -0500 -@@ -333,7 +333,8 @@ - /* - * sseek: seek to specified sector - */ --#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) -+#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) \ -+ && !defined(__PIC__) && !defined(__pic__) - #define NEED__llseek - #endif - |