]> code.ossystems Code Review - openembedded-core.git/commitdiff
libunwind: Fix build on aarch64/musl
authorKhem Raj <raj.khem@gmail.com>
Thu, 4 Jun 2020 16:30:50 +0000 (09:30 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Jun 2020 06:35:01 +0000 (07:35 +0100)
Backport a patch from upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libunwind/libunwind/sigset_t.patch [new file with mode: 0644]
meta/recipes-support/libunwind/libunwind_1.4.0.bb

diff --git a/meta/recipes-support/libunwind/libunwind/sigset_t.patch b/meta/recipes-support/libunwind/libunwind/sigset_t.patch
new file mode 100644 (file)
index 0000000..6baaa77
--- /dev/null
@@ -0,0 +1,28 @@
+From 5df1555828add4e256cb4bba49fffffc22127c34 Mon Sep 17 00:00:00 2001
+From: Dave Watson <dade.watson@gmail.com>
+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 <raj.khem@gmail.com>
+---
+ 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;
index f50205f1b96c30d42d67d9d139078d13193d7df3..34c2249e91036a678641734450cd326ed6811c56 100644 (file)
@@ -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"