pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/libunwind



Module Name:    pkgsrc
Committed By:   he
Date:           Sun Oct 18 17:06:35 UTC 2020

Modified Files:
        pkgsrc/lang/libunwind: Makefile distinfo
Added Files:
        pkgsrc/lang/libunwind/patches: patch-include_____libunwind__config.h
            patch-src_UnwindRegistersRestore.S patch-src_UnwindRegistersSave.S
            patch-src_config.h patch-src_libunwind.cpp

Log Message:
Make this build on NetBSD/macppc 9.0, where gcc doesn't predefine
__ppc__, only __powerpc__, so compensate.
PKGREVISION bumped.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/lang/libunwind/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/libunwind/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/libunwind/patches/patch-include_____libunwind__config.h \
    pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S \
    pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersSave.S \
    pkgsrc/lang/libunwind/patches/patch-src_config.h \
    pkgsrc/lang/libunwind/patches/patch-src_libunwind.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/libunwind/Makefile
diff -u pkgsrc/lang/libunwind/Makefile:1.22 pkgsrc/lang/libunwind/Makefile:1.23
--- pkgsrc/lang/libunwind/Makefile:1.22 Sun Dec 29 15:31:23 2019
+++ pkgsrc/lang/libunwind/Makefile      Sun Oct 18 17:06:35 2020
@@ -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@localhost

Index: pkgsrc/lang/libunwind/distinfo
diff -u pkgsrc/lang/libunwind/distinfo:1.18 pkgsrc/lang/libunwind/distinfo:1.19
--- pkgsrc/lang/libunwind/distinfo:1.18 Sun Jul 26 19:20:13 2020
+++ pkgsrc/lang/libunwind/distinfo      Sun Oct 18 17:06:35 2020
@@ -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

Added files:

Index: pkgsrc/lang/libunwind/patches/patch-include_____libunwind__config.h
diff -u /dev/null pkgsrc/lang/libunwind/patches/patch-include_____libunwind__config.h:1.1
--- /dev/null   Sun Oct 18 17:06:35 2020
+++ pkgsrc/lang/libunwind/patches/patch-include_____libunwind__config.h Sun Oct 18 17:06:35 2020
@@ -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
Index: pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S
diff -u /dev/null pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S:1.1
--- /dev/null   Sun Oct 18 17:06:35 2020
+++ pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersRestore.S    Sun Oct 18 17:06:35 2020
@@ -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)
+ //
Index: pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersSave.S
diff -u /dev/null pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersSave.S:1.1
--- /dev/null   Sun Oct 18 17:06:35 2020
+++ pkgsrc/lang/libunwind/patches/patch-src_UnwindRegistersSave.S       Sun Oct 18 17:06:35 2020
@@ -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)
Index: pkgsrc/lang/libunwind/patches/patch-src_config.h
diff -u /dev/null pkgsrc/lang/libunwind/patches/patch-src_config.h:1.1
--- /dev/null   Sun Oct 18 17:06:35 2020
+++ pkgsrc/lang/libunwind/patches/patch-src_config.h    Sun Oct 18 17:06:35 2020
@@ -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
+ 
Index: pkgsrc/lang/libunwind/patches/patch-src_libunwind.cpp
diff -u /dev/null pkgsrc/lang/libunwind/patches/patch-src_libunwind.cpp:1.1
--- /dev/null   Sun Oct 18 17:06:35 2020
+++ pkgsrc/lang/libunwind/patches/patch-src_libunwind.cpp       Sun Oct 18 17:06:35 2020
@@ -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



Home | Main Index | Thread Index | Old Index