wok-4.x diff glibc/receipt @ rev 12466

New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.23.1
author Stanislas Leduc <shann@slitaz.org>
date Wed Nov 09 15:12:00 2022 +0000 (2022-11-09)
parents 1c7b5ef9b071
children bb72317ca464
line diff
     1.1 --- a/glibc/receipt	Thu Jan 29 11:20:25 2015 +0100
     1.2 +++ b/glibc/receipt	Wed Nov 09 15:12:00 2022 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="glibc"
     1.7 -VERSION="2.13"
     1.8 +VERSION="2.19"
     1.9  CATEGORY="meta"
    1.10  SHORT_DESC="The GNU C libraries. This package is used to compile the libc."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -10,7 +10,7 @@
    1.13  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.14  
    1.15  DEPENDS="glibc-base glibc-locale glibc-dev"
    1.16 -BUILD_DEPENDS="linux-api-headers"
    1.17 +BUILD_DEPENDS="linux-api-headers autoconf bash advancecomp"
    1.18  
    1.19  # Genpkg order for tazwok.
    1.20  COOK_OPT="genpkg=glibc-base:glibc-extra-samba:glib-locale:glibc-dev"
    1.21 @@ -19,11 +19,6 @@
    1.22  cook_tmp_toolchain()
    1.23  {
    1.24  	cd $src
    1.25 -	
    1.26 -	# Fix a bug that prevents Glibc from building with GCC-4.5.2:
    1.27 -	patch -Np1 -i $stuff/glibc-2.13-gcc_fix-1.patch
    1.28 -	
    1.29 -	patch -Np1 -i $stuff/glibc-2.13-CVE-2015-0235.patch
    1.30  
    1.31  	# Build in a separate directory.
    1.32  	mkdir ../glibc-build && cd ../glibc-build
    1.33 @@ -68,19 +63,22 @@
    1.34  		[ -d "/var/lib/tazpkg/installed/gawk" ] || tazpkg get-install gawk
    1.35  	fi
    1.36  
    1.37 -	# Following patches and sed fixes comes from LFS development book:
    1.38 -	# http://www.linuxfromscratch.org/lfs/view/development/chapter06/glibc.html
    1.39 -	DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p')
    1.40 -	sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
    1.41 -		scripts/test-installation.pl
    1.42 -	unset DL
    1.43 +	# Fixes and patches from LFS, Redhat
    1.44  	sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl
    1.45  	sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
    1.46  
    1.47 -	# Fix a bug that prevents Glibc from building with GCC-4.5.2:
    1.48 -	patch -Np1 -i $stuff/glibc-2.13-gcc_fix-1.patch
    1.49 +	# Glibc misc Bug Fixes
    1.50 +	# fix for {linux,sys}/xattr.h incompatibility - commit fdbe8eae
    1.51 +	patch -p1 -i $stuff/glibc-2.19-xattr_header.patch
    1.52  
    1.53 -	patch -Np1 -i $stuff/glibc-2.13-CVE-2015-0235.patch
    1.54 +	# fix issues in sin/cos slow path calculation - commit ffe768a9
    1.55 +	patch -p1 -i $stuff/glibc-2.19-fix-sign-in-bsloww1-input.patch
    1.56 +
    1.57 +	# fix tzselect with missing TZDIR - commit 893b4f37/c72399fb
    1.58 +	patch -p1 -i $stuff/glibc-2.19-tzselect-default.patch
    1.59 +
    1.60 +	# Revert commit causing issues with crappy DNS servers
    1.61 +	patch -Np1 -i $stuff/glibc-2.14-revert-4768ae77.patch
    1.62  
    1.63  	# Fix a stack imbalance that occurs under some conditions:
    1.64  	sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
    1.65 @@ -107,6 +105,7 @@
    1.66  		--disable-profile \
    1.67  		--enable-add-ons \
    1.68  		--enable-kernel=2.6.30 \
    1.69 +		--enable-obsolete-rpc \
    1.70  		--libexecdir=/usr/lib/glibc \
    1.71  		--build=$HOST_SYSTEM \
    1.72  		--host=$HOST_SYSTEM &&