pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/mono lang/mono: fix NetBSD/powerpc support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e83ea49862e9
branches:  trunk
changeset: 385604:e83ea49862e9
user:      he <he%pkgsrc.org@localhost>
date:      Tue Sep 20 15:59:33 2022 +0000

description:
lang/mono: fix NetBSD/powerpc support

 * Add a cast which is needed
 * Simplify one other macro

Fixes build on NetBSD/macppc.

diffstat:

 lang/mono/distinfo                                   |   4 ++--
 lang/mono/patches/patch-mono_utils_mono-sigcontext.h |  16 ++++++++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r 3be5c204cd8e -r e83ea49862e9 lang/mono/distinfo
--- a/lang/mono/distinfo        Tue Sep 20 13:55:18 2022 +0000
+++ b/lang/mono/distinfo        Tue Sep 20 15:59:33 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.116 2022/02/08 13:39:17 gavan Exp $
+$NetBSD: distinfo,v 1.117 2022/09/20 15:59:33 he Exp $
 
 BLAKE2s (mono-6.12.0.122.tar.xz) = 0f4ef4106e8974fea9ddc2b61ab1b0ebd2a8182fb9f098ec9c46655b4ac1b867
 SHA512 (mono-6.12.0.122.tar.xz) = 0fbd4147498cc81e384933147eb6aa5c559d17a794a308af7ffa43dce51e0faefde24fc75e987ed804dcb161b52756944bc3611100fc0a4adcc260ca97ddaecd
@@ -26,7 +26,7 @@
 SHA1 (patch-mono_tests_Makefile.in) = cf6a670e94b52f41d30ae6262f2f4ed5c0da4c05
 SHA1 (patch-mono_utils_jemalloc_Makefile.in) = bb20a6f72c88632bf2e75c83174b4255788ad4ff
 SHA1 (patch-mono_utils_mono-os-semaphore.h) = b850911945c95be804e9462263d558ef702831ca
-SHA1 (patch-mono_utils_mono-sigcontext.h) = b8a6f886661622e9b0d382443536bd3dc998f95f
+SHA1 (patch-mono_utils_mono-sigcontext.h) = e57bda25e6554e89899da9d56682e912315970ad
 SHA1 (patch-mono_utils_mono-threads-posix.c) = 3111d6a47fa104d964b34fdb5f7eca8643559ea3
 SHA1 (patch-mono_utils_mono-utils-debug.c) = 39f099969040b3a52101b611be723b25674ea68b
 SHA1 (patch-msvc_mono.props) = 0ffb74104049e763d28a2c7a17433b35ffb4cf3b
diff -r 3be5c204cd8e -r e83ea49862e9 lang/mono/patches/patch-mono_utils_mono-sigcontext.h
--- a/lang/mono/patches/patch-mono_utils_mono-sigcontext.h      Tue Sep 20 13:55:18 2022 +0000
+++ b/lang/mono/patches/patch-mono_utils_mono-sigcontext.h      Tue Sep 20 15:59:33 2022 +0000
@@ -1,10 +1,22 @@
-$NetBSD: patch-mono_utils_mono-sigcontext.h,v 1.2 2021/03/03 12:05:41 nia Exp $
+$NetBSD: patch-mono_utils_mono-sigcontext.h,v 1.3 2022/09/20 15:59:33 he Exp $
 
 NetBSD/aarch64 support.
+Fix NetBSD/powerpc support.
 
 --- mono/utils/mono-sigcontext.h.orig  2019-09-19 07:46:07.000000000 +0000
 +++ mono/utils/mono-sigcontext.h
-@@ -474,6 +474,12 @@ typedef struct ucontext {
+@@ -356,8 +356,8 @@ typedef struct ucontext {
+ 
+       #define UCONTEXT_REG_Rn(ctx, n)   (((os_ucontext*)(ctx))->uc_mcontext.__gregs [(n)])
+       #define UCONTEXT_REG_FPRn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext.__fpregs.__fpu_regs [(n)])
+-      #define UCONTEXT_REG_NIP(ctx)     _UC_MACHINE_PC(ctx)
+-      #define UCONTEXT_REG_LNK(ctx)     (((os_ucontext*)(ctx))->uc_mcontext.__gregs [_REG_LR])
++      #define UCONTEXT_REG_NIP(ctx)     _UC_MACHINE_PC((os_ucontext*)(ctx))
++      #define UCONTEXT_REG_LNK(ctx)     UCONTEXT_REG_Rn(ctx, _REG_LR)
+ #elif defined(__FreeBSD__)
+       typedef ucontext_t os_ucontext;
+ 
+@@ -472,6 +472,12 @@ typedef struct ucontext {
        #define UCONTEXT_REG_SP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_gpregs.gp_sp)
        #define UCONTEXT_REG_R0(ctx) (((ucontext_t*)(ctx))->uc_mcontext.mc_gpregs.gp_x [ARMREG_R0])
        #define UCONTEXT_GREGS(ctx) (&(((ucontext_t*)(ctx))->uc_mcontext.mc_gpregs.gp_x))



Home | Main Index | Thread Index | Old Index