core/elfutils to 0.192-2

This commit is contained in:
Kevin Mihelich 2024-11-04 14:06:17 +00:00
parent 9d6425f757
commit 54bd575377
2 changed files with 25 additions and 22 deletions

View file

@ -1,12 +1,13 @@
pkgbase = elfutils pkgbase = elfutils
pkgdesc = Handle ELF object files and DWARF debugging information pkgdesc = Handle ELF object files and DWARF debugging information
pkgver = 0.192 pkgver = 0.192
pkgrel = 1 pkgrel = 2
url = https://sourceware.org/elfutils/ url = https://sourceware.org/elfutils/
arch = x86_64 arch = x86_64
makedepends = bzip2 makedepends = bzip2
makedepends = curl makedepends = curl
makedepends = gcc-libs makedepends = gcc-libs
makedepends = git
makedepends = json-c makedepends = json-c
makedepends = libarchive makedepends = libarchive
makedepends = libmicrohttpd makedepends = libmicrohttpd
@ -15,14 +16,11 @@ pkgbase = elfutils
makedepends = zlib makedepends = zlib
makedepends = zstd makedepends = zstd
options = staticlibs options = staticlibs
source = https://sourceware.org/elfutils/ftp/0.192/elfutils-0.192.tar.bz2 source = git+https://sourceware.org/git/elfutils.git?signed#tag=elfutils-0.192
source = https://sourceware.org/elfutils/ftp/0.192/elfutils-0.192.tar.bz2.sig
validpgpkeys = EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A validpgpkeys = EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A
validpgpkeys = 6C2B631563B8D330578D3CB474FD3FA2779E7073 validpgpkeys = 6C2B631563B8D330578D3CB474FD3FA2779E7073
sha512sums = 543188f5f2cfe5bc7955a878416c5f252edff9926754e5de0c6c57b132f21d9285c9b29e41281e93baad11d4ae7efbbf93580c114579c182103565fe99bd3909 sha512sums = ac5f968fc855bd1a504d8b0c676601d9ec7095efe85bb6e2d29980dee9399a921d707a93c16667f979649a166cc3c86e5192898318c5b572f9bf4d3e7229f754
sha512sums = SKIP b2sums = fdd1d3857ea5061562e91f17e08ebc1b556fb092fd5e32040b9176b7799583d716b31ef5c2652b4ddcd71ec46fa7ddd852e253f9f4f2a21c5e0425f77a3e8310
b2sums = cf9036a1fca416e0d47c76471093609230545aee63e31e30991dc3c88417d7c621c930bb74809374da3bf142501cee91a2b861a5a89efcb5e1ac184df5defce1
b2sums = SKIP
pkgname = elfutils pkgname = elfutils
pkgdesc = Handle ELF object files and DWARF debugging information (utilities) pkgdesc = Handle ELF object files and DWARF debugging information (utilities)

View file

