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

David Runge dvzrv at gemini.archlinux.org
Tue Apr 26 08:41:32 UTC 2022


    Date: Tuesday, April 26, 2022 @ 08:41:32
  Author: dvzrv
Revision: 443990

upgpkg: elfutils 0.187-1: Upgrade to 0.187.

Remove unneeded quotes and curly braces.
Make dependency on libelf less strickt (only use pkgver).
Do not pass failed tests any longer (the build server environment has been fixed).

Modified:
  elfutils/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-26 08:08:47 UTC (rev 443989)
+++ PKGBUILD	2022-04-26 08:41:32 UTC (rev 443990)
@@ -5,8 +5,8 @@
 
 pkgbase=elfutils
 pkgname=(debuginfod elfutils libelf)
-pkgver=0.186
-pkgrel=5
+pkgver=0.187
+pkgrel=1
 pkgdesc="Handle ELF object files and DWARF debugging information"
 arch=(x86_64)
 url="https://sourceware.org/elfutils/"
@@ -13,10 +13,10 @@
 license=(LGPL3 GPL3)
 makedepends=(bzip2 curl gcc-libs libarchive libmicrohttpd sqlite xz zlib zstd)
 options=(debug staticlibs)
-source=("https://sourceware.org/${pkgbase}/ftp/${pkgver}/${pkgbase}-${pkgver}.tar.bz2"{,.sig})
-sha512sums=('c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78'
+source=(https://sourceware.org/$pkgbase/ftp/$pkgver/$pkgbase-$pkgver.tar.bz2{,.sig})
+sha512sums=('a9b9e32b503b8b50a62d4e4001097ed2721d3475232a6380e6b9853bd1647aec016440c0ca7ceb950daf1144f8db9814ab43cf33cc0ebef7fc91e9e775c9e874'
             'SKIP')
-b2sums=('49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9'
+b2sums=('00ba3efa689d137808f5f53ecda93fd006be0c18d690ce76616ed1dba442281098579fa4b9a9e91b8ba865a3de15968f0ae06703a7b50b15c48a4beb5c970a46'
         'SKIP')
 validpgpkeys=(
   '47CC0331081B8BC6D0FD4DA08370665B57816A6A'  # Mark J. Wielaard <mark at klomp.org>
@@ -35,11 +35,11 @@
 
 prepare() {
   (
-  cd "$pkgbase-$pkgver"
+  cd $pkgbase-$pkgver
   autoreconf -fiv
   )
 
-  cp -av "$pkgbase-$pkgver" "$pkgbase-test-$pkgver"
+  cp -av $pkgbase-$pkgver $pkgbase-test-$pkgver
 
 }
 
@@ -47,7 +47,7 @@
   (
   # fat-lto-objects is required for non-mangled .a files in libelf
   CFLAGS+=" -ffat-lto-objects"
-  cd "$pkgbase-$pkgver"
+  cd $pkgbase-$pkgver
   ./configure --prefix=/usr \
               --sysconfdir=/etc \
               --program-prefix="eu-" \
@@ -55,7 +55,7 @@
   make
   )
   (
-  cd "$pkgbase-test-$pkgver"
+  cd $pkgbase-test-$pkgver
   # debugging information is required for test-suite
   CFLAGS+=" -g"
   # fat-lto-objects is required for non-mangled .a files in libelf
@@ -69,24 +69,22 @@
 }
 
 check() {
-  cd "$pkgbase-test-$pkgver"
-  make check || printf "Fails in restrictive build environments: https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/424\n"
+  make check -C $pkgbase-test-$pkgver
 }
 
 package_debuginfod() {
   pkgdesc+=" (debuginfod)"
-  depends=(gcc-libs glibc libarchive.so "libelf=${pkgver}-${pkgrel}"
-  libmicrohttpd.so sqlite)
-  optdepends=("elfutils=${pkgver}-${pkgrel}: for translations")
+  depends=(gcc-libs glibc libarchive.so libelf=$pkgver libmicrohttpd.so sqlite)
+  optdepends=("elfutils=$pkgver: for translations")
 
-  make DESTDIR="$pkgdir" install -C "$pkgbase-$pkgver"
-  install -vDm 644 "$pkgbase-$pkgver/"{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver
+  install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
 
   # set the default DEBUGINFOD_URLS environment variable to the distribution's debuginfod URL
   printf "https://debuginfod.archlinux.org\n" > "$pkgdir/etc/debuginfod/archlinux.urls"
 
   (
-    cd "${pkgdir}"
+    cd "$pkgdir"
 
     _pick libelf usr/{include,lib}
     _pick elfutils usr/bin/eu-*
@@ -99,10 +97,10 @@
 
 package_elfutils() {
   pkgdesc+=" (utilities)"
-  depends=(gcc-libs glibc "libelf=${pkgver}-${pkgrel}")
+  depends=(gcc-libs glibc libelf=$pkgver)
 
   mv -v elfutils/* "$pkgdir"
-  install -vDm 644 "$pkgbase-$pkgver"/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
 }
 
 package_libelf() {
@@ -111,5 +109,5 @@
   # NOTE: the shared objects can not be added to provides as they are not versioned
 
   mv -v libelf/* "$pkgdir"
-  install -vDm 644 "$pkgbase-$pkgver"/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
 }



More information about the arch-commits mailing list