From f29b4baf7f43e5e4f6672f802f03efd5a70ad358 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 Jun 2021 11:23:29 +0200 Subject: community/gcc10: fixed local patching --- community/gcc10/PKGBUILD | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) (limited to 'community') diff --git a/community/gcc10/PKGBUILD b/community/gcc10/PKGBUILD index b2d6ed81..36851333 100644 --- a/community/gcc10/PKGBUILD +++ b/community/gcc10/PKGBUILD @@ -17,24 +17,17 @@ eval "$( /configure/ s,--with-bugurl=https://bugs\.archlinux\.org/,--with-bugurl=https://bugs.archlinux32.org/, /configure/ s/;$/ --build=$CHOST;/ ' - declare -f package_gcc-libs | \ + declare -f package_gcc10-libs | \ sed ' s/\$pkgname-multilib// s@libsanitizer/{a,l,ub,t}san@libsanitizer/{a,l,ub}san@ /provides=/s/libtsan.so// \@/usr/lib32/@ d ' - declare -f package_gcc | \ + declare -f package_gcc10 | \ sed ' s/"lib32-gcc-libs[^"]*"//g - s@make.*tsan.*install@#\0@ - ' - declare -f package_gcc-ada | \ - sed ' - \,cd .*/32/libada,{ - N - d - } + s@make.*tsan.*install.*@#\0@ ' )" eval "$( @@ -51,29 +44,7 @@ eval "$( # i486-specific -# no ADA -makedepends=(${makedepends[@]//gcc-ada/}) -makedepends_i686+=('gcc-ada') - if [ "${CARCH}" = "i486" ]; then - package_gcc-ada() { - touch "$pkgdir/this-is-a-dummy-package" - } - - eval "$( - declare -f build | \ - sed ' - /enable-languages/ s/,ada// - ' - )" - - eval "$( - declare -f package_gcc | \ - sed ' - s/,gnat-style,gnat_rm,gnat_ugn// - ' - )" - # building toolchain (gcc): again, lobtool problems # /usr/lib/gcc/i486-pc-linux-gnu/7.3.0/ld: cannot find -lquadmath # collect2: error: ld returned 1 exit status @@ -81,7 +52,7 @@ if [ "${CARCH}" = "i486" ]; then # make: Leaving directory '/build/gcc/src/gcc-build/i486-pc-linux-gnu/libgfortran' # => wrong link order: libgfortran requires libquadmath eval "$( - declare -f package_gcc-libs | \ + declare -f package_gcc10-libs | \ sed ' /for lib in / s/libgfortran/libquadmath libgfortran/ ' -- cgit v1.2.3-70-g09d2