forked from pool/glibc
Accepting request 99433 from home:a_jaeger:my-factory-packages
Fixes for getcontext and vfscanf OBS-URL: https://build.opensuse.org/request/show/99433 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=151
This commit is contained in:
parent
6ce42a1fac
commit
3448a54a31
3
gb18030.patch.bz2
Normal file
3
gb18030.patch.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d6d06c85b314ec365a1430a47d2867bf1191ce5d3771d9647bc3bcf31873228a
|
||||
size 299733
|
31
glibc-2.16-scanf.patch
Normal file
31
glibc-2.16-scanf.patch
Normal file
@ -0,0 +1,31 @@
|
||||
commit 20b38e0301279a37a3f1e769843933bcc0d5f736
|
||||
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
Date: Sun Jan 8 20:13:35 2012 -0500
|
||||
|
||||
sscanf always calls realloc
|
||||
|
||||
|
||||
2012-01-05 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||
|
||||
* stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
|
||||
appropriate.
|
||||
|
||||
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
|
||||
index 0e71deb..e18a6c3 100644
|
||||
--- a/stdio-common/vfscanf.c
|
||||
+++ b/stdio-common/vfscanf.c
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* Copyright (C) 1991-2006, 2007, 2010, 2011 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991-2007, 2010, 2011, 2012 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
|
||||
@@ -274,7 +274,7 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
|
||||
CHAR_T *old = wp; \
|
||||
size_t newsize = (UCHAR_MAX + 1 > 2 * wpmax \
|
||||
? UCHAR_MAX + 1 : 2 * wpmax); \
|
||||
- if (use_malloc || __libc_use_alloca (newsize)) \
|
||||
+ if (use_malloc || !__libc_use_alloca (newsize)) \
|
||||
{ \
|
||||
wp = realloc (use_malloc ? wp : NULL, newsize); \
|
||||
if (wp == NULL) \
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b9ad9e58edeea033b1e06ae3648f6adfce0dbf3f3e84b6ec77dda9fa5cf3a58d
|
||||
size 1034566
|
40
glibc-ppc-getcontext.patch
Normal file
40
glibc-ppc-getcontext.patch
Normal file
@ -0,0 +1,40 @@
|
||||
commit d1f741e9120669883c6fc0f6fc53b9d35e5015ce
|
||||
Author: Will Schmidt <will_schmidt@vnet.ibm.com>
|
||||
Date: Sun Jan 8 21:32:57 2012 -0500
|
||||
|
||||
Fix typo in Linux/PPC32 getcontext
|
||||
|
||||
2011-01-05 Will Schmidt <will_schmidt@vnet.ibm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
|
||||
typo #include statement.
|
||||
|
||||
|
||||
* include/sys/cdefs.h: Define __attribute_alloc_size.
|
||||
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
|
||||
index dad1074..46f3dea 100644
|
||||
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
|
||||
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Save current context.
|
||||
- Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
+ Copyright (C) 2002, 2004, 2005, 2012 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
|
||||
@@ -54,12 +54,12 @@ versioned_symbol (libc, __getcontext, getcontext, GLIBC_2_3_4)
|
||||
|
||||
#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)
|
||||
compat_text_section
|
||||
-
|
||||
-# undef __CONTEXT_FUNC_NAME
|
||||
+
|
||||
+# undef __CONTEXT_FUNC_NAME
|
||||
# define __CONTEXT_FUNC_NAME __novec_getcontext
|
||||
# undef __CONTEXT_ENABLE_VRS
|
||||
|
||||
-# clude "getcontext-common.S"
|
||||
+# include "getcontext-common.S"
|
||||
|
||||
.previous
|
||||
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 9 08:17:08 UTC 2012 - aj@suse.de
|
||||
|
||||
- Fix realloc usage in vfscanf (glibc-2.16-scanf.patch)
|
||||
- Fix getcontext on powerpc 32-bit (glibc-ppc-getcontext.patch)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 4 09:34:28 UTC 2012 - aj@suse.de
|
||||
|
||||
- Remove patch glibc-2.3.4-gb18030-big5hkscs.diff.bz2 and
|
||||
replace it by gb18030.patch.bz2 (synced with Fedora 16).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 3 19:42:17 UTC 2012 - aj@suse.de
|
||||
|
||||
|
13
glibc.spec
13
glibc.spec
@ -129,7 +129,7 @@ Patch16: glibc-2.4.90-no_NO.diff
|
||||
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
||||
Patch20: glibc-2.4-china.diff
|
||||
# PATCH-FIX-OPENSUSE Fix gb18030 code bnc#54080
|
||||
Patch21: glibc-2.3.4-gb18030-big5hkscs.diff.bz2
|
||||
Patch21: gb18030.patch.bz2
|
||||
# PATCH-FIX-OPENSUSE Handle timestamp, adjust nscd.conf
|
||||
Patch22: glibc-2.4.90-nscd.diff
|
||||
# PATCH-FIX-OPENSUSE Fix path for nscd databases
|
||||
@ -188,8 +188,12 @@ Patch82: crypt_blowfish-1.2-hack_around_arm.diff
|
||||
Patch84: nscd-avoid-gcc-warning.diff
|
||||
# PATCH-FIX-OPENSUSE fixed build-compare by omitting one more date - meissner@suse.de
|
||||
Patch87: glibc-nodate.patch
|
||||
# PATCH-FIX-OPENSUSE revert pthread-cond-wait change since it causes hangs
|
||||
# PATCH-FIX-OPENSUSE revert pthread-cond-wait change since it causes hangs - aj@suse.de
|
||||
Patch88: pthread-cond-wait-revert.patch
|
||||
# PATCH-FIX-UPSTREAM Fix realloc usage in vfscanf - aj@suse.de
|
||||
Patch89: glibc-2.16-scanf.patch
|
||||
# PATCH-FIX-UPSTREAM Fix getcontext on 32-bit powerpc - aj@suse.de
|
||||
Patch90: glibc-ppc-getcontext.patch
|
||||
|
||||
%description
|
||||
The GNU C Library provides the most important standard libraries used
|
||||
@ -372,8 +376,7 @@ mv crypt_blowfish-%crypt_bf_version/*.[chS] crypt/
|
||||
%patch14
|
||||
%patch16
|
||||
%patch20
|
||||
# XXX Did not patch for 2.14:
|
||||
#%patch21
|
||||
%patch21 -p1
|
||||
# avoid changing nscd_stat.c mtime to avoid code generation
|
||||
# differences on each rebuild
|
||||
touch -r nscd/nscd_stat.c nscd/s-stamp
|
||||
@ -406,6 +409,8 @@ rm nscd/s-stamp
|
||||
%patch84
|
||||
%patch87 -p0
|
||||
%patch88 -p1 -R
|
||||
%patch89 -p1
|
||||
%patch90 -p1
|
||||
|
||||
#
|
||||
# Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed!
|
||||
|
Loading…
Reference in New Issue
Block a user