summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Volynets <iluxa@gentoo.org>2004-06-04 07:30:53 +0000
committerIlya Volynets <iluxa@gentoo.org>2004-06-04 07:30:53 +0000
commitf478c7e5935387128574c1c471296e865a78f7d7 (patch)
tree144704e9228bcff866af68eca5ccfb15246af045 /sys-libs
parentMoved from sys-apps/squashfs-tools to sys-fs/squashfs-tools. (diff)
downloadhistorical-f478c7e5935387128574c1c471296e865a78f7d7.tar.gz
historical-f478c7e5935387128574c1c471296e865a78f7d7.tar.bz2
historical-f478c7e5935387128574c1c471296e865a78f7d7.zip
n32/n64 patchs, also add --build/--host parameters to configure
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/ChangeLog12
-rw-r--r--sys-libs/glibc/Manifest13
-rw-r--r--sys-libs/glibc/files/2.3.3/mips-addabi.diff52
-rw-r--r--sys-libs/glibc/files/2.3.3/mips-nolib3264.diff32
-rw-r--r--sys-libs/glibc/files/2.3.3/mips-syscall.h.diff30
-rw-r--r--sys-libs/glibc/files/2.3.3/mips-sysify.diff52
-rw-r--r--sys-libs/glibc/files/2.3.3/semtimedop.diff12
-rw-r--r--sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild10
-rw-r--r--sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild17
-rw-r--r--sys-libs/glibc/glibc-2.3.4.20040602.ebuild23
10 files changed, 235 insertions, 18 deletions
diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog
index fca6e005fd5b..9d8d70d004ac 100644
--- a/sys-libs/glibc/ChangeLog
+++ b/sys-libs/glibc/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sys-libs/glibc
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.167 2004/06/04 03:33:41 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.168 2004/06/04 07:30:53 iluxa Exp $
+
+ 03 Jun 2004; Ilya A. Volynets-Evenbach <iluxa@gentoo.org>
+ +files/2.3.3/mips-addabi.diff, +files/2.3.3/mips-syscall.h.diff,
+ +files/2.3.3/mips-sysify.diff, +files/2.3.3/semtimedop.diff,
+ glibc-2.3.3_pre20040420-r1.ebuild, glibc-2.3.3_pre20040529.ebuild,
+ glibc-2.3.4.20040602.ebuild:
+ Add n32/n64 patches. Some of them are not quite ready, but it
+ shouldn't make any matters worse - o32 should not be affected
+ in any way.
+ Also add ${CHOST} and ${CCHOST} to configure (--build/--host)
03 Jun 2004; Tom Gall <tgall@gentoo.org> glibc-2.3.3_pre20040529.ebuild:
stable on ppc64
diff --git a/sys-libs/glibc/Manifest b/sys-libs/glibc/Manifest
index 62775025c2e1..6d228ffda009 100644
--- a/sys-libs/glibc/Manifest
+++ b/sys-libs/glibc/Manifest
@@ -1,17 +1,17 @@
-MD5 8d9eb3b90c582ab6b42ab52d6c335df8 glibc-2.3.3_pre20040420-r1.ebuild 20195
+MD5 c70ba561ed6e7783fc160a4e5780f24f glibc-2.3.3_pre20040420-r1.ebuild 20361
MD5 37180d536733ae205d0db321571cd5ca glibc-2.3.3_pre20040117-r1.ebuild 19232
MD5 6ac96ce0f33c3d794730111609c45576 glibc-2.3.2-r3.ebuild 17308
MD5 40b73d3cb79e611b0b6a3385f1601e32 glibc-2.3.3_pre20040207.ebuild 19594
MD5 c09629c691d99b48b52e8ee8083cd1da glibc-2.3.3_pre20031210.ebuild 19015
-MD5 e44f0df5407e3852addf63ad59a3e041 glibc-2.3.3_pre20040529.ebuild 21420
+MD5 edcf5c581db33ef8050c9a7592dc3490 glibc-2.3.3_pre20040529.ebuild 21831
MD5 081030d4ac6e9b8879727089b52b28fd glibc-2.3.2-r10.ebuild 19418
MD5 03c72a7da4b62b7c73dbb67b70252a20 glibc-2.3.3_pre20040117.ebuild 18526
MD5 6ae51bfd7e5cc6af9b1ea678354a8760 glibc-2.3.2-r2.ebuild 17968
MD5 c1f9466ec8250dd47beb7a71f7c536fe glibc-2.3.1-r5.ebuild 10719
-MD5 ca647db543b6cb27888b6cd4e9da1327 ChangeLog 34182
+MD5 d785c2a0ca440a28169c2d5475d4db09 ChangeLog 34678
MD5 8e0c5284b715af1e90ed2c0e2184599c glibc-2.3.3_pre20040420.ebuild 19887
MD5 567094e03359ffc1c95af7356395228d metadata.xml 162
-MD5 a7be53531e644d11ae04b1d2b35e4376 glibc-2.3.4.20040602.ebuild 15408
+MD5 e90a43ef3388553c0548c6487321b8d1 glibc-2.3.4.20040602.ebuild 15751
MD5 b141dc6e9c4183e869f6d95f0f015b99 glibc-2.2.5-r9.ebuild 10002
MD5 32383b07afc0abdbb3a8da5fe539a696 glibc-2.3.2-r9.ebuild 18657
MD5 98ea363167dacaaad23fd9a66ba98d5b files/nscd 844
@@ -118,12 +118,17 @@ MD5 45b1fda5b64866e837a825d0add0b31c files/2.3.2/glibc-2.3.2-ipv6-bytestring-fix
MD5 b27417338a4cd9906e2917701f0be575 files/2.3.2/glibc-2.3.2-propolice-guard-functions.patch 5069
MD5 0bfc56be86acec8ec52fe29249e267a4 files/2.3.3/glibc-2.3.3-owl-malloc-unlink-sanity-check.diff 1425
MD5 62f7e62583aaa70645d9c847b6a84299 files/2.3.3/glibc-2.3.3-frandom-detect.patch 1770
+MD5 ca1d4648f72e5fea2858fdb6ea3d39a0 files/2.3.3/mips-addabi.diff 1720
MD5 9e2c8ac6d3fa8494ecb962b675f412b5 files/2.3.3/ssp.c 3936
+MD5 847afe57e19abff1d5c49f6bb7084a3d files/2.3.3/mips-syscall.h.diff 1199
MD5 7b6054c2e8ec654341690586bc2028c5 files/2.3.3/glibc-2.3.3_pre20040117-signal-ssp.diff 1431
MD5 0e27dbd2a3b85a0e14625294296fad9a files/2.3.3/glibc-2.3.2-propolice-guard-functions-v3.patch 1986
+MD5 81d95470c5766e56e27ad8b6967d2a16 files/2.3.3/semtimedop.diff 602
MD5 a3eb98943bc9db66df33bfc08dea4c2e files/2.3.3/glibc-2.3.3_pre20040117-pt_pax.diff 1470
+MD5 f9343413b90877edfcaeedf89b3dec77 files/2.3.3/mips-nolib3264.diff 1166
MD5 86626ba8df9cac083bb3e1cfe23ec07e files/2.3.3/glibc-2.3.3_pre20040420-mips-dl-machine-calls.diff 1497
MD5 69d86fa55810b4d327d0cb35042c034f files/2.3.3/glibc-2.3.3-ssp-gcc34-after-frandom.patch 538
+MD5 84fa9a725c22975d735a2f91543a5cca files/2.3.3/mips-sysify.diff 2138
MD5 175bde9b0017d4deb63cf55f38173e11 files/2.3.3/glibc-2.3.3_pre20040117-got-fix.diff 752
MD5 ec83f3d86f23243a1fb334b8872d454f files/2.3.3/glibc-2.3.3-localedef-fix-trampoline.patch 2329
MD5 ab91cb5bad07e1e79f990d4933741d42 files/2.3.3/glibc-2.3.3_pre20040420-mips-incl-sgidefs.diff 8287
diff --git a/sys-libs/glibc/files/2.3.3/mips-addabi.diff b/sys-libs/glibc/files/2.3.3/mips-addabi.diff
new file mode 100644
index 000000000000..692e0e114985
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.3/mips-addabi.diff
@@ -0,0 +1,52 @@
+Index: sysdeps/mips/mips64/n32/Makefile
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mips/mips64/n32/Makefile,v
+retrieving revision 1.2
+diff -u -r1.2 Makefile
+--- sysdeps/mips/mips64/n32/Makefile 29 Mar 2003 08:15:28 -0000 1.2
++++ sysdeps/mips/mips64/n32/Makefile 14 May 2004 05:32:32 -0000
+@@ -2,5 +2,9 @@
+ long-double-fcts = yes
+
+ ifeq ($(filter -mabi=n32,$(CC)),)
+-CC += -mabi=n32
++CC += -mabi=n32
+ endif
++ifeq ($(filter "-Wl,-m,elf32btsmipn32",$(LD)),)
++LD += -Wl,-m,elf32btsmipn32
++endif
++ABI_FLAG= -Wl,-m,elf32btsmipn32
+Index: sysdeps/mips/mips64/n64/Makefile
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mips/mips64/n64/Makefile,v
+retrieving revision 1.2
+diff -u -r1.2 Makefile
+--- sysdeps/mips/mips64/n64/Makefile 29 Mar 2003 08:15:28 -0000 1.2
++++ sysdeps/mips/mips64/n64/Makefile 14 May 2004 05:32:32 -0000
+@@ -4,3 +4,10 @@
+ ifeq ($(filter -mabi=64,$(CC)),)
+ CC += -mabi=64
+ endif
++ifeq ($(filter "-Wl,-m,elf64btsmip",$(LDFLAGS)),)
++LDFLAGS += -Wl,-m,elf64btsmip
++endif
++ifeq ($(filter "-Wl,-m,elf64btsmip",$(ASFLAGS-.os)),)
++ASFLAGS-.os += -Wl,-m,elf64btsmip
++endif
++ABI_FLAG= -Wl,-m,elf64btsmip
+Index: csu/Makefile
+===================================================================
+RCS file: /cvs/glibc/libc/csu/Makefile,v
+retrieving revision 1.73
+diff -u -r1.73 Makefile
+--- csu/Makefile 8 Mar 2004 21:28:15 -0000 1.73
++++ csu/Makefile 14 May 2004 05:32:18 -0000
+@@ -146,7 +147,7 @@
+ subdir_lib: $(extra-objs:%=$(objpfx)%)
+
+ define link-relocatable
+-$(CC) -nostdlib -nostartfiles -r -o $@ $^
++$(CC) $(ABI_FLAG) -nostdlib -nostartfiles -r -o $@ $^
+ endef
+
+ ifndef start-installed-name-rule
diff --git a/sys-libs/glibc/files/2.3.3/mips-nolib3264.diff b/sys-libs/glibc/files/2.3.3/mips-nolib3264.diff
new file mode 100644
index 000000000000..eb4fed8e656d
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.3/mips-nolib3264.diff
@@ -0,0 +1,32 @@
+Index: sysdeps/unix/sysv/linux/configure
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/configure,v
+retrieving revision 1.86
+diff -u -r1.86 configure
+--- sysdeps/unix/sysv/linux/configure 23 Mar 2003 02:10:04 -0000 1.86
++++ sysdeps/unix/sysv/linux/configure 1 Jun 2004 04:25:42 -0000
+@@ -224,8 +224,7 @@
+ /usr | /usr/)
+ # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib
+ case $machine in
+- sparc/sparc64 | x86_64 | powerpc/powerpc64 | s390/s390-64 | \
+- mips/mips64/n64/* )
++ sparc/sparc64 | x86_64 | powerpc/powerpc64 | s390/s390-64 )
+ libc_cv_slibdir="/lib64"
+ if test "$libdir" = '${exec_prefix}/lib'; then
+ libdir='${exec_prefix}/lib64';
+@@ -233,14 +232,6 @@
+ libc_cv_localedir='${exec_prefix}/lib/locale'
+ fi
+ ;;
+- mips/mips64/n32/* )
+- libc_cv_slibdir="/lib32"
+- if test "$libdir" = '${exec_prefix}/lib'; then
+- libdir='${exec_prefix}/lib32';
+- # Locale data can be shared between 32bit and 64bit libraries
+- libc_cv_localedir='${exec_prefix}/lib/locale'
+- fi
+- ;;
+ *)
+ libc_cv_slibdir="/lib"
+ ;;
diff --git a/sys-libs/glibc/files/2.3.3/mips-syscall.h.diff b/sys-libs/glibc/files/2.3.3/mips-syscall.h.diff
new file mode 100644
index 000000000000..fdbd3b9058bc
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.3/mips-syscall.h.diff
@@ -0,0 +1,30 @@
+This patch actually makes file identical to default implementaion..
+
+Index: sysdeps/unix/sysv/linux/mips/sys/syscall.h
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/sys/syscall.h,v
+retrieving revision 1.8
+diff -u -r1.8 syscall.h
+--- sysdeps/unix/sysv/linux/mips/sys/syscall.h 17 Mar 2003 15:50:05 -0000 1.8
++++ sysdeps/unix/sysv/linux/mips/sys/syscall.h 14 May 2004 17:03:29 -0000
+@@ -19,17 +19,10 @@
+ #ifndef _SYSCALL_H
+ #define _SYSCALL_H 1
+
+-/* This file should list the numbers of the system the system knows.
+- But instead of duplicating this we use the information available
+- from the kernel sources. */
+-#ifdef _LIBC
+-/* Since the kernel doesn't define macro names in a way usable for
+- glibc, we preprocess this header, and use it during the glibc build
+- process. */
+-# include <asm-unistd.h>
+-#else
++/* This file should list the numbers of the system calls the system
++ knows. But instead of duplicating this we use the information
++ available from the kernel sources. */
+ # include <asm/unistd.h>
+-#endif
+
+ #ifndef _LIBC
+ /* The Linux kernel header file defines macros `__NR_<name>', but some
diff --git a/sys-libs/glibc/files/2.3.3/mips-sysify.diff b/sys-libs/glibc/files/2.3.3/mips-sysify.diff
new file mode 100644
index 000000000000..09b1adbb6fbc
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.3/mips-sysify.diff
@@ -0,0 +1,52 @@
+Index: sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h,v
+retrieving revision 1.3
+diff -u -r1.3 sysdep.h
+--- sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h 1 Oct 2003 06:59:39 -0000 1.3
++++ sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h 14 May 2004 19:01:28 -0000
+@@ -28,9 +28,9 @@
+ so we have to redefine the `SYS_ify' macro here. */
+ #undef SYS_ify
+ #ifdef __STDC__
+-# define SYS_ify(syscall_name) __NR_N32_##syscall_name
++# define SYS_ify(syscall_name) __NR_##syscall_name
+ #else
+-# define SYS_ify(syscall_name) __NR_N32_/**/syscall_name
++# define SYS_ify(syscall_name) __NR_/**/syscall_name
+ #endif
+
+ #ifdef __ASSEMBLER__
+Index: sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h,v
+retrieving revision 1.3
+diff -u -r1.3 sysdep.h
+--- sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h 1 Oct 2003 06:59:40 -0000 1.3
++++ sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h 14 May 2004 19:01:28 -0000
+@@ -28,9 +28,9 @@
+ so we have to redefine the `SYS_ify' macro here. */
+ #undef SYS_ify
+ #ifdef __STDC__
+-# define SYS_ify(syscall_name) __NR_N64_##syscall_name
++# define SYS_ify(syscall_name) __NR_##syscall_name
+ #else
+-# define SYS_ify(syscall_name) __NR_N64_/**/syscall_name
++# define SYS_ify(syscall_name) __NR_/**/syscall_name
+ #endif
+
+ #ifdef __ASSEMBLER__
+--- sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h.orig 2004-05-18 14:51:16.000000000 -0700
++++ sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h 2004-05-19 15:07:23.000000000 -0700
+@@ -28,9 +28,9 @@
+ so we have to redefine the `SYS_ify' macro here. */
+ #undef SYS_ify
+ #ifdef __STDC__
+-# define SYS_ify(syscall_name) __NR_O32_##syscall_name
++# define SYS_ify(syscall_name) __NR_##syscall_name
+ #else
+-# define SYS_ify(syscall_name) __NR_O32_/**/syscall_name
++# define SYS_ify(syscall_name) __NR_/**/syscall_name
+ #endif
+
+ #endif /* linux/mips/mips32/kern64/sysdep.h */
diff --git a/sys-libs/glibc/files/2.3.3/semtimedop.diff b/sys-libs/glibc/files/2.3.3/semtimedop.diff
new file mode 100644
index 000000000000..47132afd11b8
--- /dev/null
+++ b/sys-libs/glibc/files/2.3.3/semtimedop.diff
@@ -0,0 +1,12 @@
+Index: sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list,v
+retrieving revision 1.2
+diff -u -r1.2 syscalls.list
+--- sysdeps/unix/sysv/linux/mips/mips64/syscalls.list 3 Sep 2003 03:16:25 -0000 1.2
++++ sysdeps/unix/sysv/linux/mips/mips64/syscalls.list 14 May 2004 05:32:37 -0000
+@@ -18,3 +18,4 @@
+ semop - semop i:ipi __semop semop
+ semget - semget i:iii __semget semget
+ semctl - semctl i:iiii __semctl semctl
++semtimedop - semtimedop i:ipip semtimedop
diff --git a/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild b/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild
index a51cc3a86346..eb97b481f893 100644
--- a/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild,v 1.4 2004/06/02 21:23:05 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.3_pre20040420-r1.ebuild,v 1.5 2004/06/04 07:30:53 iluxa Exp $
-IUSE="nls pic build nptl erandom"
+IUSE="nls pic build nptl erandom n32 n64"
inherit eutils flag-o-matic gcc
@@ -387,9 +387,13 @@ src_unpack() {
epatch ${FILESDIR}/2.3.1/${PN}-2.3.1-librt-mips.patch
epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-add-n32-n64-sysdep-cancel.patch
epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-configure-for-n64-symver.patch
- epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-pread-linux2.5.patch
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-dl-machine-calls.diff
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-incl-sgidefs.diff
+ epatch ${FILESDIR}/2.3.3/mips-addabi.diff
+ epatch ${FILESDIR}/2.3.3/mips-syscall.h.diff
+ epatch ${FILESDIR}/2.3.3/semtimedop.diff
+ epatch ${FILESDIR}/2.3.3/mips-sysify.diff
+ epatch ${FILESDIR}/2.3.3/mips-n32n64regs.diff
fi
if [ "${ARCH}" = "alpha" ]
diff --git a/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild b/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild
index 814e1d6211a5..9d96cbce4aa8 100644
--- a/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild
+++ b/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild,v 1.8 2004/06/04 03:33:41 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.3_pre20040529.ebuild,v 1.9 2004/06/04 07:30:53 iluxa Exp $
-IUSE="nls pic build nptl erandom hardened"
+IUSE="nls pic build nptl erandom hardened multilib"
inherit eutils flag-o-matic gcc
@@ -33,6 +33,9 @@ strip-flags
# Lock glibc at -O2 -- linuxthreads needs it and we want to be conservative here
export CFLAGS="${CFLAGS//-O?} -O2"
+# Clear -f-unit-at-a-time, which kills gcc-3.4.0
+export CFLAGS="${CFLAGS//-funit-at-a-time} -fno-unit-at-a-time"
+
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="${LDFLAGS//-Wl,--relax}"
@@ -377,16 +380,22 @@ src_unpack() {
# do can be found in the patch headers.
# <tuxus@gentoo.org> thx <dragon@gentoo.org> (11 Jan 2003)
# <kumba@gentoo.org> remove tst-rndseek-mips & ulps-mips patches
+ # <iluxa@gentoo.org> add n32/n64 patches, remove pread patch
if [ "${ARCH}" = "mips" ]
then
cd ${S}
epatch ${FILESDIR}/2.3.1/${PN}-2.3.1-fpu-cw-mips.patch
epatch ${FILESDIR}/2.3.1/${PN}-2.3.1-librt-mips.patch
- epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-add-n32-n64-sysdep-cancel.patch
epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-configure-for-n64-symver.patch
- epatch ${FILESDIR}/2.3.2/${LOCAL_P}-mips-pread-linux2.5.patch
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-dl-machine-calls.diff
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-incl-sgidefs.diff
+ epatch ${FILESDIR}/2.3.3/mips-addabi.diff
+ epatch ${FILESDIR}/2.3.3/mips-syscall.h.diff
+ epatch ${FILESDIR}/2.3.3/semtimedop.diff
+ epatch ${FILESDIR}/2.3.3/mips-sysify.diff
+ # Need to install into /lib for n32-only userland for now.
+ # Propper solution is to make all userland /lib{32|64}-aware.
+ use multilib || epatch ${FILESDIR}/2.3.3/mips-nolib3264.diff
fi
if [ "${ARCH}" = "alpha" ]
diff --git a/sys-libs/glibc/glibc-2.3.4.20040602.ebuild b/sys-libs/glibc/glibc-2.3.4.20040602.ebuild
index 0f6aab5e0bf3..ef84e33e3a2a 100644
--- a/sys-libs/glibc/glibc-2.3.4.20040602.ebuild
+++ b/sys-libs/glibc/glibc-2.3.4.20040602.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20040602.ebuild,v 1.7 2004/06/04 05:11:07 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20040602.ebuild,v 1.8 2004/06/04 07:30:53 iluxa Exp $
-IUSE="nls pic build nptl erandom hardened makecheck"
+IUSE="nls pic build nptl erandom hardened makecheck multilib"
inherit eutils flag-o-matic gcc
@@ -63,6 +63,9 @@ RDEPEND="virtual/os-headers
PROVIDE="virtual/glibc"
+# theoretical x-compiler support
+[ -z "${CCHOST}" ] && CCHOST="${CHOST}"
+
setup_flags() {
# -freorder-blocks for all but ia64 s390 s390x
use ppc || append-flags "-freorder-blocks"
@@ -274,16 +277,21 @@ src_unpack() {
# do can be found in the patch headers.
# <tuxus@gentoo.org> thx <dragon@gentoo.org> (11 Jan 2003)
# <kumba@gentoo.org> remove tst-rndseek-mips & ulps-mips patches
+ # <iluxa@gentoo.org> add n32/n64 patches, remove pread patch
if [ "${ARCH}" = "mips" ]
then
cd ${S}
epatch ${FILESDIR}/2.3.1/${PN}-2.3.1-fpu-cw-mips.patch
epatch ${FILESDIR}/2.3.1/${PN}-2.3.1-librt-mips.patch
- epatch ${FILESDIR}/2.3.2/${PN}-2.3.2-mips-add-n32-n64-sysdep-cancel.patch
- epatch ${FILESDIR}/2.3.2/${PN}-2.3.2-mips-configure-for-n64-symver.patch
- epatch ${FILESDIR}/2.3.2/${PN}-2.3.2-mips-pread-linux2.5.patch
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-dl-machine-calls.diff
epatch ${FILESDIR}/2.3.3/${PN}-2.3.3_pre20040420-mips-incl-sgidefs.diff
+ epatch ${FILESDIR}/2.3.3/mips-addabi.diff
+ epatch ${FILESDIR}/2.3.3/mips-syscall.h.diff
+ epatch ${FILESDIR}/2.3.3/semtimedop.diff
+ epatch ${FILESDIR}/2.3.3/mips-sysify.diff
+ # Need to install into /lib for n32-only userland for now.
+ # Propper solution is to make all userland /lib{32|64}-aware.
+ use multilib || epatch ${FILESDIR}/2.3.3/mips-nolib3264.diff
fi
if [ "${ARCH}" = "alpha" ]
@@ -365,7 +373,10 @@ src_compile() {
rm -rf ${WORKDIR}/build
mkdir -p ${WORKDIR}/build
cd ${WORKDIR}/build
- ${S}/configure --disable-profile \
+ ${S}/configure \
+ --build=${CHOST} \
+ --host=${CCHOST} \
+ --disable-profile \
--without-gd \
--without-cvs \
--with-headers=/usr/include \