wok-current rev 25588

Rollback to gcc 6.3.0, ensure sanity build for kernel
author Stanislas Leduc <shann@slitaz.org>
date Wed May 31 06:03:33 2023 +0000 (18 months ago)
parents 9a8523e9619e
children edb76739478c
files gcc-lib-base/receipt gcc-lib-math/receipt gcc/receipt gcc/stuff/gcc-6.3.0-ubsan.patch gfortran/receipt glibc/receipt libgfortran/receipt libgomp/receipt libobjc/receipt linux/receipt
line diff
     1.1 --- a/gcc-lib-base/receipt	Mon May 29 13:10:32 2023 +0000
     1.2 +++ b/gcc-lib-base/receipt	Wed May 31 06:03:33 2023 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="gcc-lib-base"
     1.7 -VERSION="8.3.0"
     1.8 +VERSION="6.3.0"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
    1.11  WEB_SITE="http://gcc.gnu.org/"
     2.1 --- a/gcc-lib-math/receipt	Mon May 29 13:10:32 2023 +0000
     2.2 +++ b/gcc-lib-math/receipt	Wed May 31 06:03:33 2023 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="gcc-lib-math"
     2.7 -VERSION="8.3.0"
     2.8 +VERSION="6.3.0"
     2.9  CATEGORY="development"
    2.10  SHORT_DESC="GCC math libraries, libquadmath."
    2.11  WEB_SITE="http://gcc.gnu.org/"
     3.1 --- a/gcc/receipt	Mon May 29 13:10:32 2023 +0000
     3.2 +++ b/gcc/receipt	Wed May 31 06:03:33 2023 +0000
     3.3 @@ -1,19 +1,19 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="gcc"
     3.7 -VERSION="8.3.0"
     3.8 +VERSION="6.3.0"
     3.9  CATEGORY="development"
    3.10  SHORT_DESC="The GNU Compiler Collection."
    3.11  MAINTAINER="pankso@slitaz.org"
    3.12  LICENSE="GPL2"
    3.13 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.15  WEB_SITE="http://gcc.gnu.org/"
    3.16  WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
    3.17  TAGS="compiler C"
    3.18  #HOST_ARCH="i486 arm"
    3.19  
    3.20  DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
    3.21 -BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev gc-dev"
    3.22 +BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev"
    3.23  
    3.24  # Handle cross compilation (native i486/ARM gcc)
    3.25  case "$ARCH" in
    3.26 @@ -50,6 +50,9 @@
    3.27  
    3.28  	#sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    3.29  
    3.30 +	# Allow build gcc 6.3.0 from gcc > 6.3.0
    3.31 +	patch -p1 < $stuff/gcc-6.3.0-ubsan.patch
    3.32 +
    3.33  	mkdir -p ../gcc-build && cd ../gcc-build
    3.34  
    3.35  	# This is the default GCC and we want a native build to cross compile after.
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/gcc/stuff/gcc-6.3.0-ubsan.patch	Wed May 31 06:03:33 2023 +0000
     4.3 @@ -0,0 +1,10 @@
     4.4 +--- a/gcc/ubsan.c
     4.5 ++++ b/gcc/ubsan.c
     4.6 +@@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc)
     4.7 + 
     4.8 +   expanded_location xloc = expand_location (loc);
     4.9 +   if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
    4.10 +-      || xloc.file == '\0' || xloc.file[0] == '\xff'
    4.11 ++      || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
    4.12 +       || xloc.file[1] == '\xff')
    4.13 +     return false;
     5.1 --- a/gfortran/receipt	Mon May 29 13:10:32 2023 +0000
     5.2 +++ b/gfortran/receipt	Wed May 31 06:03:33 2023 +0000
     5.3 @@ -1,7 +1,7 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="gfortran"
     5.7 -VERSION="8.3.0"
     5.8 +VERSION="6.3.0"
     5.9  CATEGORY="development"
    5.10  SHORT_DESC="GCC fortran extension."
    5.11  WEB_SITE="http://gcc.gnu.org/"
     6.1 --- a/glibc/receipt	Mon May 29 13:10:32 2023 +0000
     6.2 +++ b/glibc/receipt	Wed May 31 06:03:33 2023 +0000
     6.3 @@ -155,7 +155,6 @@
     6.4  	esac
     6.5  	{ $src/configure \
     6.6  		--disable-profile \
     6.7 -		--disable-werror \
     6.8  		--enable-add-ons \
     6.9  		--enable-kernel=2.6.30 \
    6.10  		--enable-obsolete-rpc \
     7.1 --- a/libgfortran/receipt	Mon May 29 13:10:32 2023 +0000
     7.2 +++ b/libgfortran/receipt	Wed May 31 06:03:33 2023 +0000
     7.3 @@ -1,7 +1,7 @@
     7.4  # SliTaz package receipt.
     7.5  
     7.6  PACKAGE="libgfortran"
     7.7 -VERSION="8.3.0"
     7.8 +VERSION="6.3.0"
     7.9  CATEGORY="misc"
    7.10  SHORT_DESC="GCC fortran runtime."
    7.11  WEB_SITE="http://gcc.gnu.org/"
     8.1 --- a/libgomp/receipt	Mon May 29 13:10:32 2023 +0000
     8.2 +++ b/libgomp/receipt	Wed May 31 06:03:33 2023 +0000
     8.3 @@ -1,7 +1,7 @@
     8.4  # SliTaz package receipt.
     8.5  
     8.6  PACKAGE="libgomp"
     8.7 -VERSION="8.3.0"
     8.8 +VERSION="6.3.0"
     8.9  CATEGORY="development"
    8.10  SHORT_DESC="API specification for parallel programming."
    8.11  MAINTAINER="pascal.bellard@slitaz.org"
     9.1 --- a/libobjc/receipt	Mon May 29 13:10:32 2023 +0000
     9.2 +++ b/libobjc/receipt	Wed May 31 06:03:33 2023 +0000
     9.3 @@ -1,7 +1,7 @@
     9.4  # SliTaz package receipt.
     9.5  
     9.6  PACKAGE="libobjc"
     9.7 -VERSION="8.3.0"
     9.8 +VERSION="6.3.0"
     9.9  CATEGORY="development"
    9.10  SHORT_DESC="API for gcc object"
    9.11  MAINTAINER="slaxemulator@gmail.com"
    10.1 --- a/linux/receipt	Mon May 29 13:10:32 2023 +0000
    10.2 +++ b/linux/receipt	Wed May 31 06:03:33 2023 +0000
    10.3 @@ -238,10 +238,10 @@
    10.4  	# Patch for GCC > 6.x 
    10.5  	# usbip (format overflow / implicit-fallthrough)
    10.6  	# kernel (format overflow)
    10.7 -	patch -p1 < $stuff/linux-usbip-fix-format-overflow-gcc8.patch
    10.8 -	patch -p1 < $stuff/linux-usbip-fix-implicit-fallthrough-gcc8.patch
    10.9 -	patch -p1 < $stuff/linux-fix-format-overflow-gcc8.patch
   10.10 -	patch -p1 < $stuff/linux-fix-noreturn-attributes-gcc8.patch
   10.11 +	#patch -p1 < $stuff/linux-usbip-fix-format-overflow-gcc8.patch
   10.12 +	#patch -p1 < $stuff/linux-usbip-fix-implicit-fallthrough-gcc8.patch
   10.13 +	#patch -p1 < $stuff/linux-fix-format-overflow-gcc8.patch
   10.14 +	#patch -p1 < $stuff/linux-fix-noreturn-attributes-gcc8.patch
   10.15  
   10.16  	# Mrproper and lguest
   10.17  	echo "Make kernel proper and then build lguest..."