diff --git a/cross/gcc-aarch64/APKBUILD b/cross/gcc-aarch64/APKBUILD index e4d743271..658d39824 100644 --- a/cross/gcc-aarch64/APKBUILD +++ b/cross/gcc-aarch64/APKBUILD @@ -26,13 +26,13 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname=gcc-aarch64 _pkgbase=12.2.1 # must match gcc/BASE-VER _pkgsnap=20220924 -pkgver=${_pkgbase}_git${_pkgsnap} +pkgver=${_pkgbase}_git$_pkgsnap [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-aarch64 -pkgrel=6 +pkgrel=7 pkgdesc="Stage2 cross-compiler for aarch64" url="https://gcc.gnu.org" arch="x86_64" @@ -212,7 +212,7 @@ makedepends="$makedepends_build $makedepends_host" # # PLEASE submit all patches to gcc to https://gitlab.alpinelinux.org/kaniini/alpine-gcc-patches, # so that they can be properly tracked and easily rebased if needed. -source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc-${_pkgbase%%.*}-${_pkgsnap}.tar.xz +source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${_pkgbase%%.*}-$_pkgsnap.tar.xz 0001-posix_memalign.patch 0002-gcc-poison-system-directories.patch 0003-specs-turn-on-Wl-z-now-by-default.patch @@ -262,7 +262,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc- " # we build out-of-tree -_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-${_pkgsnap} +_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-$_pkgsnap _gcclibdir="/usr/lib/gcc/$CTARGET/${_pkgbase:-$pkgver}" _gcclibexec="/usr/libexec/gcc/$CTARGET/${_pkgbase:-$pkgver}" @@ -366,9 +366,9 @@ build() { --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info - --build=${CBUILD} - --host=${CHOST} - --target=${CTARGET} + --build=$CBUILD + --host=$CHOST + --target=$CTARGET --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch @@ -438,7 +438,7 @@ package() { -o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \ -o -name libatomic.a -o -name libasan.a -o -name libtsan.a \) \ -a -type f \ - -exec ${STRIP_FOR_TARGET} -g {} + + -exec $STRIP_FOR_TARGET -g {} + if $_libgomp; then mv "$pkgdir"/usr/lib/libgomp.spec "$pkgdir"/$_gcclibdir @@ -655,7 +655,6 @@ gdc() { mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/ } - libgo() { pkgdesc="Go runtime library for GCC" depends= diff --git a/cross/gcc-armhf/APKBUILD b/cross/gcc-armhf/APKBUILD index 26c3d6f8d..998d7850a 100644 --- a/cross/gcc-armhf/APKBUILD +++ b/cross/gcc-armhf/APKBUILD @@ -26,13 +26,13 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname=gcc-armhf _pkgbase=12.2.1 # must match gcc/BASE-VER _pkgsnap=20220924 -pkgver=${_pkgbase}_git${_pkgsnap} +pkgver=${_pkgbase}_git$_pkgsnap [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armhf -pkgrel=6 +pkgrel=7 pkgdesc="Stage2 cross-compiler for armhf" url="https://gcc.gnu.org" arch="x86_64" @@ -212,7 +212,7 @@ makedepends="$makedepends_build $makedepends_host" # # PLEASE submit all patches to gcc to https://gitlab.alpinelinux.org/kaniini/alpine-gcc-patches, # so that they can be properly tracked and easily rebased if needed. -source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc-${_pkgbase%%.*}-${_pkgsnap}.tar.xz +source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${_pkgbase%%.*}-$_pkgsnap.tar.xz 0001-posix_memalign.patch 0002-gcc-poison-system-directories.patch 0003-specs-turn-on-Wl-z-now-by-default.patch @@ -262,7 +262,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc- " # we build out-of-tree -_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-${_pkgsnap} +_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-$_pkgsnap _gcclibdir="/usr/lib/gcc/$CTARGET/${_pkgbase:-$pkgver}" _gcclibexec="/usr/libexec/gcc/$CTARGET/${_pkgbase:-$pkgver}" @@ -366,9 +366,9 @@ build() { --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info - --build=${CBUILD} - --host=${CHOST} - --target=${CTARGET} + --build=$CBUILD + --host=$CHOST + --target=$CTARGET --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch @@ -438,7 +438,7 @@ package() { -o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \ -o -name libatomic.a -o -name libasan.a -o -name libtsan.a \) \ -a -type f \ - -exec ${STRIP_FOR_TARGET} -g {} + + -exec $STRIP_FOR_TARGET -g {} + if $_libgomp; then mv "$pkgdir"/usr/lib/libgomp.spec "$pkgdir"/$_gcclibdir @@ -655,7 +655,6 @@ gdc() { mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/ } - libgo() { pkgdesc="Go runtime library for GCC" depends= diff --git a/cross/gcc-armv7/APKBUILD b/cross/gcc-armv7/APKBUILD index 7e1759180..708a989e1 100644 --- a/cross/gcc-armv7/APKBUILD +++ b/cross/gcc-armv7/APKBUILD @@ -26,13 +26,13 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname=gcc-armv7 _pkgbase=12.2.1 # must match gcc/BASE-VER _pkgsnap=20220924 -pkgver=${_pkgbase}_git${_pkgsnap} +pkgver=${_pkgbase}_git$_pkgsnap [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armv7 -pkgrel=6 +pkgrel=7 pkgdesc="Stage2 cross-compiler for armv7" url="https://gcc.gnu.org" arch="x86_64" @@ -212,7 +212,7 @@ makedepends="$makedepends_build $makedepends_host" # # PLEASE submit all patches to gcc to https://gitlab.alpinelinux.org/kaniini/alpine-gcc-patches, # so that they can be properly tracked and easily rebased if needed. -source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc-${_pkgbase%%.*}-${_pkgsnap}.tar.xz +source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${_pkgbase%%.*}-$_pkgsnap.tar.xz 0001-posix_memalign.patch 0002-gcc-poison-system-directories.patch 0003-specs-turn-on-Wl-z-now-by-default.patch @@ -262,7 +262,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc- " # we build out-of-tree -_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-${_pkgsnap} +_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-$_pkgsnap _gcclibdir="/usr/lib/gcc/$CTARGET/${_pkgbase:-$pkgver}" _gcclibexec="/usr/libexec/gcc/$CTARGET/${_pkgbase:-$pkgver}" @@ -366,9 +366,9 @@ build() { --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info - --build=${CBUILD} - --host=${CHOST} - --target=${CTARGET} + --build=$CBUILD + --host=$CHOST + --target=$CTARGET --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch @@ -438,7 +438,7 @@ package() { -o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \ -o -name libatomic.a -o -name libasan.a -o -name libtsan.a \) \ -a -type f \ - -exec ${STRIP_FOR_TARGET} -g {} + + -exec $STRIP_FOR_TARGET -g {} + if $_libgomp; then mv "$pkgdir"/usr/lib/libgomp.spec "$pkgdir"/$_gcclibdir @@ -655,7 +655,6 @@ gdc() { mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/ } - libgo() { pkgdesc="Go runtime library for GCC" depends= diff --git a/cross/gcc-riscv64/APKBUILD b/cross/gcc-riscv64/APKBUILD index 3737a029c..11b5d0918 100644 --- a/cross/gcc-riscv64/APKBUILD +++ b/cross/gcc-riscv64/APKBUILD @@ -26,13 +26,13 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname=gcc-riscv64 _pkgbase=12.2.1 # must match gcc/BASE-VER _pkgsnap=20220924 -pkgver=${_pkgbase}_git${_pkgsnap} +pkgver=${_pkgbase}_git$_pkgsnap [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-riscv64 -pkgrel=6 +pkgrel=7 pkgdesc="Stage2 cross-compiler for riscv64" url="https://gcc.gnu.org" arch="x86_64" @@ -212,7 +212,7 @@ makedepends="$makedepends_build $makedepends_host" # # PLEASE submit all patches to gcc to https://gitlab.alpinelinux.org/kaniini/alpine-gcc-patches, # so that they can be properly tracked and easily rebased if needed. -source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc-${_pkgbase%%.*}-${_pkgsnap}.tar.xz +source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${_pkgbase%%.*}-$_pkgsnap.tar.xz 0001-posix_memalign.patch 0002-gcc-poison-system-directories.patch 0003-specs-turn-on-Wl-z-now-by-default.patch @@ -262,7 +262,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-${_pkgsnap}/gcc- " # we build out-of-tree -_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-${_pkgsnap} +_gccdir="$srcdir"/gcc-${_pkgbase%%.*}-$_pkgsnap _gcclibdir="/usr/lib/gcc/$CTARGET/${_pkgbase:-$pkgver}" _gcclibexec="/usr/libexec/gcc/$CTARGET/${_pkgbase:-$pkgver}" @@ -366,9 +366,9 @@ build() { --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info - --build=${CBUILD} - --host=${CHOST} - --target=${CTARGET} + --build=$CBUILD + --host=$CHOST + --target=$CTARGET --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch @@ -438,7 +438,7 @@ package() { -o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \ -o -name libatomic.a -o -name libasan.a -o -name libtsan.a \) \ -a -type f \ - -exec ${STRIP_FOR_TARGET} -g {} + + -exec $STRIP_FOR_TARGET -g {} + if $_libgomp; then mv "$pkgdir"/usr/lib/libgomp.spec "$pkgdir"/$_gcclibdir @@ -655,7 +655,6 @@ gdc() { mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/ } - libgo() { pkgdesc="Go runtime library for GCC" depends=