From c905ec893696db0e66481e677db61094e83966e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 12 Feb 2021 17:50:11 +0100 Subject: [PATCH] strace: fix i686-musl For i686-musl libunwind requires libucontext also. --- srcpkgs/strace/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/strace/template b/srcpkgs/strace/template index 27f9e927b77..a030b371ca3 100644 --- a/srcpkgs/strace/template +++ b/srcpkgs/strace/template @@ -16,9 +16,16 @@ checksum=fe3982ea4cd9aeb3b4ba35f6279f0b577a37175d3282be24b9a5537b56b8f01c case "$XBPS_TARGET_MACHINE" in aarch64*|ppc64*) configure_args+=" --enable-mpers=no" ;; # work around https://github.com/strace/strace/issues/133 + i686-musl) configure_args+=" --enable-mpers=no"; makedepends+=" libucontext-devel" ;; x86_64-musl) configure_args+=" --enable-mpers=no" ;; esac +pre_configure() { + if [ "$XBPS_TARGET_MACHINE" = "i686-musl" ]; then + vsed -i configure -e "s;libunwind_LIBS=$;&-lucontext;" + fi +} + do_check() { if [ "$XBPS_CHECK_PKGS" = full ]; then # XXX: Some tests may fail inside of containers or if they are missing