[arch-commits] Commit in lib32-libelf/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Mon Dec 27 20:35:28 UTC 2021


    Date: Monday, December 27, 2021 @ 20:35:27
  Author: dvzrv
Revision: 1084185

upgpkg: lib32-libelf 0.186-2: Rebuild to fix issues with LTO.

Add -ffat-lto-objects to prevent static library mangling.
Do not fail tests and point to infrastructure ticket irt build failures.
Simplify quoting in file.

Modified:
  lib32-libelf/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-27 20:35:16 UTC (rev 1084184)
+++ PKGBUILD	2021-12-27 20:35:27 UTC (rev 1084185)
@@ -5,16 +5,16 @@
 _name=elfutils
 pkgname=lib32-libelf
 pkgver=0.186
-pkgrel=1
+pkgrel=2
 pkgdesc="Handle ELF object files and DWARF debugging information (libraries) (32-bit)"
-arch=('x86_64')
+arch=(x86_64)
 url="https://sourceware.org/elfutils/"
-license=('LGPL3' 'GPL3')
-depends=('lib32-curl' 'lib32-bzip2' 'lib32-gcc-libs' 'lib32-xz' 'lib32-zlib'
-'lib32-zstd' "libelf=${pkgver}")
+license=(LGPL3 GPL3)
+depends=(lib32-curl lib32-bzip2 lib32-gcc-libs lib32-xz lib32-zlib
+lib32-zstd "libelf=${pkgver}")
 # NOTE: the shared objects can not be added to provides as they are not versioned
 source=("https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2"{,.sig})
-options=('staticlibs')
+options=(staticlibs)
 sha512sums=('c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78'
             'SKIP')
 b2sums=('49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9'
@@ -39,6 +39,8 @@
   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
 
   (
+  # fat-lto-objects is required for non-mangled .a files in libelf
+  CFLAGS+=" -ffat-lto-objects"
   cd "${_name}-${pkgver}"
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
@@ -47,8 +49,11 @@
   make
   )
   (
+  # debugging information is required for test-suite
+  CFLAGS+=" -g"
+  # fat-lto-objects is required for non-mangled .a files in libelf
+  CFLAGS+=" -ffat-lto-objects"
   cd "${_name}-test-${pkgver}"
-  CFLAGS+=" -g"  # required for test-suite success
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --libdir=/usr/lib32 \
@@ -59,7 +64,7 @@
 
 check() {
   cd "${_name}-test-${pkgver}"
-  make check || echo "Flaky test"
+  make check || printf "Fails in restrictive build environments: https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/424\n"
 }
 
 package() {



More information about the arch-commits mailing list