wok-6.x rev 25564
Add missing glibc 2.19 patchs
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 08 16:56:41 2023 +0200 (18 months ago) |
parents | c45e9f534acb |
children | 3e8af413f00c |
files | glibc/stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch glibc/stuff/glibc-2.19-tzselect-default.patch glibc/stuff/glibc-2.19-xattr_header.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/glibc/stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch Mon May 08 16:56:41 2023 +0200 1.3 @@ -0,0 +1,71 @@ 1.4 + 1.5 +From ffe768a90912f9bce43b70a82576b3dc99e3121c Mon Sep 17 00:00:00 2001 1.6 +From: Siddhesh Poyarekar <siddhesh@redhat.com> 1.7 +Date: Thu, 27 Feb 2014 21:29:16 +0530 1.8 +Subject: [PATCH] Fix sign of input to bsloww1 (BZ #16623) 1.9 + 1.10 +In 84ba214c, I removed some redundant sign computations and in the 1.11 +process, I incorrectly got rid of a temporary variable, thus passing 1.12 +the absolute value of the input to bsloww1. This caused #16623. 1.13 + 1.14 +This fix undoes the incorrect change. 1.15 +--- 1.16 + sysdeps/ieee754/dbl-64/s_sin.c | 16 ++++++++++------ 1.17 + 3 files changed, 18 insertions(+), 7 deletions(-) 1.18 + 1.19 +diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c 1.20 +index 6105e9f..50109b8 100644 1.21 +--- a/sysdeps/ieee754/dbl-64/s_sin.c 1.22 ++++ b/sysdeps/ieee754/dbl-64/s_sin.c 1.23 +@@ -447,19 +447,21 @@ __sin (double x) 1.24 + } 1.25 + else 1.26 + { 1.27 ++ double t; 1.28 + if (a > 0) 1.29 + { 1.30 + m = 1; 1.31 ++ t = a; 1.32 + db = da; 1.33 + } 1.34 + else 1.35 + { 1.36 + m = 0; 1.37 +- a = -a; 1.38 ++ t = -a; 1.39 + db = -da; 1.40 + } 1.41 +- u.x = big + a; 1.42 +- y = a - (u.x - big); 1.43 ++ u.x = big + t; 1.44 ++ y = t - (u.x - big); 1.45 + res = do_sin (u, y, db, &cor); 1.46 + cor = (cor > 0) ? 1.035 * cor + eps : 1.035 * cor - eps; 1.47 + retval = ((res == res + cor) ? ((m) ? res : -res) 1.48 +@@ -671,19 +673,21 @@ __cos (double x) 1.49 + } 1.50 + else 1.51 + { 1.52 ++ double t; 1.53 + if (a > 0) 1.54 + { 1.55 + m = 1; 1.56 ++ t = a; 1.57 + db = da; 1.58 + } 1.59 + else 1.60 + { 1.61 + m = 0; 1.62 +- a = -a; 1.63 ++ t = -a; 1.64 + db = -da; 1.65 + } 1.66 +- u.x = big + a; 1.67 +- y = a - (u.x - big); 1.68 ++ u.x = big + t; 1.69 ++ y = t - (u.x - big); 1.70 + res = do_sin (u, y, db, &cor); 1.71 + cor = (cor > 0) ? 1.035 * cor + eps : 1.035 * cor - eps; 1.72 + retval = ((res == res + cor) ? ((m) ? res : -res) 1.73 +-- 1.74 +1.9.0
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/glibc/stuff/glibc-2.19-tzselect-default.patch Mon May 08 16:56:41 2023 +0200 2.3 @@ -0,0 +1,13 @@ 2.4 +diff --git a/timezone/Makefile b/timezone/Makefile 2.5 +index 998cd14..d5f647c 100644 2.6 +--- a/timezone/Makefile 2.7 ++++ b/timezone/Makefile 2.8 +@@ -118,7 +118,7 @@ $(testdata)/Asia/Tokyo: asia $(zic-deps) 2.9 + 2.10 + $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make 2.11 + sed -e 's|/bin/bash|$(KSH)|g' \ 2.12 +- -e '/TZDIR=/s|\$$(pwd)|$(zonedir)|' \ 2.13 ++ -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \ 2.14 + -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ 2.15 + -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ 2.16 + -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/glibc/stuff/glibc-2.19-xattr_header.patch Mon May 08 16:56:41 2023 +0200 3.3 @@ -0,0 +1,43 @@ 3.4 +From: Serge Hallyn <serge.hallyn@ubuntu.com> 3.5 +Date: Tue, 11 Mar 2014 04:17:07 +0000 (-0500) 3.6 +Subject: misc/sys/xattr.h: guard against linux uapi header inclusion 3.7 +X-Git-Url: https://sourceware.org/git/?p=glibc.git;a=commitdiff_plain;h=fdbe8eae;hp=fede7a5ffa188c22c3789135bd5cf82e487dd3d0 3.8 + 3.9 +misc/sys/xattr.h: guard against linux uapi header inclusion 3.10 + 3.11 +If the glibc xattr.h header is included after the uapi header, 3.12 +compilation fails due to an enum re-using a #define from the 3.13 +uapi header. Protect against this by guarding the define and 3.14 +enum inclusions against each other. 3.15 + 3.16 +(A corresponding kernel patch has been sent here: 3.17 +http://lkml.org/lkml/2014/3/7/331 ) 3.18 + 3.19 +(See https://lists.debian.org/debian-glibc/2014/03/msg00029.html 3.20 +and https://sourceware.org/glibc/wiki/Synchronizing_Headers 3.21 +for more information.) 3.22 + 3.23 +Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> 3.24 +--- 3.25 + 3.26 +diff --git a/misc/sys/xattr.h b/misc/sys/xattr.h 3.27 +index 929cd87..796df90 100644 3.28 +--- a/misc/sys/xattr.h 3.29 ++++ b/misc/sys/xattr.h 3.30 +@@ -26,6 +26,7 @@ __BEGIN_DECLS 3.31 + 3.32 + /* The following constants should be used for the fifth parameter of 3.33 + `*setxattr'. */ 3.34 ++#ifndef __USE_KERNEL_XATTR_DEFS 3.35 + enum 3.36 + { 3.37 + XATTR_CREATE = 1, /* set value, fail if attr already exists. */ 3.38 +@@ -33,6 +34,7 @@ enum 3.39 + XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */ 3.40 + #define XATTR_REPLACE XATTR_REPLACE 3.41 + }; 3.42 ++#endif 3.43 + 3.44 + /* Set the attribute NAME of the file pointed to by PATH to VALUE (which 3.45 + is SIZE bytes long). Return 0 on success, -1 for errors. */ 3.46 +