index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2023-04-06 15:05:22 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2023-04-06 15:05:22 +0200 |
commit | 65c170fb13ac20a358cb89885e0f502a037574ab (patch) | |
tree | 9812e92fc72843820e8b9e5c6f890c18589cf2f9 /community | |
parent | 22264c7020813daa30f785a98ebcbfe4f2cb682a (diff) |
-rw-r--r-- | community/gcc11/PKGBUILD | 126 |
diff --git a/community/gcc11/PKGBUILD b/community/gcc11/PKGBUILD deleted file mode 100644 index 4386fa71..00000000 --- a/community/gcc11/PKGBUILD +++ /dev/null @@ -1,126 +0,0 @@ -# remove tsan (thread sanitizer) plugin, not available for i686 -pkgname=( - $( - printf '%s\n' "${pkgname[@]}" | \ - grep -vFx 'lib32-gcc-libs' - ) -) -unset -f 'package_lib32-gcc-libs' -eval "$( - declare -f prepare | \ - sed ' - \,/s/lib64/lib/, d - ' - declare -f build | \ - sed ' - /configure/ s/--enable-multilib/--disable-multilib/ - /configure/ s,--with-bugurl=https://bugs\.archlinux\.org/,--with-bugurl=https://bugs.archlinux32.org/, - /configure/ s/;$/ --build=$CHOST;/ - ' - declare -f package_gcc11-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_gcc11 | \ - sed ' - s/"lib32-gcc-libs[^"]*"//g - s@make.*tsan.*install@#\0@ - ' -)" -eval "$( - for name in "${pkgname[@]}"; do - declare -f package_${name} | \ - sed ' - s/$pkgname-multilib// - s/{,32}// - \,/lib32/,d - \,/32/,d - ' - done -)" - -# i486-specific - -# no ADA -makedepends=(${makedepends[@]//gcc-ada/}) -makedepends_i686+=('gcc-ada') -makedepends_pentium4+=('gcc-ada') - -if [ "${CARCH}" = "i486" ]; then - package_gcc11-ada() { - touch "$pkgdir/this-is-a-dummy-package" - } - - eval "$( - declare -f build | \ - sed ' - /enable-languages/ s/,ada// - ' - )" - - eval "$( - declare -f package_gcc11 | \ - 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 - # libtool: install: error: relink `libgfortran.la' with the above command before installing it - # make: Leaving directory '/build/gcc/src/gcc-build/i486-pc-linux-gnu/libgfortran' - # => wrong link order: libgfortran requires libquadmath - eval "$( - declare -f package_gcc11-libs | \ - sed ' - /for lib in / s/libgfortran/libquadmath libgfortran/ - ' - )" - - # disable CET (Control Flow instructions endbr32/enbr64) - eval "$( - declare -f build | \ - sed ' - s/--enable-cet=auto/--disable-cet/ - ' - )" - -else - - # force enable CET (Control Flow instructions endbr32/enbr64) - eval "$( - declare -f build | \ - sed ' - s/--enable-cet=auto/--enable-cet/ - ' - )" - -fi - -makedepends=(${makedepends[@]//lib32-glibc/}) -makedepends=(${makedepends[@]//lib32-gcc-libs/}) - -# i486-specific: disable PGO/LTO build, uses too much resources, -# also disabling LTO for now -if [ "${CARCH}" = "i486" ]; then - eval "$( - declare -f build | \ - sed ' - s/--enable-pgo-build=.*/--disable-pgo-build/ - s/--enable-lto/--disable-lto/ - s/--with-build-config=bootstrap-lto// - ' - declare -f package_gcc11 | \ - sed ' - /make.*lto-plugin.*install/d - /ln.*liblto_plugin.so/d - ' - )" -fi - -# tons of stuff fails anyway -unset check |