SHA256
1
0
forked from pool/glibc

- Upgrade to latest release/2.11/master - glibc-2.11.3-b72646ad0c41

- Random assortion of bugfixes, some #defines for new kernels
- Retired patches:
  - glibc-2.11.3-bnc658509.diff
  - glibc-2.11.3-bso12397.diff
  - glibc-sparc64-fxstat.diff
- Remove the NSS hack of opening modules using RTLD_DEEPBIND.
  This was useful for nss_ldap, since some applications used a different
  LDAP library with clashing symbol names. However, it also created
  many headaches, especially with the NSS modules not respecting
  malloc() overrides. Now, sssd is used by default for LDAP resolutions
  and we can therefore safely get rid of the hack. [bnc#477061]
- Remove the currently disabled AMD string function overrides.
  Benchmarking did not unearth any differences that would make
  convincing case for keeping the functions with all the associated
  maintenance headaches; AMD does not recommend keeping their custom
  versions of the functions either.

OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=47
This commit is contained in:
Petr Baudis 2011-02-04 01:37:38 +00:00 committed by Git OBS Bridge
parent 978b829750
commit 6199fe8ce7
9 changed files with 30 additions and 4525 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe7395ed702de089ef4f719d3ca0ae0477dbe9c3c0a049aa4bd89f441a00b72e
size 15666419

View File

@ -1,20 +0,0 @@
--- ./string/bits/string3.h.orig 2010-12-09 13:29:45.000000000 +0100
+++ ./string/bits/string3.h 2010-12-09 13:30:15.000000000 +0100
@@ -53,7 +53,7 @@
}
__extern_always_inline void *
-__NTH (memmove (void *__restrict __dest, __const void *__restrict __src,
+__NTH (memmove (void * __dest, __const void * __src,
size_t __len))
{
return __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest));
@@ -88,7 +88,7 @@
#ifdef __USE_BSD
__extern_always_inline void
-__NTH (bcopy (__const void *__restrict __src, void *__restrict __dest,
+__NTH (bcopy (__const void * __src, void * __dest,
size_t __len))
{
(void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest));

View File

@ -1,11 +0,0 @@
--- sysdeps/unix/sysv/linux/mkdirat.c.orig 2011-01-28 15:50:00.000000000 +0100
+++ sysdeps/unix/sysv/linux/mkdirat.c 2011-01-28 15:51:42.000000000 +0100
@@ -43,7 +43,7 @@
{
res = INLINE_SYSCALL (mkdirat, 3, fd, file, mode);
# ifndef __ASSUME_ATFCTS
- if (res == -1 && res == ENOSYS)
+ if (res == -1 && errno == ENOSYS)
__have_atfcts = -1;
else
# endif

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e3402f050984b78d0784efbd2115d90a4bb4376803fd3f00c25aee28cf7fb92
size 15669411

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
Use DEEPBIND to load the nss modules. Helps thunderbird (linked against its
own version of the ldap libs) when using nss_ldap (linked against system
libldap) leading to crashes due to incompatibilities.
This has a downside: Linking against libraries overriding malloc() and free()
will break (unless the malloc()'d pointers by glibc are free()able by these).
This is fixable in principle, just needs some work.
See https://bugzilla.novell.com/show_bug.cgi?id=157078 and
http://sourceware.org/bugzilla/show_bug.cgi?id=6610
Index: nss/nsswitch.c
===================================================================
--- nss/nsswitch.c.orig
+++ nss/nsswitch.c
@@ -361,7 +361,9 @@ __nss_lookup_function (service_user *ni,
".so"),
__nss_shlib_revision);
- ni->library->lib_handle = __libc_dlopen (shlib_name);
+ ni->library->lib_handle
+ = __libc_dlopen_mode (shlib_name,
+ RTLD_LAZY | __RTLD_DLOPEN | RTLD_DEEPBIND);
if (ni->library->lib_handle == NULL)
{
/* Failed to load the library. */

View File

@ -1,7 +0,0 @@
Index: glibc-2.10.1/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
===================================================================
--- glibc-2.10.1.orig/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
+++ glibc-2.10.1/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
@@ -1 +1 @@
-#include "../../fxstat.c"
+#include "../../i386/fxstat.c"

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Fri Feb 4 00:46:40 CET 2011 - pbaudis@suse.cz
- Upgrade to latest release/2.11/master - glibc-2.11.3-b72646ad0c41
- Random assortion of bugfixes, some #defines for new kernels
- Retired patches:
- glibc-2.11.3-bnc658509.diff
- glibc-2.11.3-bso12397.diff
- glibc-sparc64-fxstat.diff
- Remove the NSS hack of opening modules using RTLD_DEEPBIND.
This was useful for nss_ldap, since some applications used a different
LDAP library with clashing symbol names. However, it also created
many headaches, especially with the NSS modules not respecting
malloc() overrides. Now, sssd is used by default for LDAP resolutions
and we can therefore safely get rid of the hack. [bnc#477061]
- Remove the currently disabled AMD string function overrides.
Benchmarking did not unearth any differences that would make
convincing case for keeping the functions with all the associated
maintenance headaches; AMD does not recommend keeping their custom
versions of the functions either.
-------------------------------------------------------------------
Fri Jan 28 14:53:35 UTC 2011 - rguenther@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package glibc (Version 2.11.3)
# spec file for package glibc
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -68,7 +68,7 @@ Release: 3
Url: http://www.gnu.org/software/libc/libc.html
PreReq: filesystem
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: glibc-%{version}.tar.bz2
Source: glibc-%{version}-b72646ad0c41.tar.bz2
Source2: glibc-ports-2.10.1-2b2b217196.tar.bz2
Source3: noversion.tar.bz2
Source4: manpages.tar.bz2
@ -98,7 +98,6 @@ Patch9: glibc-2.3-regcomp.diff
Patch10: glibc-2.3.2-revert_tcsetattr.diff
Patch11: glibc-2.3.1.localedef.diff
Patch12: glibc-2.3.2.no_archive.diff
Patch13: glibc-2.3.3-amd64-string.diff
Patch14: libm-x86-64.diff.bz2
Patch15: glibc-2.3.90-bindresvport.blacklist.diff
Patch16: glibc-suse-note.diff
@ -119,7 +118,6 @@ Patch32: glibc-2.8-getconf.diff
Patch33: getaddrinfo-ipv6-sanity.diff
Patch35: ppc-atomic.diff
Patch36: glibc-2.8-clone.diff
Patch37: glibc-nss-deepbind.diff
Patch39: glibc-compiled-binaries.diff
Patch40: glibc-selinux.diff
Patch41: glibc-check-native-missing-include.diff
@ -139,10 +137,6 @@ Patch500: ARM_glibc-2.10.1-local-eabi-wchar.diff
Patch501: ARM_glibc-2.10.1-local-hwcap-updates.diff
Patch502: ARM_glibc-2.10.1-local-lowlevellock.diff
Patch503: ARM_glibc-2.10.1-local-no-hwcap.diff
# http://sources.redhat.com/bugzilla/show_bug.cgi?id=11155
Patch600: glibc-sparc64-fxstat.diff
Patch601: glibc-2.11.3-bnc658509.diff
Patch602: glibc-2.11.3-bso12397.diff
%description
The GNU C Library provides the most important standard libraries used
@ -311,11 +305,8 @@ versions of your software.
%patch10
%patch11
%patch12
#%patch13
# strncmp.S triggers amd64 assembler bug [bnc#540647]
#rm sysdeps/x86_64/strncmp.S
%patch14 -E
# We have s_sincos.c in patch13, remove duplicate
# We have s_sincos.c in patch14, remove duplicate
rm sysdeps/x86_64/fpu/s_sincos.S
%patch15
%patch16
@ -341,7 +332,6 @@ rm nscd/s-stamp
%patch33
%patch35
%patch36
%patch37
%patch39
%patch40
%patch41
@ -363,9 +353,6 @@ rm nscd/s-stamp
%patch502
%patch503
%endif
%patch600 -p1
%patch601
%patch602
#
# Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed!
#
@ -386,12 +373,12 @@ rm nscd/s-stamp
rm -fv sysdeps/powerpc/powerpc32/power4/hp-timing.c sysdeps/powerpc/powerpc32/power4/hp-timing.h
find . -name configure | xargs touch
#######################################################################
###
### BUILD
###
#######################################################################
%build
if [ -x /bin/uname.bin ]; then
/bin/uname.bin -a
@ -556,7 +543,6 @@ $BuildCC -static -Os -g $RPM_SOURCE_DIR/glibc_post_upgrade.c -o glibc_post_upgra
%endif
'-DLIBDIR="/%{_lib}"' '-DGCONV_MODULES_DIR="%{_prefix}/%{_lib}/gconv"'
#######################################################################
###
### CHECK
@ -579,7 +565,6 @@ $BuildCC -static -Os -g $RPM_SOURCE_DIR/glibc_post_upgrade.c -o glibc_post_upgra
%endif
make -C cc-base check-abi || echo check-abi failed
#######################################################################
###
### INSTALL
@ -672,7 +657,6 @@ cp -av bits/stdio-lock.h $RPM_BUILD_ROOT%{_prefix}/include/bits/stdio-lock.h
ln -sf ../%{_lib}/ld-%{version}.so $RPM_BUILD_ROOT/lib/ld64.so.1
%endif
# Miscelanna:
install -m 0700 glibc_post_upgrade $RPM_BUILD_ROOT%{_sbindir}
@ -693,7 +677,6 @@ cp -p manual/libc/*.html $RPM_BUILD_ROOT/usr/share/doc/glibc
cd manpages; make install_root=$RPM_BUILD_ROOT install; cd ..
# nscd tools:
cp nscd/nscd.conf $RPM_BUILD_ROOT/etc
@ -767,7 +750,6 @@ for o in $RPM_BUILD_ROOT/%{_libdir}/crt[1in].o $RPM_BUILD_ROOT/%{_libdir}/lib*_n
objcopy -R ".comment.SUSE.OPTs" -R ".note.gnu.build-id" $o
done
#######################################################################
###
### ...
@ -805,7 +787,6 @@ done
%insserv_cleanup
exit 0
#######################################################################
###
### FILES
@ -813,6 +794,7 @@ exit 0
#######################################################################
# glibc
%files
%defattr(-,root,root)
%doc LICENSES