Skip to content

Commit

Permalink
lang/mono5.10: sync with lang/mono
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich committed Aug 8, 2023
1 parent 37dfbb1 commit 47a148a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lang/mono5.10/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= mono
PORTVERSION= 5.10.1.57
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= lang
MASTER_SITES= https://download.mono-project.com/sources/mono/
PKGNAMESUFFIX= 5.10
Expand All @@ -14,6 +14,9 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 powerpc64le
.ifdef QEMU_EMULATING
BROKEN= fails to build
.endif

BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser \
bash:shells/bash \
Expand Down
11 changes: 11 additions & 0 deletions lang/mono5.10/files/patch-mono_mini_exceptions-ppc.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- mono/mini/exceptions-ppc.c.orig 2023-03-18 12:46:51 UTC
+++ mono/mini/exceptions-ppc.c
@@ -809,7 +809,7 @@ mono_arch_setup_async_callback (MonoContext *ctx, void
{
uintptr_t sp = (uintptr_t) MONO_CONTEXT_GET_SP(ctx);
sp -= PPC_MINIMAL_STACK_SIZE;
- *(unsigned long *)sp = MONO_CONTEXT_GET_SP(ctx);
+ *(unsigned long *)sp = (unsigned long)MONO_CONTEXT_GET_SP(ctx);
MONO_CONTEXT_SET_BP(ctx, sp);
MONO_CONTEXT_SET_IP(ctx, (unsigned long) async_cb);
}
11 changes: 11 additions & 0 deletions lang/mono5.10/files/patch-mono_mini_mini-x86.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- mono/mini/mini-x86.h.orig 2018-08-24 15:17:13 UTC
+++ mono/mini/mini-x86.h
@@ -139,7 +139,7 @@ struct MonoLMF {
* If the second lowest bit is set to 1, then this is a MonoLMFExt structure, and
* the other fields are not valid.
*/
- guint32 previous_lmf;
+ gpointer previous_lmf;
gpointer lmf_addr;
/* Only set in trampoline LMF frames */
MonoMethod *method;

0 comments on commit 47a148a

Please sign in to comment.