forked from pool/glibc
Accepting request 143762 from Base:System
Update to current git head. (forwarded request 143761 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/143762 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=129
This commit is contained in:
parent
1c42f97ac5
commit
6be2c2808d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0bd758d05a8abeb05258a9f5c253969c201ad76e6f6c6bebdc4e8883a3cf2443
|
|
||||||
size 11142916
|
|
3
glibc-2.16.90-f638872ab422.tar.xz
Normal file
3
glibc-2.16.90-f638872ab422.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f470c705a84e326a17e07c600897bd7ad9a5a23a7a42c8c640cf7399a35f6390
|
||||||
|
size 11157404
|
@ -1,59 +0,0 @@
|
|||||||
2011-07-21 Aurelien Jarno <aurel32@debian.org>
|
|
||||||
|
|
||||||
* resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
|
|
||||||
depending n and resplen2 to catch cases where answer
|
|
||||||
equals answerp2.
|
|
||||||
|
|
||||||
diff --git a/resolv/res_query.c b/resolv/res_query.c
|
|
||||||
index 2f7cfaa..405fa68 100644
|
|
||||||
--- a/resolv/res_query.c
|
|
||||||
+++ b/resolv/res_query.c
|
|
||||||
@@ -122,6 +122,7 @@ __libc_res_nquery(res_state statp,
|
|
||||||
int *resplen2)
|
|
||||||
{
|
|
||||||
HEADER *hp = (HEADER *) answer;
|
|
||||||
+ HEADER *hp2;
|
|
||||||
int n, use_malloc = 0;
|
|
||||||
u_int oflags = statp->_flags;
|
|
||||||
|
|
||||||
@@ -239,26 +240,25 @@ __libc_res_nquery(res_state statp,
|
|
||||||
/* __libc_res_nsend might have reallocated the buffer. */
|
|
||||||
hp = (HEADER *) *answerp;
|
|
||||||
|
|
||||||
- /* We simplify the following tests by assigning HP to HP2. It
|
|
||||||
- is easy to verify that this is the same as ignoring all
|
|
||||||
- tests of HP2. */
|
|
||||||
- HEADER *hp2 = answerp2 ? (HEADER *) *answerp2 : hp;
|
|
||||||
-
|
|
||||||
- if (n < (int) sizeof (HEADER) && answerp2 != NULL
|
|
||||||
- && *resplen2 > (int) sizeof (HEADER))
|
|
||||||
+ /* We simplify the following tests by assigning HP to HP2 or
|
|
||||||
+ vice versa. It is easy to verify that this is the same as
|
|
||||||
+ ignoring all tests of HP or HP2. */
|
|
||||||
+ if (answerp2 == NULL || *resplen2 < (int) sizeof (HEADER))
|
|
||||||
{
|
|
||||||
- /* Special case of partial answer. */
|
|
||||||
- assert (hp != hp2);
|
|
||||||
- hp = hp2;
|
|
||||||
+ hp2 = hp;
|
|
||||||
}
|
|
||||||
- else if (answerp2 != NULL && *resplen2 < (int) sizeof (HEADER)
|
|
||||||
- && n > (int) sizeof (HEADER))
|
|
||||||
+ else
|
|
||||||
{
|
|
||||||
- /* Special case of partial answer. */
|
|
||||||
- assert (hp != hp2);
|
|
||||||
- hp2 = hp;
|
|
||||||
+ hp2 = (HEADER *) *answerp2;
|
|
||||||
+ if (n < (int) sizeof (HEADER))
|
|
||||||
+ {
|
|
||||||
+ hp = hp2;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* Make sure both hp and hp2 are defined */
|
|
||||||
+ assert((hp != NULL) && (hp2 != NULL));
|
|
||||||
+
|
|
||||||
if ((hp->rcode != NOERROR || ntohs(hp->ancount) == 0)
|
|
||||||
&& (hp2->rcode != NOERROR || ntohs(hp2->ancount) == 0)) {
|
|
||||||
#ifdef DEBUG
|
|
@ -1,25 +0,0 @@
|
|||||||
Index: glibc-2.15.90/elf/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- glibc-2.15.90.orig/elf/Makefile
|
|
||||||
+++ glibc-2.15.90/elf/Makefile
|
|
||||||
@@ -50,6 +50,7 @@ include ../Makeconfig
|
|
||||||
ifeq ($(unwind-find-fde),yes)
|
|
||||||
routines += unwind-dw2-fde-glibc
|
|
||||||
shared-only-routines += unwind-dw2-fde-glibc
|
|
||||||
+CFLAGS-unwind-dw2-fde-glibc.c = -fno-strict-aliasing
|
|
||||||
endif
|
|
||||||
|
|
||||||
before-compile = $(objpfx)trusted-dirs.h
|
|
||||||
Index: glibc-2.15.90/sunrpc/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- glibc-2.15.90.orig/sunrpc/Makefile
|
|
||||||
+++ glibc-2.15.90/sunrpc/Makefile
|
|
||||||
@@ -145,6 +145,8 @@ CFLAGS-key_call.c = -fexceptions
|
|
||||||
CFLAGS-pmap_rmt.c = -fexceptions
|
|
||||||
CFLAGS-clnt_perr.c = -fexceptions
|
|
||||||
CFLAGS-openchild.c = -fexceptions
|
|
||||||
+CFLAGS-clnt_tcp.c = -fno-strict-aliasing
|
|
||||||
+CFLAGS-clnt_unix.c = -fno-strict-aliasing
|
|
||||||
|
|
||||||
sunrpc-CPPFLAGS = -D_RPC_THREAD_SAFE_
|
|
||||||
CPPFLAGS += $(sunrpc-CPPFLAGS)
|
|
@ -1,3 +1,27 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 1 08:55:05 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
- Update to f638872ab422:
|
||||||
|
Fix regression introduced with last update in sunrpc code
|
||||||
|
Fix assertion failure in resolver
|
||||||
|
Bug fixes
|
||||||
|
- Remove upstreamed patch glibc-resolv-assert.diff
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 30 09:15:15 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
- Update to c93ec1f091ec:
|
||||||
|
Warn about unsupported DT_FLAGS_1 flags
|
||||||
|
Add Interlingua locale
|
||||||
|
Bug fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 29 14:30:11 UTC 2012 - schwab@suse.de
|
||||||
|
|
||||||
|
- Remove obsolete patches:
|
||||||
|
glibc-strict-aliasing.diff
|
||||||
|
nscd-avoid-gcc-warning.diff
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 28 15:48:32 UTC 2012 - aj@suse.de
|
Wed Nov 28 15:48:32 UTC 2012 - aj@suse.de
|
||||||
|
|
||||||
|
14
glibc.spec
14
glibc.spec
@ -123,7 +123,7 @@ Provides: ld-linux.so.3(GLIBC_2.4)
|
|||||||
Version: 2.16.90
|
Version: 2.16.90
|
||||||
Release: 0
|
Release: 0
|
||||||
%define glibc_major_version 2.16.90
|
%define glibc_major_version 2.16.90
|
||||||
%define git_id e3c6aa3a5848
|
%define git_id f638872ab422
|
||||||
Url: http://www.gnu.org/software/libc/libc.html
|
Url: http://www.gnu.org/software/libc/libc.html
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Source: glibc-%{version}-%{git_id}.tar.xz
|
Source: glibc-%{version}-%{git_id}.tar.xz
|
||||||
@ -232,12 +232,6 @@ Patch305: glibc-nscd-hconf.diff
|
|||||||
# PATCH-FIX-OPENSUSE disable rewriting ::1 to 127.0.0.1 for /etc/hosts bnc#684534, bnc#706719
|
# PATCH-FIX-OPENSUSE disable rewriting ::1 to 127.0.0.1 for /etc/hosts bnc#684534, bnc#706719
|
||||||
Patch306: glibc-fix-double-loopback.diff
|
Patch306: glibc-fix-double-loopback.diff
|
||||||
|
|
||||||
### Misc patches
|
|
||||||
# FIX-OPENSUSE compile some files with -fno-strict-aliasing
|
|
||||||
Patch401: glibc-strict-aliasing.diff
|
|
||||||
# PATCH-FIX-OPENSUSE avoid false positive warning that triggers brp postcheck fail
|
|
||||||
Patch402: nscd-avoid-gcc-warning.diff
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Patches from upstream
|
# Patches from upstream
|
||||||
###
|
###
|
||||||
@ -245,8 +239,6 @@ Patch402: nscd-avoid-gcc-warning.diff
|
|||||||
###
|
###
|
||||||
# Patches awaiting upstream approval
|
# Patches awaiting upstream approval
|
||||||
###
|
###
|
||||||
# PATCH-FIX-UPSTREAM Fix assertion error in res_query.c (bso#13013)
|
|
||||||
Patch2001: glibc-resolv-assert.diff
|
|
||||||
# PATCH-FIX-OPENSUSE Fix LD_PROFILE (glibc bug#13818) - aj@suse.de
|
# PATCH-FIX-OPENSUSE Fix LD_PROFILE (glibc bug#13818) - aj@suse.de
|
||||||
Patch2008: glibc-ld-profile.patch
|
Patch2008: glibc-ld-profile.patch
|
||||||
|
|
||||||
@ -468,14 +460,10 @@ rm nscd/s-stamp
|
|||||||
%patch305 -p1
|
%patch305 -p1
|
||||||
%patch306 -p1
|
%patch306 -p1
|
||||||
|
|
||||||
%patch401 -p1
|
|
||||||
%patch402 -p1
|
|
||||||
|
|
||||||
%ifarch armv7l armv7hl
|
%ifarch armv7l armv7hl
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%patch2001 -p1
|
|
||||||
# XXX Disable, it breaks the testsuite, test elf/tst-audit2
|
# XXX Disable, it breaks the testsuite, test elf/tst-audit2
|
||||||
# %patch2008 -p1
|
# %patch2008 -p1
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
Index: glibc-2.15.90/nscd/connections.c
|
|
||||||
===================================================================
|
|
||||||
--- glibc-2.15.90.orig/nscd/connections.c
|
|
||||||
+++ glibc-2.15.90/nscd/connections.c
|
|
||||||
@@ -1803,6 +1803,8 @@ handle_request: request received (Versio
|
|
||||||
++nready;
|
|
||||||
}
|
|
||||||
/* NOTREACHED */
|
|
||||||
+ assert(0);
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user