From: Mike Frysinger Date: Thu, 30 Sep 2004 18:13:22 +0000 (+0000) Subject: add hppa to the exception list X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1b64fe9b18608a6f635e3d8fb1623f22e47082e;p=gentoo.git add hppa to the exception list --- diff --git a/sys-apps/util-linux/Manifest b/sys-apps/util-linux/Manifest index 06c89d401a83..b6ff219b0289 100644 --- a/sys-apps/util-linux/Manifest +++ b/sys-apps/util-linux/Manifest @@ -35,11 +35,11 @@ MD5 87912a793169fad4258077f2f6957616 files/digest-util-linux-2.12b 156 MD5 e9d23ba9f2e86d57084dce2b34d76c10 files/util-linux-2.12b-fat-LABEL-support.patch 11672 MD5 58cfa6f70a144bbe55e6aa1b85f72a96 files/util-linux-2.12b-gcloop-with-crypt.patch 3846 MD5 a0217db1b99dfa1f137c22c36343a623 files/util-linux-2.12b-gcloop.patch 3844 -MD5 36359c4fe2698bdac5888e6daf63b67e files/util-linux-2.12b-pic.patch 3652 +MD5 07a3dfffc55bcc7ef2868e025beb853e files/util-linux-2.12b-pic.patch 2874 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.10 (GNU/Linux) -iD8DBQFBTt89HTu7gpaalycRAiK1AJ9sqQ/qqs/oXdj3jDXIJ79WhZjd2ACfdEO2 -7ZGX8AwJUvXM3uiDbff2FXQ= -=M5Fr +iD8DBQFBXE2KHTu7gpaalycRArRUAKCPb7jx74ebun63KXzpWLuNw5agggCgxjWZ +EQX7fjijrdr57yQZGVw5OE4= +=LQP7 -----END PGP SIGNATURE----- diff --git a/sys-apps/util-linux/files/util-linux-2.12b-pic.patch b/sys-apps/util-linux/files/util-linux-2.12b-pic.patch index 99afe9b63eaf..479c2cce8637 100644 --- a/sys-apps/util-linux/files/util-linux-2.12b-pic.patch +++ b/sys-apps/util-linux/files/util-linux-2.12b-pic.patch @@ -17,7 +17,7 @@ diff -u -r -N util-linux-2.11z.orig/fdisk/llseek.c util-linux-2.11z/fdisk/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(__PIC__) || defined(__pic__) || defined(__alpha__) || defined(__ia64__) || defined(__s390x__) ++#if defined(__PIC__) || defined(__pic__) || defined(__alpha__) || defined(__ia64__) || defined(__s390x__) || defined(__hppa__) #define my_llseek lseek @@ -39,7 +39,7 @@ diff -u -r -N util-linux-2.11z.orig/fdisk/sfdisk.c util-linux-2.11z/fdisk/sfdisk -#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(__PIC__) && !defined(__pic__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) ++#if !defined(__PIC__) && !defined(__pic__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) && !defined (__hppa__) static _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh); @@ -48,35 +48,10 @@ diff -u -r -N util-linux-2.11z.orig/fdisk/sfdisk.c util-linux-2.11z/fdisk/sfdisk out = 1; -#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) -+#if !defined(__PIC__) && !defined(__pic__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) ++#if !defined(__PIC__) && !defined(__pic__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__) && !defined (__hppa__) if (_llseek (fd, in>>32, in & 0xffffffff, &out, SEEK_SET) != 0) { #else if ((out = lseek(fd, in, SEEK_SET)) != in) { -# -# This seems to not be needed anymore -# -#diff -u -r -N util-linux-2.11z.orig/mount/pivot_root.c util-linux-2.11z/mount/pivot_root.c -#--- util-linux-2.11z.orig/mount/pivot_root.c 2002-11-29 12:02:56.000000000 +0100 -#+++ util-linux-2.11z/mount/pivot_root.c 2003-07-12 19:07:39.000000000 +0200 -#@@ -1,12 +1,17 @@ -# /* pivot_root.c - Change the root file system */ -# -# /* Written 2000 by Werner Almesberger */ -#+/* -#+ * Jul 11 2003 -#+ * avoid using assembler constructed _syscall2() when PIC is needed -#+ */ -# -# #include -# #include /* needed for below */ -# -#-#ifdef __ia64__ -#+#if (defined(__ia64__) || defined(__PIC__) || defined(__pic__)) -# # include -#+# include -# # define pivot_root(new_root,put_old) syscall(SYS_pivot_root,new_root,put_old) -# #else -# # include --- util-linux-2.12b/partx/partx.c.orig 2004-09-04 15:58:23.000000000 -0400 +++ util-linux-2.12b/partx/partx.c 2004-09-04 15:57:40.000000000 -0400 @@ -333,7 +333,7 @@ @@ -84,7 +59,7 @@ diff -u -r -N util-linux-2.11z.orig/fdisk/sfdisk.c util-linux-2.11z/fdisk/sfdisk * 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__) ++#if !defined (__alpha__) && !defined (__ia64__) && !defined (__s390x__) && !defined(__x86_64__) && !defined(__PIC__) && !defined(__hppa__) #define NEED__llseek #endif