# HG changeset patch # User Stanislas Leduc # Date 1685513013 0 # Node ID 22166ae1fc15989b9b5734829ef3682766af4507 # Parent 9a8523e9619ee20b9986653acf8ecccb6c913ceb Rollback to gcc 6.3.0, ensure sanity build for kernel diff -r 9a8523e9619e -r 22166ae1fc15 gcc-lib-base/receipt --- a/gcc-lib-base/receipt Mon May 29 13:10:32 2023 +0000 +++ b/gcc-lib-base/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gcc-lib-base" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." WEB_SITE="http://gcc.gnu.org/" diff -r 9a8523e9619e -r 22166ae1fc15 gcc-lib-math/receipt --- a/gcc-lib-math/receipt Mon May 29 13:10:32 2023 +0000 +++ b/gcc-lib-math/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gcc-lib-math" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="GCC math libraries, libquadmath." WEB_SITE="http://gcc.gnu.org/" diff -r 9a8523e9619e -r 22166ae1fc15 gcc/receipt --- a/gcc/receipt Mon May 29 13:10:32 2023 +0000 +++ b/gcc/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,19 +1,19 @@ # SliTaz package receipt. PACKAGE="gcc" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="The GNU Compiler Collection." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" -TARBALL="$PACKAGE-$VERSION.tar.xz" +TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://gcc.gnu.org/" WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" TAGS="compiler C" #HOST_ARCH="i486 arm" DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" -BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev gc-dev" +BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev" # Handle cross compilation (native i486/ARM gcc) case "$ARCH" in @@ -50,6 +50,9 @@ #sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in + # Allow build gcc 6.3.0 from gcc > 6.3.0 + patch -p1 < $stuff/gcc-6.3.0-ubsan.patch + mkdir -p ../gcc-build && cd ../gcc-build # This is the default GCC and we want a native build to cross compile after. diff -r 9a8523e9619e -r 22166ae1fc15 gcc/stuff/gcc-6.3.0-ubsan.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/stuff/gcc-6.3.0-ubsan.patch Wed May 31 06:03:33 2023 +0000 @@ -0,0 +1,10 @@ +--- a/gcc/ubsan.c ++++ b/gcc/ubsan.c +@@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc) + + expanded_location xloc = expand_location (loc); + if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0 +- || xloc.file == '\0' || xloc.file[0] == '\xff' ++ || xloc.file[0] == '\0' || xloc.file[0] == '\xff' + || xloc.file[1] == '\xff') + return false; diff -r 9a8523e9619e -r 22166ae1fc15 gfortran/receipt --- a/gfortran/receipt Mon May 29 13:10:32 2023 +0000 +++ b/gfortran/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="gfortran" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="GCC fortran extension." WEB_SITE="http://gcc.gnu.org/" diff -r 9a8523e9619e -r 22166ae1fc15 glibc/receipt --- a/glibc/receipt Mon May 29 13:10:32 2023 +0000 +++ b/glibc/receipt Wed May 31 06:03:33 2023 +0000 @@ -155,7 +155,6 @@ esac { $src/configure \ --disable-profile \ - --disable-werror \ --enable-add-ons \ --enable-kernel=2.6.30 \ --enable-obsolete-rpc \ diff -r 9a8523e9619e -r 22166ae1fc15 libgfortran/receipt --- a/libgfortran/receipt Mon May 29 13:10:32 2023 +0000 +++ b/libgfortran/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libgfortran" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="misc" SHORT_DESC="GCC fortran runtime." WEB_SITE="http://gcc.gnu.org/" diff -r 9a8523e9619e -r 22166ae1fc15 libgomp/receipt --- a/libgomp/receipt Mon May 29 13:10:32 2023 +0000 +++ b/libgomp/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libgomp" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="API specification for parallel programming." MAINTAINER="pascal.bellard@slitaz.org" diff -r 9a8523e9619e -r 22166ae1fc15 libobjc/receipt --- a/libobjc/receipt Mon May 29 13:10:32 2023 +0000 +++ b/libobjc/receipt Wed May 31 06:03:33 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="libobjc" -VERSION="8.3.0" +VERSION="6.3.0" CATEGORY="development" SHORT_DESC="API for gcc object" MAINTAINER="slaxemulator@gmail.com" diff -r 9a8523e9619e -r 22166ae1fc15 linux/receipt --- a/linux/receipt Mon May 29 13:10:32 2023 +0000 +++ b/linux/receipt Wed May 31 06:03:33 2023 +0000 @@ -238,10 +238,10 @@ # Patch for GCC > 6.x # usbip (format overflow / implicit-fallthrough) # kernel (format overflow) - patch -p1 < $stuff/linux-usbip-fix-format-overflow-gcc8.patch - patch -p1 < $stuff/linux-usbip-fix-implicit-fallthrough-gcc8.patch - patch -p1 < $stuff/linux-fix-format-overflow-gcc8.patch - patch -p1 < $stuff/linux-fix-noreturn-attributes-gcc8.patch + #patch -p1 < $stuff/linux-usbip-fix-format-overflow-gcc8.patch + #patch -p1 < $stuff/linux-usbip-fix-implicit-fallthrough-gcc8.patch + #patch -p1 < $stuff/linux-fix-format-overflow-gcc8.patch + #patch -p1 < $stuff/linux-fix-noreturn-attributes-gcc8.patch # Mrproper and lguest echo "Make kernel proper and then build lguest..."