From 51e56fde734b07225bb0129db5e4f0047161e23f Mon Sep 17 00:00:00 2001 From: Jonathan Lee Date: Wed, 10 Aug 2016 23:21:01 -0700 Subject: [PATCH] mono: add support for *-musl (#4587) --- common/shlibs | 7 +++++++ srcpkgs/mono/patches/exceptions-arm.c.patch | 11 +++++++++++ srcpkgs/mono/template | 10 +++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/mono/patches/exceptions-arm.c.patch diff --git a/common/shlibs b/common/shlibs index ac40db31035..07d633bed86 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2597,3 +2597,10 @@ liballegro_memfile.so.5.2 allegro5-5.2.1_1 liballegro_physfs.so.5.2 allegro5-5.2.1_1 liballegro_video.so.5.2 allegro5-5.2.1_1 liballegro_main.so.5.2 allegro5-5.2.1_1 +libmono-profiler-cov.so.0 mono-4.0.1.44_2 +libmono-profiler-aot.so.0 mono-4.0.1.44_2 +libmono-profiler-iomap.so.0 mono-4.0.1.44_2 +libmono-profiler-log.so.0 mono-4.0.1.44_2 +libikvm-native.so mono-4.0.1.44_2 +libMonoPosixHelper.so mono-4.0.1.44_2 +libMonoSupportW.so mono-4.0.1.44_2 diff --git a/srcpkgs/mono/patches/exceptions-arm.c.patch b/srcpkgs/mono/patches/exceptions-arm.c.patch new file mode 100644 index 00000000000..922ff92e1d6 --- /dev/null +++ b/srcpkgs/mono/patches/exceptions-arm.c.patch @@ -0,0 +1,11 @@ +--- mono/mini/exceptions-arm.c 2015-05-08 17:22:57.000000000 +0200 ++++ mono/mini/exceptions-arm.c 2016-08-10 17:29:35.856372222 +0200 +@@ -15,7 +15,9 @@ + + #ifndef MONO_CROSS_COMPILE + #ifdef HAVE_ASM_SIGCONTEXT_H ++#if defined(__GLIBC__) + #include ++#endif + #endif /* def HAVE_ASM_SIGCONTEXT_H */ + #endif diff --git a/srcpkgs/mono/template b/srcpkgs/mono/template index 1acb23859e0..5bc5e0b7db3 100644 --- a/srcpkgs/mono/template +++ b/srcpkgs/mono/template @@ -1,7 +1,7 @@ # Template file for 'mono' pkgname=mono version=4.0.1.44 -revision=1 +revision=2 wrksrc="mono-${version%.*}" lib32disabled=yes build_style=gnu-configure @@ -16,6 +16,14 @@ license="GPL-2, LGPL-2, MPL, MIT" distfiles="http://download.mono-project.com/sources/mono/$pkgname-$version.tar.bz2" checksum=eaf5bd9d19818cb89483b3c9cae2ee3569643fd621560da036f6a49f6b3e3a6f +case "$XBPS_TARGET_MACHINE" in + *-musl) configure_args+=" --disable-boehm --without-sigaltstack" ;; +esac + pre_configure() { autoreconf -fi } + +post_install() { + vlicense LICENSE +}