diff --git a/srcpkgs/libunwind/patches/aarch64-musl.patch b/srcpkgs/libunwind/patches/aarch64-musl.patch new file mode 100644 index 00000000000..e424c1a52d0 --- /dev/null +++ b/srcpkgs/libunwind/patches/aarch64-musl.patch @@ -0,0 +1,11 @@ +--- include/libunwind-aarch64.h ++++ include/libunwind-aarch64.h +@@ -192,7 +192,7 @@ + unsigned long uc_flags; + struct ucontext *uc_link; + stack_t uc_stack; +- __sigset_t uc_sigmask; ++ sigset_t uc_sigmask; + struct unw_sigcontext uc_mcontext; + } unw_tdep_context_t; + diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template index 89413eb449d..91e4a651dfe 100644 --- a/srcpkgs/libunwind/template +++ b/srcpkgs/libunwind/template @@ -1,7 +1,7 @@ # Template file for 'libunwind' pkgname=libunwind version=1.4.0 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="libtool automake" makedepends="liblzma-devel" @@ -15,27 +15,27 @@ checksum=df59c931bd4d7ebfd83ee481c943edf015138089b8e50abed8d9c57ba9338435 # LDFLAGS is necessary because libunwind.so itself uses getcontext/setcontext case "$XBPS_TARGET_MACHINE" in i686-musl|ppc*-musl) makedepends+=" libucontext-devel"; LDFLAGS=" -lucontext" ;; - aarch64-musl) broken="https://build.voidlinux.org/builders/aarch64-musl_builder/builds/25858/steps/shell_3/logs/stdio" ;; *) ;; esac pre_configure() { - sed -i /SUBDIRS/s/tests// Makefile.am + vsed -i '/SUBDIRS/s/tests//' Makefile.am # libunwind explicitly sets lib64 for ppc64 by default - sed -i /libdir/s/lib64/lib/ configure.ac + vsed -i '/libdir/s/lib64/lib/' configure.ac # unw_getcontext is just getcontext on ppc*, separate lib for musl # it needs to be here because it's used directly in a macro in a # public header, so things using libunwind need linkage against it case "$XBPS_TARGET_MACHINE" in i686-musl|ppc*-musl) - sed -i 's/\-lunwind/\-lunwind \-lucontext/' \ - src/unwind/libunwind.pc.in + vsed -i src/unwind/libunwind.pc.in \ + 's/\-lunwind/\-lunwind \-lucontext/' ;; esac autoreconf -fi } + post_install() { vlicense COPYING LICENSE }