# HG changeset patch # User Stanislas Leduc # Date 1684267714 0 # Node ID 7d24d697015fea625dbfba937f40237d1580592a # Parent 9d807f162a2298a63a097e9e8b7a30450e800dbb Bump toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37 diff -r 9d807f162a22 -r 7d24d697015f gcc-lib-base/receipt --- a/gcc-lib-base/receipt Sun May 14 19:10:16 2023 +0000 +++ b/gcc-lib-base/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gcc-lib-base" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." WEB_SITE="http://gcc.gnu.org/" diff -r 9d807f162a22 -r 7d24d697015f gcc-lib-math/receipt --- a/gcc-lib-math/receipt Sun May 14 19:10:16 2023 +0000 +++ b/gcc-lib-math/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gcc-lib-math" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="GCC math libraries, libquadmath." WEB_SITE="http://gcc.gnu.org/" diff -r 9d807f162a22 -r 7d24d697015f gcc/receipt --- a/gcc/receipt Sun May 14 19:10:16 2023 +0000 +++ b/gcc/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gcc" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="The GNU Compiler Collection." MAINTAINER="pankso@slitaz.org" diff -r 9d807f162a22 -r 7d24d697015f gfortran/receipt --- a/gfortran/receipt Sun May 14 19:10:16 2023 +0000 +++ b/gfortran/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gfortran" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="GCC fortran extension." WEB_SITE="http://gcc.gnu.org/" diff -r 9d807f162a22 -r 7d24d697015f glibc-base/receipt --- a/glibc-base/receipt Sun May 14 19:10:16 2023 +0000 +++ b/glibc-base/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="glibc-base" -VERSION="2.14.1" +VERSION="2.19" CATEGORY="base-system" SHORT_DESC="GNU libc minimal libraries and UTF-8 support for SliTaz." WEB_SITE="http://www.gnu.org/software/libc/" diff -r 9d807f162a22 -r 7d24d697015f glibc-base/stuff/i486-files.list --- a/glibc-base/stuff/i486-files.list Sun May 14 19:10:16 2023 +0000 +++ b/glibc-base/stuff/i486-files.list Tue May 16 20:08:34 2023 +0000 @@ -1,18 +1,18 @@ -/lib/libutil-2.14.1.so -/lib/libnss_dns-2.14.1.so -/lib/libnsl-2.14.1.so -/lib/libanl-2.14.1.so -/lib/libm-2.14.1.so -/lib/libpthread-2.14.1.so +/lib/libutil-2.19.so +/lib/libnss_dns-2.19.so +/lib/libnsl-2.19.so +/lib/libanl-2.19.so +/lib/libm-2.19.so +/lib/libpthread-2.19.so /lib/libthread_db-1.0.so -/lib/libnss_compat-2.14.1.so -/lib/libc-2.14.1.so -/lib/librt-2.14.1.so -/lib/libcrypt-2.14.1.so -/lib/ld-2.14.1.so -/lib/libresolv-2.14.1.so -/lib/libnss_files-2.14.1.so -/lib/libdl-2.14.1.so +/lib/libnss_compat-2.19.so +/lib/libc-2.19.so +/lib/librt-2.19.so +/lib/libcrypt-2.19.so +/lib/ld-2.19.so +/lib/libresolv-2.19.so +/lib/libnss_files-2.19.so +/lib/libdl-2.19.so /usr/lib/gconv/UNICODE.so /usr/lib/gconv/gconv-modules @@ -44,8 +44,6 @@ /usr/share/i18n/locales/translit_small /usr/share/i18n/locales/translit_wide -/usr/share/zoneinfo/UTC - /etc/rpc /etc/ld.so.conf /etc/ld.so.cache diff -r 9d807f162a22 -r 7d24d697015f glibc-base/stuff/wanted-files.list --- a/glibc-base/stuff/wanted-files.list Sun May 14 19:10:16 2023 +0000 +++ b/glibc-base/stuff/wanted-files.list Tue May 16 20:08:34 2023 +0000 @@ -1,18 +1,18 @@ -/lib/libutil-2.14.1.so -/lib/libnss_dns-2.14.1.so -/lib/libnsl-2.14.1.so -/lib/libanl-2.14.1.so -/lib/libm-2.14.1.so -/lib/libpthread-2.14.1.so +/lib/libutil-2.19.so +/lib/libnss_dns-2.19.so +/lib/libnsl-2.19.so +/lib/libanl-2.19.so +/lib/libm-2.19.so +/lib/libpthread-2.19.so /lib/libthread_db-1.0.so -/lib/libnss_compat-2.14.1.so -/lib/libc-2.14.1.so -/lib/librt-2.14.1.so -/lib/libcrypt-2.14.1.so -/lib/ld-2.14.1.so -/lib/libresolv-2.14.1.so -/lib/libnss_files-2.14.1.so -/lib/libdl-2.14.1.so +/lib/libnss_compat-2.19.so +/lib/libc-2.19.so +/lib/librt-2.19.so +/lib/libcrypt-2.19.so +/lib/ld-2.19.so +/lib/libresolv-2.19.so +/lib/libnss_files-2.19.so +/lib/libdl-2.19.so /usr/lib/gconv/UNICODE.so /usr/lib/gconv/gconv-modules @@ -44,8 +44,6 @@ /usr/share/i18n/locales/translit_small /usr/share/i18n/locales/translit_wide -/usr/share/zoneinfo/UTC - /etc/rpc /etc/ld.so.conf /etc/ld.so.cache diff -r 9d807f162a22 -r 7d24d697015f glibc-dev/receipt --- a/glibc-dev/receipt Sun May 14 19:10:16 2023 +0000 +++ b/glibc-dev/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="glibc-dev" -VERSION="2.14.1" +VERSION="2.19" CATEGORY="development" SHORT_DESC="The GNU C libraries devel files (Part of SliTaz toolchain)." MAINTAINER="pankso@slitaz.org" diff -r 9d807f162a22 -r 7d24d697015f glibc-locale/receipt --- a/glibc-locale/receipt Sun May 14 19:10:16 2023 +0000 +++ b/glibc-locale/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="glibc-locale" -VERSION="2.14.1" +VERSION="2.19" CATEGORY="system-tools" SHORT_DESC="The GNU C libraries locale files and utilities (see also locale-*)." MAINTAINER="pankso@slitaz.org" diff -r 9d807f162a22 -r 7d24d697015f glibc/receipt --- a/glibc/receipt Sun May 14 19:10:16 2023 +0000 +++ b/glibc/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="glibc" -VERSION="2.14.1" +VERSION="2.19" CATEGORY="meta" SHORT_DESC="The GNU C libraries. This package is used to compile the libc." MAINTAINER="pankso@slitaz.org" @@ -84,33 +84,43 @@ sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in + # Glibc misc Bug Fixes + # fix for {linux,sys}/xattr.h incompatibility - commit fdbe8eae + patch -p1 -i $stuff/glibc-2.19-xattr_header.patch + + # fix issues in sin/cos slow path calculation - commit ffe768a9 + patch -p1 -i $stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch + + # fix tzselect with missing TZDIR - commit 893b4f37/c72399fb + patch -p1 -i $stuff/glibc-2.19-tzselect-default.patch + # Glibc misc Bug Fixes - patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch + #patch -Np1 -i $stuff/glibc-2.14.1-fixes-1.patch # Glibc Bug Sort Relocatable Objects Patch #patch -Np1 -i $stuff/glibc-2.14.1-sort-1.patch # Fix a bug that prevents Glibc from building with GCC-4.6.2 - patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch + #patch -Np1 -i $stuff/glibc-2.14.1-gcc_fix-1.patch # Revert commit causing issues with crappy DNS servers patch -Np1 -i $stuff/glibc-2.14-revert-4768ae77.patch # re-export RPC interface until libtirpc is ready as a replacement # http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=acee4873 (only fedora branch...) - patch -Np1 -i $stuff/glibc-2.14-reexport-rpc-interface.patch + #patch -Np1 -i $stuff/glibc-2.14-reexport-rpc-interface.patch # http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=bdd816a3 (only fedora branch...) - patch -Np1 -i $stuff/glibc-2.14-reinstall-nis-rpc-headers.patch + #patch -Np1 -i $stuff/glibc-2.14-reinstall-nis-rpc-headers.patch # GHOST - patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch + #patch -Np1 -i $stuff/glibc-2.14.1-CVE-2015-0235.patch # Update for binutils 2.29, see https://sourceware.org/bugzilla/show_bug.cgi?id=21661 sed -i 's|obstack_compat;|obstack_compat __attribute__ ((nocommon));|' malloc/obstack.c # Fix a stack imbalance that occurs under some conditions: - sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \ - nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S \ - nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S + #sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \ + # nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S \ + # nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S # Glibc needs ld.so.conf in the install destdir. mkdir -p $WOK/$PACKAGE/install/etc @@ -132,6 +142,7 @@ --disable-profile \ --enable-add-ons \ --enable-kernel=2.6.30 \ + --enable-obsolete-rpc \ --libexecdir=/usr/lib/glibc \ --build=$HOST_SYSTEM \ --host=$HOST_SYSTEM \ diff -r 9d807f162a22 -r 7d24d697015f glibc/stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/glibc/stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch Tue May 16 20:08:34 2023 +0000 @@ -0,0 +1,71 @@ + +From ffe768a90912f9bce43b70a82576b3dc99e3121c Mon Sep 17 00:00:00 2001 +From: Siddhesh Poyarekar +Date: Thu, 27 Feb 2014 21:29:16 +0530 +Subject: [PATCH] Fix sign of input to bsloww1 (BZ #16623) + +In 84ba214c, I removed some redundant sign computations and in the +process, I incorrectly got rid of a temporary variable, thus passing +the absolute value of the input to bsloww1. This caused #16623. + +This fix undoes the incorrect change. +--- + sysdeps/ieee754/dbl-64/s_sin.c | 16 ++++++++++------ + 3 files changed, 18 insertions(+), 7 deletions(-) + +diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c +index 6105e9f..50109b8 100644 +--- a/sysdeps/ieee754/dbl-64/s_sin.c ++++ b/sysdeps/ieee754/dbl-64/s_sin.c +@@ -447,19 +447,21 @@ __sin (double x) + } + else + { ++ double t; + if (a > 0) + { + m = 1; ++ t = a; + db = da; + } + else + { + m = 0; +- a = -a; ++ t = -a; + db = -da; + } +- u.x = big + a; +- y = a - (u.x - big); ++ u.x = big + t; ++ y = t - (u.x - big); + res = do_sin (u, y, db, &cor); + cor = (cor > 0) ? 1.035 * cor + eps : 1.035 * cor - eps; + retval = ((res == res + cor) ? ((m) ? res : -res) +@@ -671,19 +673,21 @@ __cos (double x) + } + else + { ++ double t; + if (a > 0) + { + m = 1; ++ t = a; + db = da; + } + else + { + m = 0; +- a = -a; ++ t = -a; + db = -da; + } +- u.x = big + a; +- y = a - (u.x - big); ++ u.x = big + t; ++ y = t - (u.x - big); + res = do_sin (u, y, db, &cor); + cor = (cor > 0) ? 1.035 * cor + eps : 1.035 * cor - eps; + retval = ((res == res + cor) ? ((m) ? res : -res) +-- +1.9.0 diff -r 9d807f162a22 -r 7d24d697015f glibc/stuff/glibc-2.19-tzselect-default.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/glibc/stuff/glibc-2.19-tzselect-default.patch Tue May 16 20:08:34 2023 +0000 @@ -0,0 +1,13 @@ +diff --git a/timezone/Makefile b/timezone/Makefile +index 998cd14..d5f647c 100644 +--- a/timezone/Makefile ++++ b/timezone/Makefile +@@ -118,7 +118,7 @@ $(testdata)/Asia/Tokyo: asia $(zic-deps) + + $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make + sed -e 's|/bin/bash|$(KSH)|g' \ +- -e '/TZDIR=/s|\$$(pwd)|$(zonedir)|' \ ++ -e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \ + -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ + -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ + -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \ diff -r 9d807f162a22 -r 7d24d697015f glibc/stuff/glibc-2.19-xattr_header.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/glibc/stuff/glibc-2.19-xattr_header.patch Tue May 16 20:08:34 2023 +0000 @@ -0,0 +1,43 @@ +From: Serge Hallyn +Date: Tue, 11 Mar 2014 04:17:07 +0000 (-0500) +Subject: misc/sys/xattr.h: guard against linux uapi header inclusion +X-Git-Url: https://sourceware.org/git/?p=glibc.git;a=commitdiff_plain;h=fdbe8eae;hp=fede7a5ffa188c22c3789135bd5cf82e487dd3d0 + +misc/sys/xattr.h: guard against linux uapi header inclusion + +If the glibc xattr.h header is included after the uapi header, +compilation fails due to an enum re-using a #define from the +uapi header. Protect against this by guarding the define and +enum inclusions against each other. + +(A corresponding kernel patch has been sent here: +http://lkml.org/lkml/2014/3/7/331 ) + +(See https://lists.debian.org/debian-glibc/2014/03/msg00029.html +and https://sourceware.org/glibc/wiki/Synchronizing_Headers +for more information.) + +Signed-off-by: Serge Hallyn +--- + +diff --git a/misc/sys/xattr.h b/misc/sys/xattr.h +index 929cd87..796df90 100644 +--- a/misc/sys/xattr.h ++++ b/misc/sys/xattr.h +@@ -26,6 +26,7 @@ __BEGIN_DECLS + + /* The following constants should be used for the fifth parameter of + `*setxattr'. */ ++#ifndef __USE_KERNEL_XATTR_DEFS + enum + { + XATTR_CREATE = 1, /* set value, fail if attr already exists. */ +@@ -33,6 +34,7 @@ enum + XATTR_REPLACE = 2 /* set value, fail if attr does not exist. */ + #define XATTR_REPLACE XATTR_REPLACE + }; ++#endif + + /* Set the attribute NAME of the file pointed to by PATH to VALUE (which + is SIZE bytes long). Return 0 on success, -1 for errors. */ + diff -r 9d807f162a22 -r 7d24d697015f libgfortran/receipt --- a/libgfortran/receipt Sun May 14 19:10:16 2023 +0000 +++ b/libgfortran/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libgfortran" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="misc" SHORT_DESC="GCC fortran runtime." WEB_SITE="http://gcc.gnu.org/" diff -r 9d807f162a22 -r 7d24d697015f libgomp/receipt --- a/libgomp/receipt Sun May 14 19:10:16 2023 +0000 +++ b/libgomp/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libgomp" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="API specification for parallel programming." MAINTAINER="pascal.bellard@slitaz.org" diff -r 9d807f162a22 -r 7d24d697015f libobjc/receipt --- a/libobjc/receipt Sun May 14 19:10:16 2023 +0000 +++ b/libobjc/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libobjc" -VERSION="4.6.3" +VERSION="4.9.2" CATEGORY="development" SHORT_DESC="API for gcc object" MAINTAINER="slaxemulator@gmail.com" diff -r 9d807f162a22 -r 7d24d697015f slitaz-toolchain/receipt --- a/slitaz-toolchain/receipt Sun May 14 19:10:16 2023 +0000 +++ b/slitaz-toolchain/receipt Tue May 16 20:08:34 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="slitaz-toolchain" -VERSION="5.0" +VERSION="6.0" CATEGORY="meta" SHORT_DESC="SliTaz meta package to rebuild or install current toolchain." MAINTAINER="pankso@slitaz.org"