strace: update to 5.6.

* libunwind now available on aarch64-musl
* drop pre_configure, all fixups are long obsolete (see CHANGELOG)
This commit is contained in:
Piraty 2020-04-22 18:48:58 +02:00 committed by Juan RP
parent 1487117a2a
commit 767174dba3

View file

@ -1,6 +1,6 @@
# Template file for 'strace'
pkgname=strace
version=5.5
version=5.6
revision=1
build_style=gnu-configure
configure_args="--with-libunwind"
@ -10,20 +10,10 @@ maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
license="LGPL-2.1-or-later"
homepage="https://strace.io/"
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
checksum=9f58958c8e59ea62293d907d10572e352b582bd7948ed21aa28ebb47e5bf30ff
checksum=189968eeae06ed9e20166ec55a830943c84374676a457c9fe010edc7541f1b01
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) configure_args=; makedepends= ;;
aarch64*|ppc64*) configure_args+=" --enable-mpers=no" ;;
# work around https://github.com/strace/strace/issues/133
x86_64-musl) configure_args+=" --enable-mpers=no" ;;
esac
case "$XBPS_TARGET_MACHINE" in
aarch64*|ppc64*) configure_args+=" --enable-mpers=no"
esac
pre_configure() {
sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' configure
sed -i -e 's/include <sgidefs.h>/include <asm\/sgidefs.h>/g' configure
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -Dsigcontext_struct=sigcontext";;
esac
}