diff options
author | he <he@pkgsrc.org> | 2022-09-20 15:59:33 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2022-09-20 15:59:33 +0000 |
commit | 76ad9efd288fdcb4910cb43207926ddcfd5acd33 (patch) | |
tree | 0ab3d8a250fe4a97773bcf9c2409d7314e3b9a2c /lang | |
parent | 92eea9972fda8941fa1a1454f5f8b1ea4f853962 (diff) | |
download | pkgsrc-76ad9efd288fdcb4910cb43207926ddcfd5acd33.tar.gz |
lang/mono: fix NetBSD/powerpc support
* Add a cast which is needed
* Simplify one other macro
Fixes build on NetBSD/macppc.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/mono/distinfo | 4 | ||||
-rw-r--r-- | lang/mono/patches/patch-mono_utils_mono-sigcontext.h | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/lang/mono/distinfo b/lang/mono/distinfo index 10fee29aee6..fcdb0e96d8b 100644 --- a/lang/mono/distinfo +++ b/lang/mono/distinfo @@ -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.am) = ddeab885c28be53dc457261c63af53b3de754052 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 --git a/lang/mono/patches/patch-mono_utils_mono-sigcontext.h b/lang/mono/patches/patch-mono_utils_mono-sigcontext.h index 132dbb10f7c..be1ecfe0f36 100644 --- a/lang/mono/patches/patch-mono_utils_mono-sigcontext.h +++ b/lang/mono/patches/patch-mono_utils_mono-sigcontext.h @@ -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)) |