@ -13,14 +13,16 @@ pkgname=(
debuginfod debuginfod
) )
pkgver=0.192 pkgver=0.192
pkgrel=1 pkgrel=2
pkgdesc="Handle ELF object files and DWARF debugging information" pkgdesc="Handle ELF object files and DWARF debugging information"
arch=(x86_64) arch=(x86_64)
url="https://sourceware.org/elfutils/" url="https://sourceware.org/elfutils/"
_url=https://sourceware.org/git/elfutils.git
makedepends=( makedepends=(
bzip2 bzip2
curl curl
gcc-libs gcc-libs
git
json-c json-c
libarchive libarchive
libmicrohttpd libmicrohttpd
@ -30,21 +32,23 @@ makedepends=(
zstd zstd
) )
options=(staticlibs) options=(staticlibs)
source=(https://sourceware.org/$pkgbase/ftp/$pkgver/$pkgbase-$pkgver.tar.bz2{,.sig}) source=(git+$_url?signed#tag=$pkgbase-$pkgver)
sha512sums=('543188f5f2cfe5bc7955a878416c5f252edff9926754e5de0c6c57b132f21d9285c9b29e41281e93baad11d4ae7efbbf93580c114579c182103565fe99bd3909' sha512sums=('ac5f968fc855bd1a504d8b0c676601d9ec7095efe85bb6e2d29980dee9399a921d707a93c16667f979649a166cc3c86e5192898318c5b572f9bf4d3e7229f754')
'SKIP') b2sums=('fdd1d3857ea5061562e91f17e08ebc1b556fb092fd5e32040b9176b7799583d716b31ef5c2652b4ddcd71ec46fa7ddd852e253f9f4f2a21c5e0425f77a3e8310')
b2sums=('cf9036a1fca416e0d47c76471093609230545aee63e31e30991dc3c88417d7c621c930bb74809374da3bf142501cee91a2b861a5a89efcb5e1ac184df5defce1'
'SKIP')
validpgpkeys=( validpgpkeys=(
'EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A' # Mark Wielaard <mjw@gnu.org> 'EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A' # Mark Wielaard <mjw@gnu.org>
'6C2B631563B8D330578D3CB474FD3FA2779E7073' # Aaron Merey <amerey@redhat.com> '6C2B631563B8D330578D3CB474FD3FA2779E7073' # Aaron Merey <amerey@redhat.com>
) )
prepare() { prepare() {
# remove failing test due to missing glibc debug package during test: https://bugs.archlinux.org/task/74875 cd $pkgbase
sed -e 's/run-backtrace-native.sh//g' -i $pkgbase-$pkgver/tests/Makefile.am # fix issue with /etc/profile.d/debuginfod.sh for zsh:
# https://gitlab.archlinux.org/archlinux/packaging/packages/elfutils/-/issues/2
git cherry-pick -n 00cb3efe36337f27925dbff9b2e7d97c7df95bf8
# remove failing test due to missing glibc debug package during test: https://bugs.archlinux.org/task/74875
sed -e 's/run-backtrace-native.sh//g' -i tests/Makefile.am
cd $pkgbase-$pkgver
autoreconf -fiv autoreconf -fiv
} }
@ -54,6 +58,7 @@ build() {
--sysconfdir=/etc --sysconfdir=/etc
--program-prefix="eu-" --program-prefix="eu-"
--enable-deterministic-archives --enable-deterministic-archives
--enable-maintainer-mode
) )
# fat-lto-objects is required for non-mangled .a files in libelf # fat-lto-objects is required for non-mangled .a files in libelf
@ -62,13 +67,13 @@ build() {
# debugging information is required for test-suite # debugging information is required for test-suite
CFLAGS+=" -g" CFLAGS+=" -g"
cd $pkgbase-$pkgver cd $pkgbase
./configure "${configure_options[@]}" ./configure "${configure_options[@]}"
make make
} }
check() { check() {
make -C $pkgbase-$pkgver check make -C $pkgbase check
} }
_pick() { _pick() {
@ -94,7 +99,7 @@ package_elfutils() {
sh sh
) )
make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver make DESTDIR="$pkgdir" install -C $pkgbase
( (
cd "$pkgdir" cd "$pkgdir"
@ -108,7 +113,7 @@ package_elfutils() {
_pick debuginfod usr/share/man/*/debuginfod* _pick debuginfod usr/share/man/*/debuginfod*
) )
install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 $pkgbase/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
} }
package_libelf() { package_libelf() {
@ -128,7 +133,7 @@ package_libelf() {
# NOTE: the shared objects can not be added to provides as they are not versioned # NOTE: the shared objects can not be added to provides as they are not versioned
mv -v $pkgname/* "$pkgdir" mv -v $pkgname/* "$pkgdir"
install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 $pkgbase/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
} }
package_debuginfod() { package_debuginfod() {
@ -149,7 +154,7 @@ package_debuginfod() {
optdepends=("elfutils=$pkgver: for translations") optdepends=("elfutils=$pkgver: for translations")
mv -v $pkgname/* "$pkgdir" mv -v $pkgname/* "$pkgdir"
install -vDm 644 $pkgbase-$pkgver/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/" install -vDm 644 $pkgbase/{AUTHORS,ChangeLog,NEWS,NOTES,README} -t "$pkgdir/usr/share/doc/$pkgname/"
} }
# vim:set sw=2 sts=-1 et: # vim:set sw=2 sts=-1 et: