From 9e43f12a7c1d443ff9b5ea9a17e096d3a52bf03c Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Sun, 18 May 2003 22:24:31 +0000 Subject: new version; gcc-3.3 fixes --- sys-libs/glibc/ChangeLog | 20 +- sys-libs/glibc/Manifest | 11 +- .../files/2.3.2/glibc-2.3.2-gcc33-sscanf.patch | 21 + .../files/2.3.2/glibc-2.3.2-nptl-fix-include.patch | 10 + .../glibc-2.3.2-redhat-linuxthreads-fixes.patch | 58 +++ .../2.3.2/glibc-2.3.2-redhat-nptl-fixes.patch | 25 + sys-libs/glibc/files/digest-glibc-2.3.2-r1 | 2 +- sys-libs/glibc/files/digest-glibc-2.3.2-r2 | 4 + sys-libs/glibc/files/nscd.conf | 45 ++ sys-libs/glibc/glibc-2.2.5-r8.ebuild | 4 +- sys-libs/glibc/glibc-2.3.1-r4.ebuild | 6 +- sys-libs/glibc/glibc-2.3.2-r1.ebuild | 15 +- sys-libs/glibc/glibc-2.3.2-r2.ebuild | 556 +++++++++++++++++++++ 13 files changed, 760 insertions(+), 17 deletions(-) create mode 100644 sys-libs/glibc/files/2.3.2/glibc-2.3.2-gcc33-sscanf.patch create mode 100644 sys-libs/glibc/files/2.3.2/glibc-2.3.2-nptl-fix-include.patch create mode 100644 sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-linuxthreads-fixes.patch create mode 100644 sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-nptl-fixes.patch create mode 100644 sys-libs/glibc/files/digest-glibc-2.3.2-r2 create mode 100644 sys-libs/glibc/files/nscd.conf create mode 100644 sys-libs/glibc/glibc-2.3.2-r2.ebuild diff --git a/sys-libs/glibc/ChangeLog b/sys-libs/glibc/ChangeLog index c4a78574449b..d7e36fe6fc77 100644 --- a/sys-libs/glibc/ChangeLog +++ b/sys-libs/glibc/ChangeLog @@ -1,6 +1,24 @@ # ChangeLog for sys-libs/glibc # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.58 2003/05/14 20:30:20 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/ChangeLog,v 1.59 2003/05/18 22:22:50 azarah Exp $ + + 18 May 2003; Martin Schlemmer : + Fix LICENSE to be LGPL-2, bug #19074. Fix glibc-2.3* < 2.3.2-r2 to depend + on glibc-2.3.2-r1.ebuild, + glibc-2.3.2-gcc33-sscanf.patch : + Downgrade nptl to version 0.28 and add glibc-2.3.2-gcc33-sscanf.patch to + fix compile errors with gcc-3.3: + + http://sources.redhat.com/ml/libc-alpha/2003-03/msg00052.html + +*glibc-2.3.2-r2 (18 May 2003) + + 18 May 2003; Martin Schlemmer glibc-2.3.2-r2.ebuild : + New version. Update to cvs 20030517 to fix problems with gcc-3.3. Also + closes bug #18744 as it adds the en_US.utf8 locale. Also enable NPTL + support for i[45]86, ppc and mips, as it should in theory work now. 14 May 2003; Martin Schlemmer glibc-2.3.2-r{0,1}.ebuild : diff --git a/sys-libs/glibc/Manifest b/sys-libs/glibc/Manifest index 89282cfb14a4..5d001d260fa1 100644 --- a/sys-libs/glibc/Manifest +++ b/sys-libs/glibc/Manifest @@ -1,9 +1,8 @@ -MD5 636ab22b0b4f3bee1bee63d961580733 .glibc-2.3.2-r1.ebuild.swp 32768 -MD5 369f64a13921975516d836132e5f949e ChangeLog 12552 -MD5 402bdbe74414b729e266c9489b784f25 glibc-2.3.2-r1.ebuild 15955 -MD5 e4ba90597ace87bc3970ef337ed5bfea glibc-2.3.2-r2.ebuild 15960 -MD5 4ccb4ab7841e7925b79b5b960d8a633a glibc-2.3.1-r4.ebuild 10470 -MD5 0c9864f6844d4a0b3e5fc14327e77f28 glibc-2.2.5-r8.ebuild 9703 +MD5 1e259b1c53f268d11df95b9224822923 ChangeLog 12928 +MD5 c2b34d673ba6efe7f41350479cbde230 glibc-2.3.2-r1.ebuild 15955 +MD5 ef66c8513c94dd10421859c56c00159a glibc-2.3.2-r2.ebuild 16254 +MD5 98af215a05c4f3370ad16ea017e723ff glibc-2.3.1-r4.ebuild 10470 +MD5 34a3b5f68966b3e9c7c94cce512e0cab glibc-2.2.5-r8.ebuild 9704 MD5 2013443f5192d4b999953ba4248d288c files/nscd.conf 1158 MD5 52cfc7627fc62dfb26d8d163aac361f6 files/glibc-2.2.2-test-lfs-timeout.patch 320 MD5 135f8145885a2f4f9876fe973f33ddf6 files/glibc-2.2.4-string2.h.diff 5221 diff --git a/sys-libs/glibc/files/2.3.2/glibc-2.3.2-gcc33-sscanf.patch b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-gcc33-sscanf.patch new file mode 100644 index 000000000000..523b036d9a7d --- /dev/null +++ b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-gcc33-sscanf.patch @@ -0,0 +1,21 @@ +--- stdio-common/sscanf.c.~1.8.~ 2003-01-16 11:25:20.000000000 +0100 ++++ stdio-common/sscanf.c 2003-03-05 12:07:34.000000000 +0100 +@@ -1,4 +1,4 @@ +-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc. ++/* Copyright (C) 1991,95,96,98,2002, 2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or +@@ -27,9 +27,7 @@ + /* Read formatted input from S, according to the format string FORMAT. */ + /* VARARGS2 */ + int +-sscanf (s, format) +- const char *s; +- const char *format; ++sscanf (const char *s, const char *format, ...) + { + va_list arg; + int done; + + diff --git a/sys-libs/glibc/files/2.3.2/glibc-2.3.2-nptl-fix-include.patch b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-nptl-fix-include.patch new file mode 100644 index 000000000000..19c143a252a1 --- /dev/null +++ b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-nptl-fix-include.patch @@ -0,0 +1,10 @@ +--- glibc-2.3.2/nptl/unwind.c.orig 2003-05-17 22:11:05.000000000 +0200 ++++ glibc-2.3.2/nptl/unwind.c 2003-05-17 22:08:30.000000000 +0200 +@@ -20,6 +20,7 @@ + + #include + #include ++#include + #include "pthreadP.h" + + diff --git a/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-linuxthreads-fixes.patch b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-linuxthreads-fixes.patch new file mode 100644 index 000000000000..dd9f1436c384 --- /dev/null +++ b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-linuxthreads-fixes.patch @@ -0,0 +1,58 @@ +--- glibc-2.3.2-net/linuxthreads/Makefile 13 May 2003 19:51:57 -0000 1.1.1.46 ++++ glibc-2.3.2-redhat/linuxthreads/Makefile 13 May 2003 20:07:01 -0000 1.25 +@@ -217,15 +217,18 @@ $(addprefix $(objpfx), \ + $(filter-out $(tests-static) $(tests-reverse) unload, \ + $(tests) $(test-srcs))): $(objpfx)libpthread.so \ + $(objpfx)libpthread_nonshared.a +-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so, ++# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so, + # since otherwise libpthread.so comes before libc.so when linking. + $(addprefix $(objpfx), $(tests-reverse)): \ +- $(objpfx)../libc.so $(objpfx)libpthread.so \ ++ $(objpfx)linklibc.so $(objpfx)libpthread.so \ + $(objpfx)libpthread_nonshared.a + $(objpfx)../libc.so: $(common-objpfx)libc.so ; + $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so + $(objpfx)unload: $(common-objpfx)dlfcn/libdl.so + $(objpfx)unload.out: $(objpfx)libpthread.so $(objpfx)libpthread_nonshared.a ++$(objpfx)linklibc.so: $(common-objpfx)libc.so ++ ln -s ../libc.so $@ ++generated += libclink.so + else + $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a + $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.a +--- glibc-2.3.2-net/linuxthreads/cancel.c 22 Feb 2003 16:58:54 -0000 1.1.1.15 ++++ glibc-2.3.2-redhat/linuxthreads/cancel.c 23 Feb 2003 21:15:06 -0000 1.10 +@@ -230,5 +230,6 @@ void __pthread_perform_cleanup(char *cur + } + + /* And the TSD which needs special help. */ ++ THREAD_SETMEM (self, p_cancelstate, PTHREAD_CANCEL_DISABLE); + __libc_thread_freeres (); + } +--- glibc-2.3.2-net/linuxthreads/lockfile.c 18 Dec 2002 12:43:50 -0000 1.1.1.7 ++++ glibc-2.3.2-redhat/linuxthreads/lockfile.c 18 Dec 2002 12:48:17 -0000 1.8 +@@ -74,7 +74,11 @@ __fresetlockfiles (void) + __pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP); + + for (i = _IO_iter_begin(); i != _IO_iter_end(); i = _IO_iter_next(i)) +- __pthread_mutex_init (_IO_iter_file(i)->_lock, &attr); ++ { ++ _IO_lock_t *_lock = _IO_iter_file(i)->_lock; ++ if (_lock) ++ __pthread_mutex_init (_lock, &attr); ++ } + + __pthread_mutexattr_destroy (&attr); + +--- glibc-2.3.2-net/linuxthreads/semaphore.h 25 Jun 2001 11:31:17 -0000 1.1.1.6 ++++ glibc-2.3.2-redhat/linuxthreads/semaphore.h 5 Apr 2002 10:02:50 -0000 1.2 +@@ -21,6 +21,7 @@ + # define __need_timespec + # include + #endif ++#include + + #ifndef _PTHREAD_DESCR_DEFINED + /* Thread descriptors. Needed for `sem_t' definition. */ + diff --git a/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-nptl-fixes.patch b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-nptl-fixes.patch new file mode 100644 index 000000000000..c25a834b55dc --- /dev/null +++ b/sys-libs/glibc/files/2.3.2/glibc-2.3.2-redhat-nptl-fixes.patch @@ -0,0 +1,25 @@ +--- glibc-2.3.2-net/nptl/Makefile 15 May 2003 13:07:24 -0000 1.1.1.45 ++++ glibc-2.3.2-redhat/nptl/Makefile 15 May 2003 13:28:12 -0000 1.50 +@@ -330,15 +330,19 @@ $(addprefix $(objpfx), \ + $(tests) $(test-srcs))): $(objpfx)libpthread.so \ + $(objpfx)libpthread_nonshared.a + $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so +-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so, ++# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so, + # since otherwise libpthread.so comes before libc.so when linking. + $(addprefix $(objpfx), $(tests-reverse)): \ +- $(objpfx)../libc.so $(objpfx)libpthread.so \ ++ $(objpfx)linklibc.so $(objpfx)libpthread.so \ + $(objpfx)libpthread_nonshared.a + $(objpfx)../libc.so: $(common-objpfx)libc.so ; + $(addprefix $(objpfx),$(tests-static)): $(objpfx)libpthread.a + + $(objpfx)tst-atfork2.out: $(objpfx)tst-atfork2mod.so ++ ++$(objpfx)linklibc.so: $(common-objpfx)libc.so ++ ln -s ../libc.so $@ ++generated += libclink.so + else + $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a + endif + diff --git a/sys-libs/glibc/files/digest-glibc-2.3.2-r1 b/sys-libs/glibc/files/digest-glibc-2.3.2-r1 index 5347377ed3c8..7fb46fc2407d 100644 --- a/sys-libs/glibc/files/digest-glibc-2.3.2-r1 +++ b/sys-libs/glibc/files/digest-glibc-2.3.2-r1 @@ -1,3 +1,3 @@ MD5 ede969aad568f48083e413384f20753c glibc-2.3.2.tar.bz2 13377170 MD5 894b8969cfbdf787c73e139782167607 glibc-linuxthreads-2.3.2.tar.bz2 216310 -MD5 d1f6f3b48ab60c753b6bdeec9208d393 nptl-0.29.tar.bz2 152937 +MD5 befedad981599e1a673e19c3e63d6dce nptl-0.28.tar.bz2 145910 diff --git a/sys-libs/glibc/files/digest-glibc-2.3.2-r2 b/sys-libs/glibc/files/digest-glibc-2.3.2-r2 new file mode 100644 index 000000000000..8cd071e13fa8 --- /dev/null +++ b/sys-libs/glibc/files/digest-glibc-2.3.2-r2 @@ -0,0 +1,4 @@ +MD5 ede969aad568f48083e413384f20753c glibc-2.3.2.tar.bz2 13377170 +MD5 894b8969cfbdf787c73e139782167607 glibc-linuxthreads-2.3.2.tar.bz2 216310 +MD5 b87f2ce534e2b933c861e651dd58d5ec nptl-0.39.tar.bz2 179601 +MD5 75f1469e9a1db4a5f5cd0e9fa6d5dfcc glibc-2.3.2-branch-update-20030517-1.patch.bz2 647903 diff --git a/sys-libs/glibc/files/nscd.conf b/sys-libs/glibc/files/nscd.conf new file mode 100644 index 000000000000..226dda377f6d --- /dev/null +++ b/sys-libs/glibc/files/nscd.conf @@ -0,0 +1,45 @@ +# +# /etc/nscd.conf +# +# An example Name Service Cache config file. This file is needed by nscd. +# +# Legal entries are: +# +# logfile +# debug-level +# threads <#threads to use> +# server-user +# server-user is ignored if nscd is started with -S parameters +# +# enable-cache +# positive-time-to-live