diff options
author | he <he@pkgsrc.org> | 2020-10-18 17:06:35 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2020-10-18 17:06:35 +0000 |
commit | 5d5c6d3d7a4e688fc4173d655ea909740586b750 (patch) | |
tree | 182a46e31e294858a999a8aa205fa9ad5bed8340 | |
parent | 42ab4cbf7da672799297b418ddeba751382d0236 (diff) | |
download | pkgsrc-5d5c6d3d7a4e688fc4173d655ea909740586b750.tar.gz |
Make this build on NetBSD/macppc 9.0, where gcc doesn't predefine
__ppc__, only __powerpc__, so compensate.
PKGREVISION bumped.
-rw-r--r-- | lang/libunwind/Makefile | 3 | ||||
-rw-r--r-- | lang/libunwind/distinfo | 7 | ||||
-rw-r--r-- | lang/libunwind/patches/patch-include_____libunwind__config.h | 15 | ||||
-rw-r--r-- | lang/libunwind/patches/patch-src_UnwindRegistersRestore.S | 15 | ||||
-rw-r--r-- | lang/libunwind/patches/patch-src_UnwindRegistersSave.S | 15 | ||||
-rw-r--r-- | lang/libunwind/patches/patch-src_config.h | 15 | ||||
-rw-r--r-- | lang/libunwind/patches/patch-src_libunwind.cpp | 15 |
7 files changed, 83 insertions, 2 deletions
diff --git a/lang/libunwind/Makefile b/lang/libunwind/Makefile index be77fdacda2..d91eba72b7b 100644 --- a/lang/libunwind/Makefile +++ b/lang/libunwind/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.22 2019/12/29 15:31:23 adam Exp $ +# $NetBSD: Makefile,v 1.23 2020/10/18 17:06:35 he Exp $ .include "../../lang/llvm/version.mk" DISTNAME= libunwind-${LLVM_VERSION}.src PKGNAME= ${DISTNAME:S/.src//} +PKGREVISION= 1 CATEGORIES= lang devel MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/lang/libunwind/distinfo b/lang/libunwind/distinfo index 4f3b79435fe..be79d354bf2 100644 --- a/lang/libunwind/distinfo +++ b/lang/libunwind/distinfo @@ -1,6 +1,11 @@ -$NetBSD: distinfo,v 1.18 2020/07/26 19:20:13 adam Exp $ +$NetBSD: distinfo,v 1.19 2020/10/18 17:06:35 he Exp $ SHA1 (libunwind-10.0.1.src.tar.xz) = f5c9398aedd1a41c7667208abdabc9274b7a19ae RMD160 (libunwind-10.0.1.src.tar.xz) = 9602856d899cf8681c7baabbb17765fa07849093 SHA512 (libunwind-10.0.1.src.tar.xz) = 8d717ba951ca25ca133a5d204cd7cca693402003a5a91cd2bc2bb0427486ccd37beac45aa54a6e7830c5358ecb64d1d674f7522e3192be7f9dba8384ad757f26 Size (libunwind-10.0.1.src.tar.xz) = 92724 bytes +SHA1 (patch-include_____libunwind__config.h) = b1727e79e7a00e4e5c412584dcfc357a696e2d6a +SHA1 (patch-src_UnwindRegistersRestore.S) = bd8aa0754a87315efbe6cedcb81febcb32c8a020 +SHA1 (patch-src_UnwindRegistersSave.S) = 6c976325c8d871550d75fa51047e6a0b92f00f52 +SHA1 (patch-src_config.h) = c41a01427316ce7713a5b357a3a7a76a71ad8e6f +SHA1 (patch-src_libunwind.cpp) = 6da6a2ac31364113e9b1f3e9377669dbc56cfa2a diff --git a/lang/libunwind/patches/patch-include_____libunwind__config.h b/lang/libunwind/patches/patch-include_____libunwind__config.h new file mode 100644 index 00000000000..9bca857a12c --- /dev/null +++ b/lang/libunwind/patches/patch-include_____libunwind__config.h @@ -0,0 +1,15 @@ +$NetBSD: patch-include_____libunwind__config.h,v 1.1 2020/10/18 17:06:35 he Exp $ + +Gcc doesn't define __ppc__, but defines __powerpc__ on NetBSD/powerpc. + +--- include/__libunwind_config.h.orig 2020-07-07 16:21:37.000000000 +0000 ++++ include/__libunwind_config.h +@@ -50,7 +50,7 @@ + # define _LIBUNWIND_CONTEXT_SIZE 167 + # define _LIBUNWIND_CURSOR_SIZE 179 + # define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC64 +-# elif defined(__ppc__) ++# elif defined(__ppc__) || defined(__powerpc__) + # define _LIBUNWIND_TARGET_PPC 1 + # define _LIBUNWIND_CONTEXT_SIZE 117 + # define _LIBUNWIND_CURSOR_SIZE 124 diff --git a/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S b/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S new file mode 100644 index 00000000000..38e49a332ec --- /dev/null +++ b/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S @@ -0,0 +1,15 @@ +$NetBSD: patch-src_UnwindRegistersRestore.S,v 1.1 2020/10/18 17:06:35 he Exp $ + +Gcc doesn't define __ppc__, but defines __powerpc__ on NetBSD/powerpc. + +--- src/UnwindRegistersRestore.S.orig 2020-07-07 16:21:37.000000000 +0000 ++++ src/UnwindRegistersRestore.S +@@ -392,7 +392,7 @@ Lnovec: + PPC64_LR(3) + bctr + +-#elif defined(__ppc__) ++#elif defined(__ppc__) || defined(__powerpc__) + + DEFINE_LIBUNWIND_FUNCTION(_ZN9libunwind13Registers_ppc6jumptoEv) + // diff --git a/lang/libunwind/patches/patch-src_UnwindRegistersSave.S b/lang/libunwind/patches/patch-src_UnwindRegistersSave.S new file mode 100644 index 00000000000..e0f84177934 --- /dev/null +++ b/lang/libunwind/patches/patch-src_UnwindRegistersSave.S @@ -0,0 +1,15 @@ +$NetBSD: patch-src_UnwindRegistersSave.S,v 1.1 2020/10/18 17:06:35 he Exp $ + +Gcc doesn't define __ppc__, but defines __powerpc__ on NetBSD/powerpc. + +--- src/UnwindRegistersSave.S.orig 2020-07-07 16:21:37.000000000 +0000 ++++ src/UnwindRegistersSave.S +@@ -554,7 +554,7 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getconte + blr + + +-#elif defined(__ppc__) ++#elif defined(__ppc__) || defined(__powerpc__) + + // + // extern int unw_getcontext(unw_context_t* thread_state) diff --git a/lang/libunwind/patches/patch-src_config.h b/lang/libunwind/patches/patch-src_config.h new file mode 100644 index 00000000000..197c5039b96 --- /dev/null +++ b/lang/libunwind/patches/patch-src_config.h @@ -0,0 +1,15 @@ +$NetBSD: patch-src_config.h,v 1.1 2020/10/18 17:06:35 he Exp $ + +Gcc doesn't define __ppc__, but defines __powerpc__ on NetBSD/powerpc. + +--- src/config.h.orig 2020-07-07 16:21:37.000000000 +0000 ++++ src/config.h +@@ -95,7 +95,7 @@ + #define _LIBUNWIND_BUILD_SJLJ_APIS + #endif + +-#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__powerpc64__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__powerpc__) + #define _LIBUNWIND_SUPPORT_FRAME_APIS + #endif + diff --git a/lang/libunwind/patches/patch-src_libunwind.cpp b/lang/libunwind/patches/patch-src_libunwind.cpp new file mode 100644 index 00000000000..d169f1712c8 --- /dev/null +++ b/lang/libunwind/patches/patch-src_libunwind.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_libunwind.cpp,v 1.1 2020/10/18 17:06:35 he Exp $ + +Gcc doesn't define __ppc__, but defines __powerpc__ on NetBSD/powerpc. + +--- src/libunwind.cpp.orig 2020-07-07 16:21:37.000000000 +0000 ++++ src/libunwind.cpp +@@ -42,7 +42,7 @@ _LIBUNWIND_HIDDEN int __unw_init_local(u + # define REGISTER_KIND Registers_x86_64 + #elif defined(__powerpc64__) + # define REGISTER_KIND Registers_ppc64 +-#elif defined(__ppc__) ++#elif defined(__ppc__) || defined(__powerpc__) + # define REGISTER_KIND Registers_ppc + #elif defined(__aarch64__) + # define REGISTER_KIND Registers_arm64 |