libunwind: Fix build on aarch64/musl
PATCH v2 1/1 libunwind: Fix build on aarch64/musl
Backport a patch from upstream
Signed-off-by Khem Raj <[email protected]>
---
v2: This patch is already upstream, so apply a backport instead
.../libunwind/libunwind/sigset_t.patch | 28 +++++++++++++++++++ .../libunwind/libunwind_1.4.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-support/libunwind/libunwind/sigset_t.patch
meta/recipes-support/libunwind/libunwind/sigset_t.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 5df1555828add4e256cb4bba49fffffc22127c34 Mon Sep 17 00:00:00 2001 +From: Dave Watson <[email protected]> +Date: Wed, 27 May 2020 08:21:04 -0700 +Subject: [PATCH] aarch64: Fix __sigset build issue on muslC + +Described in issue #176. Taken from Alpine Linux project. + +Change __sigset_t to sigset_t + +Upstream-Status: Backport [https://github.com/libunwind/libunwind/commit/5df1555828] +Signed-off-by: Khem Raj <[email protected]> +--- + include/libunwind-aarch64.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/libunwind-aarch64.h b/include/libunwind-aarch64.h +index db01a9f69..d1bd8708f 100644 +--- a/include/libunwind-aarch64.h ++++ b/include/libunwind-aarch64.h +@@ -202,7 +202,7 @@ typedef struct + 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; +
meta/recipes-support/libunwind/libunwind_1.4.0.bb +1 -0
@@ -7,6 +7,7 @@ SRC_URI = "http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PV file://0004-Fix-build-on-mips-musl.patch \ file://0005-ppc32-Consider-ucontext-mismatches-between-glibc-and.patch \ file://0006-Fix-for-X32.patch \ + file://sigset_t.patch \ " SRC_URI_append_libc-musl = " file://musl-header-conflict.patch"
Signature · 1 line
2.27.0