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

David Runge dvzrv at gemini.archlinux.org
Thu Nov 11 17:04:15 UTC 2021


    Date: Thursday, November 11, 2021 @ 17:04:14
  Author: dvzrv
Revision: 1042312

upgpkg: lib32-libelf 0.186-1: Upgrade to 186.

Build separately for testing (as it requires modified CFLAGS).

Modified:
  lib32-libelf/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-11 16:38:17 UTC (rev 1042311)
+++ PKGBUILD	2021-11-11 17:04:14 UTC (rev 1042312)
@@ -4,7 +4,7 @@
 
 _name=elfutils
 pkgname=lib32-libelf
-pkgver=0.185
+pkgver=0.186
 pkgrel=1
 pkgdesc="Handle ELF object files and DWARF debugging information (libraries) (32-bit)"
 arch=('x86_64')
@@ -15,9 +15,9 @@
 # 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')
-sha512sums=('34de0de1355b11740e036e0fc64f2fc063587c8eb121b19216ee5548d3f0f268d8fc3995176c47190466b9d881007cfa11a9d01e9a50e38af6119492bf8bb47f'
+sha512sums=('c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78'
             'SKIP')
-b2sums=('57cfa7e4060975c4bf6170dbd354687a19a92f7069c060db1ac2fa4da5a9d34e8bddd07c7ce376b5c28b5670ad5b8c1df795164cbcfb600a44cf1db60c20c4af'
+b2sums=('49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9'
         'SKIP')
 validpgpkeys=(
   '47CC0331081B8BC6D0FD4DA08370665B57816A6A' # Mark J. Wielaard <mark at klomp.org>
@@ -24,24 +24,42 @@
   'EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A' # Mark Wielaard <mjw at gnu.org>
 )
 
-build() {
+prepare() {
+  (
   cd "${_name}-${pkgver}"
+  autoreconf -fiv
+  )
 
+  cp -av "${_name}-${pkgver}" "${_name}-test-${pkgver}"
+}
+
+build() {
   export CC="gcc -m32"
   export CXX="g++ -m32"
   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-  CFLAGS+=" -g"  # required for test-suite success
 
+  (
+  cd "${_name}-${pkgver}"
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --libdir=/usr/lib32 \
     --disable-debuginfod
   make
+  )
+  (
+  cd "${_name}-test-${pkgver}"
+  CFLAGS+=" -g"  # required for test-suite success
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --libdir=/usr/lib32 \
+    --disable-debuginfod
+  make
+  )
 }
 
 check() {
-  cd "${_name}-${pkgver}"
-  make check || echo "Known problem: The build environment might lack enough resources."
+  cd "${_name}-test-${pkgver}"
+  make check || echo "Flaky test"
 }
 
 package() {



More information about the arch-commits mailing list