pkgsrc-WIP-changes archive

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

mono-git: Prepare for work with upstream



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Apr 16 18:43:15 2016 +0200
Changeset:	bdcbaca16f6d23ccfb567ce613ec77470d8a427e

Modified Files:
	mono-git/Makefile
	mono-git/distinfo
Removed Files:
	mono-git/patches/patch-aa
	mono-git/patches/patch-ad
	mono-git/patches/patch-ae
	mono-git/patches/patch-af
	mono-git/patches/patch-ai
	mono-git/patches/patch-aj
	mono-git/patches/patch-ak
	mono-git/patches/patch-al
	mono-git/patches/patch-am
	mono-git/patches/patch-ap
	mono-git/patches/patch-aq
	mono-git/patches/patch-ar
	mono-git/patches/patch-as
	mono-git/patches/patch-ba
	mono-git/patches/patch-bc
	mono-git/patches/patch-bd
	mono-git/patches/patch-be
	mono-git/patches/patch-bf
	mono-git/patches/patch-bi
	mono-git/patches/patch-cc
	mono-git/patches/patch-configure
	mono-git/patches/patch-da
	mono-git/patches/patch-data_Makefile.in
	mono-git/patches/patch-data_mono-nunit.pc.in
	mono-git/patches/patch-data_net_4_0_Browsers_Makefile.in
	mono-git/patches/patch-data_net_4_5_Browsers_Makefile.in
	mono-git/patches/patch-data_net_4_5_Makefile.in
	mono-git/patches/patch-db
	mono-git/patches/patch-dc
	mono-git/patches/patch-de
	mono-git/patches/patch-df
	mono-git/patches/patch-dh
	mono-git/patches/patch-di
	mono-git/patches/patch-dj
	mono-git/patches/patch-dk
	mono-git/patches/patch-dl
	mono-git/patches/patch-do
	mono-git/patches/patch-libgc_misc.c
	mono-git/patches/patch-man_mprof-report.1
	mono-git/patches/patch-mono_dis_Makefile.in
	mono-git/patches/patch-mono_metadata_icall.c
	mono-git/patches/patch-mono_metadata_mono-perfcounters.c
	mono-git/patches/patch-mono_metadata_mono-route.c
	mono-git/patches/patch-mono_mini_mini-arm.c
	mono-git/patches/patch-mono_profiler_proflog.c
	mono-git/patches/patch-mono_unit-tests_Makefile.in
	mono-git/patches/patch-mono_utils_Makefile.in
	mono-git/patches/patch-mono_utils_mono-compiler.h
	mono-git/patches/patch-mono_utils_mono-mmap.c
	mono-git/patches/patch-mono_utils_mono-semaphore.c
	mono-git/patches/patch-mono_utils_mono-threads-dragonfly.c
	mono-git/patches/patch-mono_utils_mono-threads-netbsd.c
	mono-git/patches/patch-mono_utils_mono-threads-posix.c
	mono-git/patches/patch-mono_utils_mono-threads-solaris.c
	mono-git/patches/patch-po_Makefile.in
	mono-git/patches/patch-support_signal.c
	mono-git/patches/patch-support_time.c

Log Message:
mono-git: Prepare for work with upstream

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bdcbaca16f6d23ccfb567ce613ec77470d8a427e

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

diffstat:
 mono-git/Makefile                                  |  13 +-
 mono-git/distinfo                                  |  57 ------
 mono-git/patches/patch-aa                          |  15 --
 mono-git/patches/patch-ad                          |  52 ------
 mono-git/patches/patch-ae                          |  21 ---
 mono-git/patches/patch-af                          |  12 --
 mono-git/patches/patch-ai                          | 207 ---------------------
 mono-git/patches/patch-aj                          |  12 --
 mono-git/patches/patch-ak                          |  56 ------
 mono-git/patches/patch-al                          |  12 --
 mono-git/patches/patch-am                          |  22 ---
 mono-git/patches/patch-ap                          |  26 ---
 mono-git/patches/patch-aq                          |  12 --
 mono-git/patches/patch-ar                          |  12 --
 mono-git/patches/patch-as                          |  18 --
 mono-git/patches/patch-ba                          |  12 --
 mono-git/patches/patch-bc                          |  23 ---
 mono-git/patches/patch-bd                          |  17 --
 mono-git/patches/patch-be                          |  36 ----
 mono-git/patches/patch-bf                          |  25 ---
 mono-git/patches/patch-bi                          |  37 ----
 mono-git/patches/patch-cc                          |  33 ----
 mono-git/patches/patch-configure                   | 153 ---------------
 mono-git/patches/patch-da                          | 157 ----------------
 mono-git/patches/patch-data_Makefile.in            |  15 --
 mono-git/patches/patch-data_mono-nunit.pc.in       |  12 --
 .../patch-data_net_4_0_Browsers_Makefile.in        |  15 --
 .../patch-data_net_4_5_Browsers_Makefile.in        |  15 --
 mono-git/patches/patch-data_net_4_5_Makefile.in    |  15 --
 mono-git/patches/patch-db                          |  37 ----
 mono-git/patches/patch-dc                          |  12 --
 mono-git/patches/patch-de                          |  12 --
 mono-git/patches/patch-df                          |  12 --
 mono-git/patches/patch-dh                          |  12 --
 mono-git/patches/patch-di                          |  12 --
 mono-git/patches/patch-dj                          |  16 --
 mono-git/patches/patch-dk                          |  12 --
 mono-git/patches/patch-dl                          |  34 ----
 mono-git/patches/patch-do                          |  13 --
 mono-git/patches/patch-libgc_misc.c                |  36 ----
 mono-git/patches/patch-man_mprof-report.1          |  12 --
 mono-git/patches/patch-mono_dis_Makefile.in        |  13 --
 mono-git/patches/patch-mono_metadata_icall.c       |  22 ---
 .../patch-mono_metadata_mono-perfcounters.c        |  52 ------
 mono-git/patches/patch-mono_metadata_mono-route.c  |  14 --
 mono-git/patches/patch-mono_mini_mini-arm.c        |  72 -------
 mono-git/patches/patch-mono_profiler_proflog.c     |  17 --
 mono-git/patches/patch-mono_unit-tests_Makefile.in |  21 ---
 mono-git/patches/patch-mono_utils_Makefile.in      |  43 -----
 mono-git/patches/patch-mono_utils_mono-compiler.h  |  38 ----
 mono-git/patches/patch-mono_utils_mono-mmap.c      |  15 --
 mono-git/patches/patch-mono_utils_mono-semaphore.c |  55 ------
 .../patch-mono_utils_mono-threads-dragonfly.c      |  29 ---
 .../patches/patch-mono_utils_mono-threads-netbsd.c |  28 ---
 .../patches/patch-mono_utils_mono-threads-posix.c  |  26 ---
 .../patch-mono_utils_mono-threads-solaris.c        |  24 ---
 mono-git/patches/patch-po_Makefile.in              |  13 --
 mono-git/patches/patch-support_signal.c            |  17 --
 mono-git/patches/patch-support_time.c              |  16 --
 59 files changed, 8 insertions(+), 1839 deletions(-)

diffs:
diff --git a/mono-git/Makefile b/mono-git/Makefile
index e6776ef..be7d132 100644
--- a/mono-git/Makefile
+++ b/mono-git/Makefile
@@ -1,19 +1,21 @@
 # $NetBSD: Makefile,v 1.168 2016/02/24 16:48:09 jperkin Exp $
 
-DISTNAME=	mono-4.4.0.122
+GIT_REPOSITORIES=	mono
+GIT_REPO.mono=		https://github.com/mono/mono.git
+
+DISTNAME=	mono
+PKGNAME=	mono-0.0.0
 CATEGORIES=	lang
-MASTER_SITES=	http://download.mono-project.com/sources/mono/
-EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://www.mono-project.com/
-COMMENT=	Open source implementation of the .NET Development Framework
+COMMENT=	Open source ECMA CLI, C# and .NET implementation
 LICENSE=	mit AND gnu-gpl-v2 AND gnu-lgpl-v2 AND apache-2.0
 
 BUILD_DEPENDS+=	p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser
 CONFLICTS=	pnet-[0-9]* mcsim-[0-9]* lc-[0-9]*
 ALL_ENV+=	MONO_SHARED_DIR=${WRKDIR:Q} PLATFORM=
-WRKSRC=		${WRKDIR}/mono-4.0.4
+WRKSRC=		${WRKDIR}/mono
 
 USE_TOOLS+=	bash:run bison gmake gtar msgfmt perl:run pkg-config
 USE_LIBTOOL=	yes
@@ -175,6 +177,7 @@ post-install:
 	done
 .endif
 
+.include "../../wip/mk/git-package.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../lang/python/application.mk"
 .include "../../textproc/icu/buildlink3.mk"
diff --git a/mono-git/distinfo b/mono-git/distinfo
index 57e0736..b56d788 100644
--- a/mono-git/distinfo
+++ b/mono-git/distinfo
@@ -4,60 +4,3 @@ SHA1 (mono-4.4.0.122.tar.bz2) = 132a8e9aa422e82ccdb776c7cc1db89ce140b0b3
 RMD160 (mono-4.4.0.122.tar.bz2) = 41d58720d7cb4f510cad64c1dbecdd9a6c9d19a1
 SHA512 (mono-4.4.0.122.tar.bz2) = 264b3779fc94e40c44f8cc637169d7f3a6367ead75b932069bc0498d53c13ea62ef5711784d1bc0767b85e0cb04424b9eee0ce7ed10772076902b55210097a10
 Size (mono-4.4.0.122.tar.bz2) = 84904723 bytes
-SHA1 (patch-aa) = 84e5bca2b6d9715271c343f774c81186858d90c9
-SHA1 (patch-ad) = ebd47980f0141f7cbd0c6bbcfc15942cebc263f1
-SHA1 (patch-ae) = 25869b98f9197243aea799b75b238d92f58e8845
-SHA1 (patch-af) = 6a458a91dc34420d45238b5dad01ed63f0bd9e00
-SHA1 (patch-ai) = d06c382d188f4263a2a505ca3d3ee491baa3af28
-SHA1 (patch-aj) = 33b75ec2662cc442f602b21b03fee1e5c39e3a76
-SHA1 (patch-ak) = 262845edcf84cf5127b7e01963f0d433aad7682a
-SHA1 (patch-al) = 07462d3f9cf2aa08b1fb837400084d32a7062eee
-SHA1 (patch-am) = ff0af9c120ebeb59edcdb727c7d36aa5939c73af
-SHA1 (patch-ap) = e0590d7014ae4ef74ee9f9c39f069411a66c8f76
-SHA1 (patch-aq) = 91f8384c62e4a7a1b2079038495a1a78364926c9
-SHA1 (patch-ar) = e225bfaa1a18aa5997a1a6472889da3a0ec533cc
-SHA1 (patch-as) = 101c0119f498a389613a3cd54497e85b3aece1c2
-SHA1 (patch-ba) = f501f1fa3e603660dc8f64ea6bc020b4f4c08a57
-SHA1 (patch-bc) = 1fbb3d78683dc29944eb69d2b033f34539da2b39
-SHA1 (patch-bd) = a6706236caae06c5defa5c8e2488380cc64f93ab
-SHA1 (patch-be) = d1b603478ff8b1acdd2160efe2d88974f62ac20f
-SHA1 (patch-bf) = 550c198e41ccc33dd690950754af4557df9b1d1d
-SHA1 (patch-bi) = 4d2252c53facafeb8fc7f459759294da5f14dfeb
-SHA1 (patch-cc) = d26c9e04f04896f0e7b2edab61cd347d76e0fcaf
-SHA1 (patch-configure) = 20af37b1f87623504d8e70dd6b749eeb3bf0118a
-SHA1 (patch-da) = 08c7c78aa4c6f1a1de4d34aebe05cd2ed1e7dcfd
-SHA1 (patch-data_Makefile.in) = 0c54664b1a59714c6bec02547d70eaa7dee47928
-SHA1 (patch-data_mono-nunit.pc.in) = 59e0a932727b842ac90c2d0b702481d62f72cab8
-SHA1 (patch-data_net_4_0_Browsers_Makefile.in) = ab4baa45dd75b87786cbc7d942611915d5ae1f72
-SHA1 (patch-data_net_4_5_Browsers_Makefile.in) = e4cab08ffa040020684edb3a9fbc8e448d2faf35
-SHA1 (patch-data_net_4_5_Makefile.in) = 778be615f4f21f2561e47e082302c09f02c6f8f6
-SHA1 (patch-db) = 185ae2e5cbac9bca99443efbc5a8ae63423656cf
-SHA1 (patch-dc) = 725c82a9ac4ae9c01045149504a6df6a64d808a3
-SHA1 (patch-de) = 0c2a123868b20236fceb93d33fa3084a1afd004c
-SHA1 (patch-df) = b2780e809d681795a6bdd9039ec890cfc9362187
-SHA1 (patch-dh) = 30f0bea7c707829247c2b426a88c4adba057e534
-SHA1 (patch-di) = 67a26c3cd7752d5b629f00cdba7cc9613d10f43c
-SHA1 (patch-dj) = 049cc88dc523975404445f13de81255d75a22156
-SHA1 (patch-dk) = ad78819e71f082d0b7f262c162d3a67cfdfdcf2f
-SHA1 (patch-dl) = dc63c1d3f6a1d78b2f5bb725cdff6824e2307dc5
-SHA1 (patch-do) = 0bda0d2e482be218fb502e0c4ea945a41d078d27
-SHA1 (patch-libgc_misc.c) = 52c68e7b6f1b58f480286bd135591f97a3e13125
-SHA1 (patch-man_mprof-report.1) = 0a80c164614cc9af5f01822005193d80f1d89946
-SHA1 (patch-mono_dis_Makefile.in) = f000112e2712faf29104489e45feae8d6fc45169
-SHA1 (patch-mono_metadata_icall.c) = 191a7fccb174855026cb11dd0f6ac450bb920ec7
-SHA1 (patch-mono_metadata_mono-perfcounters.c) = 8cfbfa62fe4201a20bc07645ccf6b13487a64fc3
-SHA1 (patch-mono_metadata_mono-route.c) = 6eb741efca0a66fae894f7c49fa8f6393079e67f
-SHA1 (patch-mono_mini_mini-arm.c) = 1c4f85a6b2a49604a6b4299f65f0c93d0c01ffa3
-SHA1 (patch-mono_profiler_proflog.c) = 060e8052aeedc1ee224d33644f39b8085a6c92a2
-SHA1 (patch-mono_unit-tests_Makefile.in) = 98cb082e2e0ad53c36b513a7bce9568c26e14f21
-SHA1 (patch-mono_utils_Makefile.in) = be9caeff6d687e8c686d7436db2f39f7803c231a
-SHA1 (patch-mono_utils_mono-compiler.h) = 210062c167c00500f6a9176ef94c8cd96d39c730
-SHA1 (patch-mono_utils_mono-mmap.c) = 869c24a57861fcfb1bdc8a04ed0e0d1fd5a0e0b5
-SHA1 (patch-mono_utils_mono-semaphore.c) = a47c7816445c7781e1cf0efc889dedfbf5b351f9
-SHA1 (patch-mono_utils_mono-threads-dragonfly.c) = d41c7735d5ba0224ff4a4cf70308fb835ec00bbe
-SHA1 (patch-mono_utils_mono-threads-netbsd.c) = 29d7bdb4906bca4e2f5a0a94b7e70e04570df8ee
-SHA1 (patch-mono_utils_mono-threads-posix.c) = d0cb2b1be62cbafe86a3efa817b8120af4ab1086
-SHA1 (patch-mono_utils_mono-threads-solaris.c) = 8781c9e09edfbbbc9940f02cce46a3ce5b6c10c3
-SHA1 (patch-po_Makefile.in) = 53f967c75ae028d991f118fb3bbc5b90bb4ceea7
-SHA1 (patch-support_signal.c) = 33e0c19c21955b105d78a05b2b10d00f479a60c2
-SHA1 (patch-support_time.c) = 2031ab294d66594ff3645b03c48ffca143ab59b5
diff --git a/mono-git/patches/patch-aa b/mono-git/patches/patch-aa
deleted file mode 100644
index 2a2f646..0000000
--- a/mono-git/patches/patch-aa
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-aa,v 1.18 2014/11/30 08:40:51 spz Exp $
---- mono/io-layer/collection.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/io-layer/collection.c
-@@ -58,7 +58,11 @@ void _wapi_collection_init (void)
- 
- #if defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE)
-         if (set_stacksize == 0) {
-+#ifdef PTHREAD_STACK_MIN
- 			ret = pthread_attr_setstacksize (&attr, MAX (65536, PTHREAD_STACK_MIN));
-+#else
-+			ret = pthread_attr_setstacksize (&attr, 65536);
-+#endif
- 			g_assert (ret == 0);
-         } else if (set_stacksize == 1) {
- 			ret = pthread_attr_setstacksize (&attr, 131072);
diff --git a/mono-git/patches/patch-ad b/mono-git/patches/patch-ad
deleted file mode 100644
index 4f840bb..0000000
--- a/mono-git/patches/patch-ad
+++ /dev/null
@@ -1,52 +0,0 @@
-$NetBSD: patch-ad,v 1.27 2014/11/30 08:40:51 spz Exp $
-
---- mono/utils/mono-sigcontext.h.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/utils/mono-sigcontext.h
-@@ -204,6 +204,10 @@ typedef struct ucontext {
- 	#define UCONTEXT_REG_RSI(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_RSI])
- 	#define UCONTEXT_REG_RDI(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_RDI])
- 	#define UCONTEXT_REG_RIP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_RIP])
-+	#define UCONTEXT_REG_R8(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R8])
-+	#define UCONTEXT_REG_R9(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R9])
-+	#define UCONTEXT_REG_R10(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R10])
-+	#define UCONTEXT_REG_R11(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R11])
- 	#define UCONTEXT_REG_R12(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R12])
- 	#define UCONTEXT_REG_R13(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R13])
- 	#define UCONTEXT_REG_R14(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs [_REG_R14])
-@@ -292,7 +296,7 @@ typedef struct ucontext {
- 	#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])
--#elif defined(__FreeBSD__)
-+#elif defined(__FreeBSD__) || defined(__DragonFly__)
- 	typedef ucontext_t os_ucontext;
- 
- 	#define UCONTEXT_REG_Rn(ctx, n)   ((ctx)->uc_mcontext.mc_gpr [(n)])
-@@ -354,6 +358,27 @@ typedef struct ucontext {
- 	#define UCONTEXT_REG_R11(ctx) (((arm_ucontext*)(ctx))->sig_ctx.arm_fp)
- 	#define UCONTEXT_REG_R12(ctx) (((arm_ucontext*)(ctx))->sig_ctx.arm_ip)
- 	#define UCONTEXT_REG_CPSR(ctx) (((arm_ucontext*)(ctx))->sig_ctx.arm_cpsr)
-+#elif defined(__NetBSD__)
-+	typedef ucontext_t arm_ucontext;
-+
-+	#define UCONTEXT_REG_PC(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_PC])
-+	#define UCONTEXT_REG_SP(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_SP])
-+	#define UCONTEXT_REG_LR(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_LR])
-+	#define UCONTEXT_REG_R0(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R0])
-+	#define UCONTEXT_REG_R1(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R1])
-+	#define UCONTEXT_REG_R2(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R2])
-+	#define UCONTEXT_REG_R3(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R3])
-+	#define UCONTEXT_REG_R4(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R4])
-+	#define UCONTEXT_REG_R5(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R5])
-+	#define UCONTEXT_REG_R6(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R6])
-+	#define UCONTEXT_REG_R7(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R7])
-+	#define UCONTEXT_REG_R8(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R8])
-+	#define UCONTEXT_REG_R9(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R9])
-+	#define UCONTEXT_REG_R10(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R10])
-+	#define UCONTEXT_REG_R11(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R11])
-+	#define UCONTEXT_REG_R12(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_R12])
-+	#define UCONTEXT_REG_CPSR(ctx) (((ucontext_t*)(ctx))->uc_mcontext.__gregs[_REG_CPSR])
-+	#define UCONTEXT_REG_VFPREGS(ctx) (double*)(&((ucontext_t*)(ctx))->uc_mcontext.__fpu)
- #endif
- 
- #elif defined(TARGET_ARM64)
diff --git a/mono-git/patches/patch-ae b/mono-git/patches/patch-ae
deleted file mode 100644
index 1c9d792..0000000
--- a/mono-git/patches/patch-ae
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-ae,v 1.13 2014/11/30 08:40:51 spz Exp $
---- libgc/configure.orig	2014-10-04 09:29:04.000000000 +0000
-+++ libgc/configure
-@@ -5037,7 +5037,7 @@ $as_echo "$as_me: WARNING: \"Only HP/UX 
- 	$as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
- 
- 	;;
--      *-*-freebsd*)
-+      *-*-freebsd* | *-*-*dragonfly*)
- 	$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
- 
- 	if test "x$PTHREAD_CFLAGS" != "x"; then
-@@ -5078,6 +5078,8 @@ $as_echo "$as_me: WARNING: \"Only HP/UX 
-      *-*-netbsd*)
- 	$as_echo "#define GC_NETBSD_THREADS 1" >>confdefs.h
- 
-+	$as_echo "#define _REENTRANT 1" >>confdefs.h
-+
- 	if test "${enable_parallel_mark}" = yes; then
- 	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
- 
diff --git a/mono-git/patches/patch-af b/mono-git/patches/patch-af
deleted file mode 100644
index 496a08a..0000000
--- a/mono-git/patches/patch-af
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-af,v 1.14 2014/11/30 08:40:51 spz Exp $
---- mono/metadata/Makefile.in.orig	2014-10-04 09:29:00.000000000 +0000
-+++ mono/metadata/Makefile.in
-@@ -213,7 +213,7 @@ libmonoruntime_static_la_LINK = $(LIBTOO
- 	$(libmonoruntime_static_la_CFLAGS) $(CFLAGS) \
- 	$(libmonoruntime_static_la_LDFLAGS) $(LDFLAGS) -o $@
- @DISABLE_EXECUTABLES_FALSE@@SUPPORT_BOEHM_TRUE@am_libmonoruntime_static_la_rpath =
--libmonoruntime_la_LIBADD =
-+libmonoruntime_la_LIBADD = $(ICU_LIBS)
- am__libmonoruntime_la_SOURCES_DIST = console-unix.c console-win32.c \
- 	assembly.c attach.h attach.c char-conversions.h cil-coff.h \
- 	class.c class-internals.h cominterop.c cominterop.h \
diff --git a/mono-git/patches/patch-ai b/mono-git/patches/patch-ai
deleted file mode 100644
index b88445a..0000000
--- a/mono-git/patches/patch-ai
+++ /dev/null
@@ -1,207 +0,0 @@
-$NetBSD: patch-ai,v 1.10 2014/11/30 08:40:51 spz Exp $
-
---- mono/metadata/object.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/metadata/object.c
-@@ -4122,6 +4122,135 @@ mono_install_runtime_invoke (MonoInvokeF
- 	default_mono_runtime_invoke = func ? func: dummy_mono_runtime_invoke;
- }
- 
-+/*
-+ * is_widen_compatible:
-+ * 
-+ * Tests if @candidate can be used in place of @type by means of a widening conversion.
-+ * This means, for example, that a byte can be widened to an int and be used as argument in
-+ * a reflection call. 
-+ * 
-+ * Returns true if @candidate can be widened to @type.
-+ */
-+static gboolean
-+is_widen_compatible (MonoType * type, MonoType *candidate)
-+{
-+	if (type->type == candidate->type)
-+		return TRUE;
-+
-+	switch (candidate->type) {
-+	case MONO_TYPE_U1:
-+		switch (type->type) {
-+		case MONO_TYPE_U2:
-+		case MONO_TYPE_I2:
-+		case MONO_TYPE_CHAR:
-+		case MONO_TYPE_U:
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_U4:
-+		case MONO_TYPE_I4:
-+		case MONO_TYPE_U8:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_I1:
-+		switch (type->type) {
-+		case MONO_TYPE_I2:
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_I4:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+	case MONO_TYPE_BOOLEAN:
-+		return type->type == MONO_TYPE_BOOLEAN;
-+	case MONO_TYPE_U2:
-+		switch (type->type) {
-+		case MONO_TYPE_U2:
-+		case MONO_TYPE_U:
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_U4:
-+		case MONO_TYPE_I4:
-+		case MONO_TYPE_U8:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_I2:
-+		switch (type->type) {
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_I4:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_CHAR:
-+		switch (type->type) {
-+		case MONO_TYPE_U2:
-+		case MONO_TYPE_U:
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_U4:
-+		case MONO_TYPE_I4:
-+		case MONO_TYPE_U8:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_U:
-+		switch (type->type) {
-+		case MONO_TYPE_U4:
-+		case MONO_TYPE_U8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_I:
-+		switch (type->type) {
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_U4:
-+		switch (type->type) {
-+		case MONO_TYPE_U:
-+		case MONO_TYPE_U8:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_I4:
-+		switch (type->type) {
-+		case MONO_TYPE_I:
-+		case MONO_TYPE_I8:
-+		case MONO_TYPE_R4:
-+		case MONO_TYPE_R8:
-+			return TRUE;
-+		}
-+		return FALSE;
-+	case MONO_TYPE_U8:
-+	case MONO_TYPE_I8:
-+		return type->type == MONO_TYPE_R4 || type->type == MONO_TYPE_R8;
-+	case MONO_TYPE_R4:
-+		return type->type == MONO_TYPE_R8;
-+	case MONO_TYPE_R8:
-+		break;
-+	}
-+	return FALSE;
-+}
- 
- /**
-  * mono_runtime_invoke_array:
-@@ -4174,6 +4303,8 @@ mono_runtime_invoke_array (MonoMethod *m
- 		pa = alloca (sizeof (gpointer) * mono_array_length (params));
- 		for (i = 0; i < mono_array_length (params); i++) {
- 			MonoType *t = sig->params [i];
-+			MonoClass *par_class = mono_class_from_mono_type (t);
-+			MonoObject *pao;
- 
- 		again:
- 			switch (t->type) {
-@@ -4198,9 +4329,16 @@ mono_runtime_invoke_array (MonoMethod *m
- 					if (t->byref)
- 						has_byref_nullables = TRUE;
- 				} else {
-+					pao = mono_array_get (params, MonoObject*, i);
- 					/* MS seems to create the objects if a null is passed in */
--					if (!mono_array_get (params, MonoObject*, i))
--						mono_array_setref (params, i, mono_object_new (mono_domain_get (), mono_class_from_mono_type (sig->params [i]))); 
-+					if (pao) {
-+						if ((t->type == MONO_TYPE_VALUETYPE && pao->vtable->klass != par_class) ||
-+							(t->type != MONO_TYPE_VALUETYPE && !is_widen_compatible (t, &pao->vtable->klass->byval_arg)))
-+							mono_raise_exception (mono_get_exception_argument ("", "Incompatible type passed"));
-+					} else {
-+						pao = mono_object_new (mono_domain_get (), par_class);
-+						mono_array_setref (params, i, pao);
-+					}
- 
- 					if (t->byref) {
- 						/*
-@@ -4210,12 +4348,13 @@ mono_runtime_invoke_array (MonoMethod *m
- 						 * object, pass that to the callee, and replace the original
- 						 * boxed object in the arg array with the copy.
- 						 */
--						MonoObject *orig = mono_array_get (params, MonoObject*, i);
-+						MonoObject *orig = pao;
- 						MonoObject *copy = mono_value_box (mono_domain_get (), orig->vtable->klass, mono_object_unbox (orig));
- 						mono_array_setref (params, i, copy);
-+						pao = copy;
- 					}
- 						
--					pa [i] = mono_object_unbox (mono_array_get (params, MonoObject*, i));
-+					pa [i] = mono_object_unbox (pao);
- 				}
- 				break;
- 			case MONO_TYPE_STRING:
-@@ -4223,11 +4362,19 @@ mono_runtime_invoke_array (MonoMethod *m
- 			case MONO_TYPE_CLASS:
- 			case MONO_TYPE_ARRAY:
- 			case MONO_TYPE_SZARRAY:
--				if (t->byref)
-+				if (t->byref) {
- 					pa [i] = mono_array_addr (params, MonoObject*, i);
- 					// FIXME: I need to check this code path
--				else
--					pa [i] = mono_array_get (params, MonoObject*, i);
-+				} else {
-+					pao = mono_array_get (params, MonoObject*, i);
-+					pa [i] = pao;
-+					
-+					if (pao != NULL && !mono_class_is_assignable_from (par_class, pao->vtable->klass) &&
-+						(pao->vtable->klass == mono_defaults.transparent_proxy_class &&
-+							!mono_class_is_assignable_from (par_class, ((MonoTransparentProxy*)pao)->remote_class->proxy_class))) {
-+						mono_raise_exception (mono_get_exception_argument ("", "Incompatible type passed"));
-+					}
-+				}
- 				break;
- 			case MONO_TYPE_GENERICINST:
- 				if (t->byref)
diff --git a/mono-git/patches/patch-aj b/mono-git/patches/patch-aj
deleted file mode 100644
index 331192b..0000000
--- a/mono-git/patches/patch-aj
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aj,v 1.10 2014/11/30 08:40:51 spz Exp $
---- data/net_2_0/Browsers/Makefile.in.orig	2014-10-04 09:28:58.000000000 +0000
-+++ data/net_2_0/Browsers/Makefile.in
-@@ -351,7 +351,7 @@ target_vendor = @target_vendor@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--monodir = $(sysconfdir)/mono/2.0/Browsers
-+monodir = $(datadir)/examples/mono/2.0/Browsers
- EXTRA_DIST = ../../Browsers/Compat.browser
- mono_DATA = ../../Browsers/Compat.browser
- all: all-am
diff --git a/mono-git/patches/patch-ak b/mono-git/patches/patch-ak
deleted file mode 100644
index 8dd30c8..0000000
--- a/mono-git/patches/patch-ak
+++ /dev/null
@@ -1,56 +0,0 @@
-$NetBSD: patch-ak,v 1.12 2015/06/15 09:27:29 joerg Exp $
---- libgc/pthread_support.c.orig	2015-04-24 01:26:16.000000000 +0000
-+++ libgc/pthread_support.c
-@@ -71,7 +71,7 @@
-       defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \
-       defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \
-       defined(GC_FREEBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \
--      defined(GC_OPENBSD_THREADS)
-+      !defined(USE_COMPILER_TLS) || defined(GC_OPENBSD_THREADS)
- #   define USE_PTHREAD_SPECIFIC
- # endif
- #endif
-@@ -595,6 +595,20 @@ static void start_mark_threads()
- 	}
-       }
- #   endif /* HPUX || GC_DGUX386_THREADS */
-+#   if defined(__NetBSD__)
-+#     define MAX_STACK_SIZE (1024 * 1024 *sizeof(word))
-+      {
-+	size_t old_size;
-+	int code;
-+
-+        if (pthread_attr_getstacksize(&attr, &old_size) != 0)
-+	  ABORT("pthread_attr_getstacksize failed\n");
-+	if (old_size > MAX_STACK_SIZE) {
-+	  if (pthread_attr_setstacksize(&attr, MAX_STACK_SIZE) != 0)
-+		  ABORT("pthread_attr_setstacksize failed\n");
-+	}
-+      }
-+#   endif
- #   ifdef CONDPRINT
-       if (GC_print_stats) {
- 	GC_printf1("Starting %ld marker threads\n", GC_markers - 1);
-@@ -1282,6 +1296,22 @@ void GC_end_blocking(void) {
- #define __d10_sleep sleep
- #endif /* GC_DGUX386_THREADS */
- 
-+#undef nanosleep
-+#undef usleep
-+#undef sleep
-+
-+/* A wrapper for the standard C nanosleep function     */
-+int WRAP_FUNC(nanosleep) (const struct timespec *rqtp, struct timespec *rmtp)
-+{
-+    int result;
-+
-+    GC_start_blocking();
-+    result = REAL_FUNC(nanosleep)(rqtp, rmtp);
-+    GC_end_blocking();
-+
-+    return result;
-+}
-+
- /* A wrapper for the standard C sleep function	*/
- int WRAP_FUNC(sleep) (unsigned int seconds)
- {
diff --git a/mono-git/patches/patch-al b/mono-git/patches/patch-al
deleted file mode 100644
index 81b8dbe..0000000
--- a/mono-git/patches/patch-al
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-al,v 1.8 2014/11/30 08:40:51 spz Exp $
---- data/config.in.orig	2014-10-04 09:27:43.000000000 +0000
-+++ data/config.in
-@@ -21,7 +21,7 @@
- 	<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
- 	<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
- 	<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
--	<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
-+	<dllmap dll="libcups" target="libcups.so" os="!windows"/>
- 	<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
- 	<dllmap dll="i:kernel32.dll">
- 		<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
diff --git a/mono-git/patches/patch-am b/mono-git/patches/patch-am
deleted file mode 100644
index 7c519a6..0000000
--- a/mono-git/patches/patch-am
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-am,v 1.7 2014/11/30 08:40:51 spz Exp $
-
---- mono/io-layer/io.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/io-layer/io.c
-@@ -3463,7 +3463,7 @@ guint32 GetTempPath (guint32 len, gunich
- 	return(ret);
- }
- 
--#ifdef HAVE_GETFSSTAT
-+#if (defined(HAVE_GETFSSTAT) && defined(HAVE_SYS_STATFS_H))
- /* Darwin has getfsstat */
- gint32 GetLogicalDriveStrings (guint32 len, gunichar2 *buf)
- {
-@@ -4260,7 +4260,7 @@ guint32 GetDriveType(const gunichar2 *ro
- 	return (drive_type);
- }
- 
--#if defined (PLATFORM_MACOSX) || defined (__linux__) || defined(PLATFORM_BSD) || defined(__native_client__) || defined(__FreeBSD_kernel__)
-+#if defined (PLATFORM_MACOSX) || defined (__linux__) || defined(PLATFORM_BSD) || defined(__native_client__) || defined(__FreeBSD_kernel__) || defined(PLATFORM_SOLARIS)
- static gchar*
- get_fstypename (gchar *utfpath)
- {
diff --git a/mono-git/patches/patch-ap b/mono-git/patches/patch-ap
deleted file mode 100644
index e7e4e5e..0000000
--- a/mono-git/patches/patch-ap
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ap,v 1.5 2014/11/30 08:40:51 spz Exp $
---- mcs/jay/Makefile.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mcs/jay/Makefile
-@@ -21,19 +21,19 @@ ifndef NO_INSTALL
- install-local:
- 	$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
- 	$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/jay
--	$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/man/man1
-+	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
- 	$(INSTALL_BIN) jay $(DESTDIR)$(prefix)/bin
- 	for datafile in $(datafiles) ; do \
- 	   $(INSTALL_DATA) $$datafile $(DESTDIR)$(prefix)/share/jay ; \
- 	done
--	$(INSTALL_DATA) jay.1 $(DESTDIR)$(prefix)/share/man/man1
-+	$(INSTALL_DATA) jay.1 $(DESTDIR)$(mandir)/man1
- 
- uninstall-local:
- 	-rm -f $(DESTDIR)$(prefix)/bin/jay
- 	for datafile in $(datafiles) ; do \
- 	   rm -f $(DESTDIR)$(prefix)/share/jay/$$datafile || : ; \
- 	done
--	-rm -f $(DESTDIR)$(prefix)/share/man/man1/jay.1
-+	-rm -f $(DESTDIR)$(mandir)/man1/jay.1
- endif
- 
- csproj-local:
diff --git a/mono-git/patches/patch-aq b/mono-git/patches/patch-aq
deleted file mode 100644
index 5621f7b..0000000
--- a/mono-git/patches/patch-aq
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aq,v 1.7 2014/11/30 08:40:51 spz Exp $
---- data/net_4_0/Makefile.in.orig	2014-10-04 09:28:58.000000000 +0000
-+++ data/net_4_0/Makefile.in
-@@ -412,7 +412,7 @@ top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- SUBDIRS = Browsers
--monodir = $(sysconfdir)/mono/4.0
-+monodir = $(datadir)/examples/mono/4.0
- EXTRA_DIST = machine.config \
- 	      web.config \
- 	      DefaultWsdlHelpGenerator.aspx \
diff --git a/mono-git/patches/patch-ar b/mono-git/patches/patch-ar
deleted file mode 100644
index 6950df3..0000000
--- a/mono-git/patches/patch-ar
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ar,v 1.6 2014/11/30 08:40:51 spz Exp $
---- data/net_2_0/Makefile.in.orig	2014-10-04 09:28:58.000000000 +0000
-+++ data/net_2_0/Makefile.in
-@@ -412,7 +412,7 @@ top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- SUBDIRS = Browsers
--monodir = $(sysconfdir)/mono/2.0
-+monodir = $(datadir)/examples/mono/2.0
- EXTRA_DIST = machine.config \
- 	      web.config \
- 	      DefaultWsdlHelpGenerator.aspx \
diff --git a/mono-git/patches/patch-as b/mono-git/patches/patch-as
deleted file mode 100644
index 1fc65f0..0000000
--- a/mono-git/patches/patch-as
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-as,v 1.4 2014/11/30 08:40:51 spz Exp $
-
-From FreeBSD: https://bugzilla.novell.com/show_bug.cgi?id=528830
-
---- mono/metadata/appdomain.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/metadata/appdomain.c
-@@ -2476,6 +2476,11 @@ mono_domain_try_unload (MonoDomain *doma
- 			CloseHandle (thread_handle);
- 			unload_data_unref (thread_data);
- 			return;
-+		} else if (!mono_thread_has_appdomain_ref (mono_thread_current (), domain) && !(mono_thread_interruption_requested ())) {
-+			if (!domain->friendly_name) {
-+				CloseHandle (thread_handle);
-+				return;
-+			}
- 		}
- 	}
- 	CloseHandle (thread_handle);
diff --git a/mono-git/patches/patch-ba b/mono-git/patches/patch-ba
deleted file mode 100644
index 6fe873f..0000000
--- a/mono-git/patches/patch-ba
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ba,v 1.11 2014/11/30 08:40:51 spz Exp $
---- mono/cil/Makefile.in.orig	2014-10-04 09:28:59.000000000 +0000
-+++ mono/cil/Makefile.in
-@@ -593,7 +593,7 @@ uninstall-am: uninstall-defDATA uninstal
- 	uninstall-am uninstall-defDATA uninstall-xmlDATA
- 
- opcode.def: make-opcodes-def.pl cil-opcodes.xml
--	perl $(srcdir)/make-opcodes-def.pl $(srcdir)/cil-opcodes.xml $@.tmp
-+	$(PERL) $(srcdir)/make-opcodes-def.pl $(srcdir)/cil-opcodes.xml $@.tmp
- 	mv $@.tmp $@
- 
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/mono-git/patches/patch-bc b/mono-git/patches/patch-bc
deleted file mode 100644
index 2fffbd4..0000000
--- a/mono-git/patches/patch-bc
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-bc,v 1.8 2014/11/30 08:40:51 spz Exp $
-
---- mono/mini/Makefile.in.orig	2014-10-04 09:29:00.000000000 +0000
-+++ mono/mini/Makefile.in
-@@ -3018,15 +3018,15 @@ mbench: test.exe
- 
- stat1: mono bench.exe
- 	$(RUNTIME) --verbose --statfile stats.pl --regression bench.exe
--	perl viewstat.pl stats.pl
-+	$(PERL) viewstat.pl stats.pl
- 
- stat2: mono basic.exe
- 	$(RUNTIME) --verbose --statfile stats.pl --regression basic.exe
--	perl viewstat.pl -e stats.pl
-+	$(PERL) viewstat.pl -e stats.pl
- 
- stat3: mono bench.exe
- 	$(RUNTIME) --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe 
--	perl viewstat.pl stats.pl
-+	$(PERL) viewstat.pl stats.pl
- 
- docu: mini.sgm
- 	docbook2txt mini.sgm
diff --git a/mono-git/patches/patch-bd b/mono-git/patches/patch-bd
deleted file mode 100644
index 55206c0..0000000
--- a/mono-git/patches/patch-bd
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-bd,v 1.7 2015/06/04 17:16:20 jperkin Exp $
-
-Add MANDIR, but don't hardcode it (fixed in post-patch by SUBST_*).
-
---- mcs/build/config-default.make.orig	2014-09-22 13:23:05.000000000 +0000
-+++ mcs/build/config-default.make
-@@ -17,8 +17,9 @@ LIBRARY_FLAGS = /noconfig
- ifndef CFLAGS
- CFLAGS = -g -O2
- endif
--prefix = /usr/local
-+prefix = @PREFIX@
- exec_prefix = $(prefix)
-+mandir = @PKGMANDIR@
- mono_libdir = $(exec_prefix)/lib
- sysconfdir = $(prefix)/etc
- #RUNTIME = mono
diff --git a/mono-git/patches/patch-be b/mono-git/patches/patch-be
deleted file mode 100644
index 216f0da..0000000
--- a/mono-git/patches/patch-be
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-be,v 1.5 2014/11/30 08:40:51 spz Exp $
-
---- support/sys-mman.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/sys-mman.c
-@@ -10,7 +10,6 @@
- #include <config.h>
- 
- #ifndef __OpenBSD__
--#define _XOPEN_SOURCE 600
- #endif
- 
- #ifdef PLATFORM_MACOSX
-@@ -25,6 +24,9 @@
- #include <sys/types.h>
- #include <sys/mman.h>
- #include <errno.h>
-+#ifdef __sun
-+#include <unistd.h>
-+#endif
- 
- #include "map.h"
- #include "mph.h"
-@@ -109,8 +111,13 @@ Mono_Posix_Syscall_mremap (void *old_add
- 	if (Mono_Posix_FromMremapFlags (flags, &_flags) == -1)
- 		return MAP_FAILED;
- 
-+#if defined(__NetBSD__)
-+	return mremap (old_address, (size_t) old_size, old_address, (size_t) new_size,
-+			(unsigned long) _flags);
-+#else
- 	return mremap (old_address, (size_t) old_size, (size_t) new_size,
- 			(unsigned long) _flags);
-+#endif
- }
- #endif /* def HAVE_MREMAP */
- 
diff --git a/mono-git/patches/patch-bf b/mono-git/patches/patch-bf
deleted file mode 100644
index 37fe6a0..0000000
--- a/mono-git/patches/patch-bf
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-bf,v 1.4 2014/11/30 08:40:51 spz Exp $
---- support/map.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/map.c
-@@ -3623,13 +3623,21 @@ int Mono_Posix_ToMountFlags (guint64 x, 
- 
- int Mono_Posix_FromMremapFlags (guint64 x, guint64 *r)
- {
-+#ifdef __NetBSD__
-+	*r = MAP_FIXED;
-+#else
- 	*r = 0;
-+#endif
- 	if ((x & Mono_Posix_MremapFlags_MREMAP_MAYMOVE) == Mono_Posix_MremapFlags_MREMAP_MAYMOVE)
-+#ifdef __NetBSD__
-+	*r &= ~MAP_FIXED;
-+#else
- #ifdef MREMAP_MAYMOVE
- 		*r |= MREMAP_MAYMOVE;
- #else /* def MREMAP_MAYMOVE */
- 		{errno = EINVAL; return -1;}
- #endif /* ndef MREMAP_MAYMOVE */
-+#endif /* __NetBSD__ */
- 	if (x == 0)
- 		return 0;
- 	return 0;
diff --git a/mono-git/patches/patch-bi b/mono-git/patches/patch-bi
deleted file mode 100644
index 2fb921e..0000000
--- a/mono-git/patches/patch-bi
+++ /dev/null
@@ -1,37 +0,0 @@
-$NetBSD: patch-bi,v 1.3 2014/11/30 08:40:51 spz Exp $
---- mono/metadata/filewatcher.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/metadata/filewatcher.c
-@@ -45,9 +45,6 @@ static int (*FAMNextEvent) (gpointer, gp
- gint
- ves_icall_System_IO_FSW_SupportsFSW (void)
- {
--#if HAVE_KQUEUE
--	return 3;
--#else
- 	MonoDl *fam_module;
- 	int lib_used = 4; /* gamin */
- 	int inotify_instance;
-@@ -71,15 +68,22 @@ ves_icall_System_IO_FSW_SupportsFSW (voi
- 	}
- 
- 	if (fam_module == NULL)
-+#if HAVE_KQUEUE
-+		return 3;
-+#else
- 		return 0;
-+#endif
- 
- 	err = mono_dl_symbol (fam_module, "FAMNextEvent", (gpointer *) &FAMNextEvent);
- 	g_free (err);
- 	if (FAMNextEvent == NULL)
-+#if HAVE_KQUEUE
-+		return 3;
-+#else
- 		return 0;
-+#endif
- 
- 	return lib_used;
--#endif
- }
- 
- /* Almost copied from fam.h. Weird, I know */
diff --git a/mono-git/patches/patch-cc b/mono-git/patches/patch-cc
deleted file mode 100644
index 093c299..0000000
--- a/mono-git/patches/patch-cc
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-cc,v 1.6 2014/11/30 08:40:51 spz Exp $
-
-Currently mono is not copying the domain default context for some of
-the newly created threads. This leads to some problems with programs
-that use remoting stack, for example monodevelop that is unusable -
-it doesn't compile and run projects. The following hack fixes the
-issue until further investigations for pkgsrc-2010Q3 release.
-
-Bug tracking: https://bugzilla.novell.com/show_bug.cgi?id=599485
-
-
---- mono/metadata/domain.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/metadata/domain.c
-@@ -2359,7 +2359,18 @@ mono_context_set (MonoAppContext * new_c
- MonoAppContext * 
- mono_context_get (void)
- {
--	return GET_APPCONTEXT ();
-+	MonoAppContext *retval = GET_APPCONTEXT();
-+#ifdef __NetBSD__
-+	/*
-+	 * We gotta find out why context is sometime NULL for newly threads
-+	 * Until then use default context if it's not set
-+	 */
-+	if(retval == NULL) {
-+		retval = ves_icall_System_AppDomain_InternalGetDefaultContext();
-+		mono_context_set(retval);
-+	}
-+#endif
-+	return retval;
- }
- 
- /* LOCKING: the caller holds the lock for this domain */
diff --git a/mono-git/patches/patch-configure b/mono-git/patches/patch-configure
deleted file mode 100644
index 0d7d309..0000000
--- a/mono-git/patches/patch-configure
+++ /dev/null
@@ -1,153 +0,0 @@
-$NetBSD: patch-configure,v 1.3 2015/08/25 12:23:00 wiz Exp $
-
---- configure.orig	2015-08-04 07:48:54.000000000 +0000
-+++ configure
-@@ -3983,7 +3983,7 @@ $as_echo "#define PLATFORM_NO_SYMLINKS 1
- 		mono_cv_clang=no
- 		if test "x$cross_compiling" = "xno"; then
- 			target_win32=yes
--			if test "x$host" == "x$build" -a "x$host" == "x$target"; then
-+			if test "x$host" = "x$build" -a "x$host" = "x$target"; then
- 
- $as_echo "#define TARGET_WIN32 1" >>confdefs.h
- 
-@@ -4020,10 +4020,13 @@ $as_echo "#define MINGW_CROSS_COMPILE 1"
- 		CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
- 		libmono_ldflags="-pthread"
- 		need_link_unlink=yes
--		libdl="-ldl"
-+		libdl="-ldl /libexec/ld.elf_so"
- 		libgc_threads=pthreads
- 		with_sigaltstack=no
- 		use_sigposix=yes
-+		cat >>confdefs.h <<\_ACEOF
-+#define PTHREAD_POINTER_ID 1
-+_ACEOF
- 		;;
- 	*-*-kfreebsd*-gnu)
- 		host_win32=no
-@@ -4036,7 +4039,7 @@ $as_echo "#define MINGW_CROSS_COMPILE 1"
- 		with_sigaltstack=no
- 		use_sigposix=yes
- 		;;
--	*-*-*freebsd*)
-+	*-*-*freebsd* | *-*-*dragonfly*)
- 		host_win32=no
- 		if test "x$PTHREAD_CFLAGS" = "x"; then
- 			CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
-@@ -4052,7 +4055,8 @@ $as_echo "#define MINGW_CROSS_COMPILE 1"
- 			LDFLAGS="$LDFLAGS $PTHREAD_LIBS -L/usr/local/lib"
- 			libmono_ldflags="$PTHREAD_LIBS"
- 		fi
--		CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
-+		CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD6 -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP"
-+		libmono_cflags="$libmono_cflags -D_REENTRANT"
- 		need_link_unlink=yes
- 
- $as_echo "#define PTHREAD_POINTER_ID 1" >>confdefs.h
-@@ -21999,9 +22003,7 @@ done
- 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris XPG4 support" >&5
- $as_echo_n "checking for Solaris XPG4 support... " >&6; }
- 			if test -f /usr/lib/libxnet.so; then
--				CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
- 	    			CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
--				CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
-            			LIBS="$LIBS -lxnet"
-   	    			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
-@@ -25084,7 +25086,7 @@ else
-   test_perf_events=no
- fi
- 
--if test "x$test_perf_events" == "xyes"; then
-+if test "x$test_perf_events" = "xyes"; then
- 
- $as_echo "#define ENABLE_PERF_EVENTS 1" >>confdefs.h
- 
-@@ -25422,7 +25424,7 @@ $as_echo_n "checking LLVM version... " >
-    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_version" >&5
- $as_echo "$llvm_version" >&6; }
-    if echo $llvm_version | grep -q 'mono'; then
--	  if test "x$enable_llvm_version_check" == "xyes"; then
-+	  if test "x$enable_llvm_version_check" = "xyes"; then
- 	  	 if test "$llvm_version" != "$expected_llvm_version"; then
- 	  	 	as_fn_error $? "Expected llvm version $expected_llvm_version, but llvm-config --version returned $llvm_version\"" "$LINENO" 5
- 	  	 fi
-@@ -25504,7 +25506,7 @@ LIBC="libc.so.6"
- INTL="libc.so.6"
- SQLITE="libsqlite.so.0"
- SQLITE3="libsqlite3.so.0"
--X11="libX11.so"
-+X11="/usr/X11R7/lib/libX11.so"
- GDKX11="libgdk-x11-2.0.so.0"
- GTKX11="libgtk-x11-2.0.so.0"
- XINERAMA="libXinerama.so.1"
-@@ -25608,6 +25610,11 @@ $as_echo "#define __mono_ilp32__ 1" >>co
- 			sizeof_register=8
- 		fi
- 		case $host_os in
-+		  solaris*)
-+			LIBC="libc.so"
-+			INTL="libintl.so"
-+			have_visibility_hidden=no
-+			;;
- 		  linux*)
- 			sgen_supported=true
- 			AOT_SUPPORTED="yes"
-@@ -25739,12 +25746,15 @@ fi
- 		CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
- 		sgen_supported=true
- 		;;
--	arm*-linux*)
-+	arm*-linux* | arm*-netbsd* | earm*-netbsd*)
- 		TARGET=ARM;
- 		arch_target=arm;
- 		ACCESS_UNALIGNED="no"
--		sgen_supported=true
--		AOT_SUPPORTED="yes"
-+		case $host_os in
-+		  *linux)
-+			sgen_supported=true
-+			AOT_SUPPORTED="yes"
-+		esac
- 		CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
- 		;;
- # TODO: make proper support for NaCl host.
-@@ -25854,7 +25864,7 @@ $as_echo "#define TARGET_X86 1" >>confde
- 
- 		sizeof_register=4
- 		;;
--   arm*-linux-*)
-+   arm*-linux-* | arm*-netbsd* | earm*-netbsd*)
- 		TARGET=ARM;
- 		arch_target=arm;
- 
-@@ -26198,15 +26208,17 @@ case "$host" in
- 	GTKX11="libgtk-x11-2.0.dylib"
- 	;;
-      *-*-*netbsd*)
--	LIBC="libc.so.12"
--	INTL="libintl.so.0"
-+	LIBC="libc.so"
-+	INTL="libintl.so"
-+	SQLITE="libsqlite.so"
-+	SQLITE3="libsqlite3.so"
- 	;;
-      *-*-kfreebsd*-gnu)
- 	LIBC="libc.so.0.1"
- 	INTL="libc.so.0.1"
- 	X11="libX11.so.6"
- 	;;
--    *-*-*freebsd*)
-+    *-*-*freebsd* | *-*-*dragonfly*)
-     	LIBC="libc.so"
- 	INTL="libintl.so"
- 	SQLITE="libsqlite.so"
-@@ -27193,7 +27205,6 @@ else
- fi
- 
- 
--ac_config_files="$ac_config_files po/mcs/Makefile.in"
- 
- 
- ac_config_files="$ac_config_files runtime/mono-wrapper"
diff --git a/mono-git/patches/patch-da b/mono-git/patches/patch-da
deleted file mode 100644
index 43c9770..0000000
--- a/mono-git/patches/patch-da
+++ /dev/null
@@ -1,157 +0,0 @@
-$NetBSD: patch-da,v 1.6 2014/11/30 08:40:51 spz Exp $
-
-Support 64-bit SunOS.
-
---- libgc/include/private/gcconfig.h.orig	2014-09-22 13:23:05.000000000 +0000
-+++ libgc/include/private/gcconfig.h
-@@ -169,6 +169,11 @@
- #    define SUNOS5
- #    define mach_type_known
- # endif
-+# if defined(sun) && defined(__amd64)
-+#    define X86_64
-+#    define SUNOS5
-+#    define mach_type_known
-+# endif
- # if (defined(__OS2__) || defined(__EMX__)) && defined(__32BIT__)
- #    define I386
- #    define OS2
-@@ -372,6 +377,9 @@
- #   define OPENBSD
- #   define mach_type_known
- # endif
-+# if defined(__DragonFly__)
-+# define FREEBSD
-+# endif
- # if defined(FREEBSD) && (defined(i386) || defined(__i386__))
- #   define I386
- #   define mach_type_known
-@@ -711,6 +719,10 @@
- #   endif
- #   ifdef NETBSD
- #	define OS_TYPE "NETBSD"
-+#       ifndef USE_MMAP
-+#         define USE_MMAP
-+#       endif
-+#       define USE_MMAP_ANON
- #	define HEURISTIC2
- #	ifdef __ELF__
- #	  define DATASTART GC_data_start
-@@ -902,6 +914,10 @@
- #   ifdef NETBSD
- #     define ALIGNMENT 4
- #     define OS_TYPE "NETBSD"
-+#     ifndef USE_MMAP
-+#       define USE_MMAP
-+#     endif
-+#     define USE_MMAP_ANON
- #     define HEURISTIC2
-       extern char etext[];
- #     define DATASTART GC_data_start
-@@ -1097,6 +1113,10 @@
- #   endif
- #   ifdef NETBSD
- #     define OS_TYPE "NETBSD"
-+#     ifndef USE_MMAP
-+#       define USE_MMAP
-+#     endif
-+#     define USE_MMAP_ANON
- #     define HEURISTIC2
- #     ifdef __ELF__
- #	define DATASTART GC_data_start
-@@ -1390,6 +1410,10 @@
- #   endif
- #   ifdef NETBSD
- #	define OS_TYPE "NETBSD"
-+#       ifndef USE_MMAP
-+#           define USE_MMAP
-+#       endif
-+#       define USE_MMAP_ANON
- #	ifdef __ELF__
- #	    define DYNAMIC_LOADING
- #	endif
-@@ -1551,6 +1575,10 @@
- #   if defined(NETBSD)
- #     define ALIGNMENT 4
- #     define OS_TYPE "NETBSD"
-+#     ifndef USE_MMAP
-+#         define USE_MMAP
-+#     endif
-+#     define USE_MMAP_ANON
- #     define HEURISTIC2
- #     define USE_GENERIC_PUSH_REGS
- #     ifdef __ELF__
-@@ -1677,6 +1705,10 @@
- #   endif
- #   ifdef NETBSD
- #	define OS_TYPE "NETBSD"
-+#       ifndef USE_MMAP
-+#           define USE_MMAP
-+#       endif
-+#       define USE_MMAP_ANON
- #	define HEURISTIC2
- #	define DATASTART GC_data_start
- #	define ELFCLASS32 32
-@@ -1944,6 +1976,10 @@
- #   define ALIGNMENT 4
- #   ifdef NETBSD
- #       define OS_TYPE "NETBSD"
-+#       ifndef USE_MMAP
-+#           define USE_MMAP
-+#       endif
-+#       define USE_MMAP_ANON
- #       define HEURISTIC2
- #	ifdef __ELF__
- #          define DATASTART GC_data_start
-@@ -2041,6 +2077,10 @@
- #   endif
- #   ifdef NETBSD
- #      define OS_TYPE "NETBSD"
-+#      ifndef USE_MMAP
-+#          define USE_MMAP
-+#      endif
-+#      define USE_MMAP_ANON
- #      define HEURISTIC2
- #      define DATASTART GC_data_start
- #       define USE_GENERIC_PUSH_REGS
-@@ -2159,6 +2199,10 @@
- #   endif
- #   ifdef NETBSD
- #	define OS_TYPE "NETBSD"
-+#       ifndef USE_MMAP
-+#         define USE_MMAP
-+#       endif
-+#       define USE_MMAP_ANON
- #	ifdef __ELF__
- #	    define DYNAMIC_LOADING
- #	endif
-@@ -2166,6 +2210,29 @@
- 	extern char etext[];
- #	define SEARCH_FOR_DATA_START
- #   endif
-+#   ifdef SUNOS5
-+#	define OS_TYPE "SUNOS5"
-+#	define ELF_CLASS ELFCLASS64
-+	extern int _etext[], _end[];
-+	extern ptr_t GC_SysVGetDataStart();
-+#	define DATASTART GC_SysVGetDataStart(0x1000, _etext)
-+#	define DATAEND (_end)
-+#	include <sys/vmparam.h>
-+#	ifdef USERLIMIT
-+#	    define STACKBOTTOM USRSTACK
-+#	else
-+#	    define HEURISTIC2
-+#	endif
-+#	define DYNAMIC_LOADING
-+#	if !defined(USE_MMAP) && defined(REDIRECT_MALLOC)
-+#	    define USE_MMAP
-+#	endif
-+#	ifdef USE_MMAP
-+#	    define HEAP_START (ptr_t)0x40000000
-+#	else
-+#	    define HEAP_START DATAEND
-+#	endif
-+#   endif
- #   ifdef OPENBSD
- #       define OS_TYPE "OPENBSD"
- #       define ELF_CLASS ELFCLASS64
diff --git a/mono-git/patches/patch-data_Makefile.in b/mono-git/patches/patch-data_Makefile.in
deleted file mode 100644
index a7586a2..0000000
--- a/mono-git/patches/patch-data_Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-data_Makefile.in,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-Fix monodir
-
---- data/Makefile.in.orig	2015-05-06 00:29:54.000000000 +0300
-+++ data/Makefile.in	2015-05-11 15:40:33.000000000 +0300
-@@ -434,7 +434,7 @@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- SUBDIRS = net_2_0 net_4_0 net_4_5
--monodir = $(sysconfdir)/mono
-+monodir = $(datadir)/examples/mono
- monolldbdir = $(libdir)/mono/lldb
- EXTRA_DIST = \
- 	config.in \
diff --git a/mono-git/patches/patch-data_mono-nunit.pc.in b/mono-git/patches/patch-data_mono-nunit.pc.in
deleted file mode 100644
index aae04de..0000000
--- a/mono-git/patches/patch-data_mono-nunit.pc.in
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-data_mono-nunit.pc.in,v 1.1 2015/05/23 06:20:20 kefren Exp $
-
-Fix nunit pkg-config path
-
---- data/mono-nunit.pc.in.orig	2015-05-22 17:30:11.000000000 +0300
-+++ data/mono-nunit.pc.in	2015-05-22 17:30:49.000000000 +0300
-@@ -6,4 +6,4 @@
- Name: Mono NUnit
- Description: Mono's version of NUnit
- Version: @VERSION@
--Libs: -r:${libdir}/mono/2.0/nunit.core.dll -r:${libdir}/mono/2.0/nunit.core.interfaces.dll -r:${libdir}/mono/2.0/nunit.core.extensions.dll -r:${libdir}/mono/2.0/nunit.framework.dll -r:${libdir}/mono/2.0/nunit.framework.extensions.dll -r:${libdir}/mono/2.0/nunit.mocks.dll -r:${libdir}/mono/2.0/nunit.util.dll -r:${libdir}/mono/2.0/nunit-console-runner.dll 
-+Libs: -r:${libdir}/mono/4.5/nunit.core.dll -r:${libdir}/mono/4.5/nunit.core.interfaces.dll -r:${libdir}/mono/4.5/nunit.core.extensions.dll -r:${libdir}/mono/4.5/nunit.framework.dll -r:${libdir}/mono/4.5/nunit.framework.extensions.dll -r:${libdir}/mono/4.5/nunit.mocks.dll -r:${libdir}/mono/4.5/nunit.util.dll -r:${libdir}/mono/4.5/nunit-console-runner.dll 
diff --git a/mono-git/patches/patch-data_net_4_0_Browsers_Makefile.in b/mono-git/patches/patch-data_net_4_0_Browsers_Makefile.in
deleted file mode 100644
index b51c002..0000000
--- a/mono-git/patches/patch-data_net_4_0_Browsers_Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-data_net_4_0_Browsers_Makefile.in,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-Path fix
-
---- data/net_4_0/Browsers/Makefile.in.orig	2015-05-21 17:13:51.000000000 +0300
-+++ data/net_4_0/Browsers/Makefile.in	2015-05-21 17:14:18.000000000 +0300
-@@ -355,7 +355,7 @@ target_vendor = @target_vendor@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--monodir = $(sysconfdir)/mono/4.0/Browsers
-+monodir = $(datadir)/examples/mono/4.0/Browsers
- EXTRA_DIST = ../../Browsers/Compat.browser
- mono_DATA = ../../Browsers/Compat.browser
- all: all-am
diff --git a/mono-git/patches/patch-data_net_4_5_Browsers_Makefile.in b/mono-git/patches/patch-data_net_4_5_Browsers_Makefile.in
deleted file mode 100644
index 1ea724a..0000000
--- a/mono-git/patches/patch-data_net_4_5_Browsers_Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-data_net_4_5_Browsers_Makefile.in,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-Path fix
-
---- data/net_4_5/Browsers/Makefile.in.orig	2015-05-21 17:12:06.000000000 +0300
-+++ data/net_4_5/Browsers/Makefile.in	2015-05-21 17:12:30.000000000 +0300
-@@ -355,7 +355,7 @@ target_vendor = @target_vendor@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--monodir = $(sysconfdir)/mono/4.5/Browsers
-+monodir = $(datadir)/examples/mono/4.5/Browsers
- EXTRA_DIST = ../../Browsers/Compat.browser
- mono_DATA = ../../Browsers/Compat.browser
- all: all-am
diff --git a/mono-git/patches/patch-data_net_4_5_Makefile.in b/mono-git/patches/patch-data_net_4_5_Makefile.in
deleted file mode 100644
index bb3535c..0000000
--- a/mono-git/patches/patch-data_net_4_5_Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-data_net_4_5_Makefile.in,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-Path fix
-
---- data/net_4_5/Makefile.in.orig	2015-05-21 15:22:23.000000000 +0300
-+++ data/net_4_5/Makefile.in	2015-05-21 15:23:00.000000000 +0300
-@@ -416,7 +416,7 @@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- SUBDIRS = Browsers
--monodir = $(sysconfdir)/mono/4.5
-+monodir = $(datadir)/examples/mono/4.5
- EXTRA_DIST = machine.config \
- 	      web.config \
- 	      DefaultWsdlHelpGenerator.aspx \
diff --git a/mono-git/patches/patch-db b/mono-git/patches/patch-db
deleted file mode 100644
index 0ba84b5..0000000
--- a/mono-git/patches/patch-db
+++ /dev/null
@@ -1,37 +0,0 @@
-$NetBSD: patch-db,v 1.10 2015/05/21 14:38:08 kefren Exp $
-
---- mono/utils/mono-proclib.c.orig	2015-04-30 13:28:36.000000000 +0300
-+++ mono/utils/mono-proclib.c	2015-05-11 15:45:04.000000000 +0300
-@@ -19,24 +19,29 @@
- #include <process.h>
- #endif
- 
--#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
-+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
- #include <sys/errno.h>
- #include <sys/param.h>
- #include <sys/types.h>
- #include <sys/sysctl.h>
-+#ifndef __DragonFly__
- #include <sys/proc.h>
-+#endif
- #if defined(__APPLE__)
- #include <mach/mach.h>
- #endif
- #ifdef HAVE_SYS_USER_H
- #include <sys/user.h>
- #endif
--#ifdef HAVE_STRUCT_KINFO_PROC_KP_PROC
-+#if defined(HAVE_STRUCT_KINFO_PROC_KP_PROC) && !defined(__NetBSD__)
- #    define kinfo_pid_member kp_proc.p_pid
- #    define kinfo_name_member kp_proc.p_comm
--#elif defined(__OpenBSD__)
-+#elif defined(__OpenBSD__) || defined(__NetBSD__)
- #    define kinfo_pid_member p_pid
- #    define kinfo_name_member p_comm
-+#elif defined(__DragonFly__)
-+#    define kinfo_pid_member kp_pid
-+#    define kinfo_name_member kp_comm
- #else
- #define kinfo_pid_member ki_pid
- #define kinfo_name_member ki_comm
diff --git a/mono-git/patches/patch-dc b/mono-git/patches/patch-dc
deleted file mode 100644
index 1a68aaf..0000000
--- a/mono-git/patches/patch-dc
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-dc,v 1.7 2014/11/30 08:40:51 spz Exp $
---- mono/mini/mini-x86.h.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/mini/mini-x86.h
-@@ -48,7 +48,7 @@ struct sigcontext {
- #endif /* __HAIKU__ */
- 
- #if defined( __linux__) || defined(__sun) || defined(__APPLE__) || defined(__NetBSD__) || \
--       defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
-+       defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__)
- #define MONO_ARCH_USE_SIGACTION
- #endif
- 
diff --git a/mono-git/patches/patch-de b/mono-git/patches/patch-de
deleted file mode 100644
index 53af8da..0000000
--- a/mono-git/patches/patch-de
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-de,v 1.5 2014/11/30 08:40:51 spz Exp $
---- ikvm-native/jni.c.orig	2014-09-22 13:23:05.000000000 +0000
-+++ ikvm-native/jni.c
-@@ -28,7 +28,7 @@
- #include <malloc.h>
- #define ALLOCA _alloca
- #else
--#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
- #include <stdlib.h>
- #else
- #include <alloca.h>
diff --git a/mono-git/patches/patch-df b/mono-git/patches/patch-df
deleted file mode 100644
index 5201698..0000000
--- a/mono-git/patches/patch-df
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-df,v 1.5 2014/11/30 08:40:51 spz Exp $
---- support/mph.h.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/mph.h
-@@ -36,7 +36,7 @@
- #include <stdint.h>             /* for SIZE_MAX */
- #endif
- 
--#if __APPLE__ || __BSD__ || __FreeBSD__ || __OpenBSD__
-+#if __APPLE__ || __BSD__ || __FreeBSD__ || __OpenBSD__ || __NetBSD__ || __DragonFly__
- #define MPH_ON_BSD
- #endif
- 
diff --git a/mono-git/patches/patch-dh b/mono-git/patches/patch-dh
deleted file mode 100644
index b9d2dad..0000000
--- a/mono-git/patches/patch-dh
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-dh,v 1.5 2014/11/30 08:40:51 spz Exp $
---- mono/mini/mini-x86.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/mini/mini-x86.c
-@@ -242,7 +242,7 @@ static const guint32 *callconv_param_reg
- 	}
- }
- 
--#if defined(TARGET_WIN32) || defined(__APPLE__) || defined(__FreeBSD__)
-+#if defined(TARGET_WIN32) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
- #define SMALL_STRUCTS_IN_REGS
- static X86_Reg_No return_regs [] = { X86_EAX, X86_EDX };
- #endif
diff --git a/mono-git/patches/patch-di b/mono-git/patches/patch-di
deleted file mode 100644
index dec8138..0000000
--- a/mono-git/patches/patch-di
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-di,v 1.6 2014/11/30 08:40:51 spz Exp $
---- mono/tests/libtest.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/tests/libtest.c
-@@ -3463,7 +3463,7 @@ mono_test_marshal_ccw_itest (MonoComObje
-  * mono_method_get_unmanaged_thunk tests
-  */
- 
--#if defined(__GNUC__) && ((defined(__i386__) && (defined(__linux__) || defined (__APPLE__)) || defined (__FreeBSD__) || defined(__OpenBSD__)) || (defined(__ppc__) && defined(__APPLE__)))
-+#if defined(__GNUC__) && ((defined(__i386__) && (defined(__linux__) || defined (__APPLE__)) || defined (__NetBSD__) || defined (__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)) || (defined(__ppc__) && defined(__APPLE__)))
- #define ALIGN(size) __attribute__ ((aligned(size)))
- #else
- #define ALIGN(size)
diff --git a/mono-git/patches/patch-dj b/mono-git/patches/patch-dj
deleted file mode 100644
index ebab757..0000000
--- a/mono-git/patches/patch-dj
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-dj,v 1.3 2014/11/30 08:40:51 spz Exp $
-
-Although DragonFly has a POSIX.1e implementation, it's too old at the
-moment to be usable here.
-
---- support/sys-xattr.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/sys-xattr.c
-@@ -11,7 +11,7 @@
- 
- #include <config.h>
- 
--#if defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || defined(HAVE_SYS_EXTATTR_H)
-+#if defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || (defined(HAVE_SYS_EXTATTR_H) && !defined(__DragonFly__))
- 
- #include <sys/types.h>
- 
diff --git a/mono-git/patches/patch-dk b/mono-git/patches/patch-dk
deleted file mode 100644
index 11c17c7..0000000
--- a/mono-git/patches/patch-dk
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-dk,v 1.4 2014/11/30 08:40:51 spz Exp $
-
---- libgc/include/gc.h.orig	2014-09-22 13:23:05.000000000 +0000
-+++ libgc/include/gc.h
-@@ -526,6 +526,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_of
- /* This may also be desirable if it is possible but expensive to	*/
- /* retrieve the call chain.						*/
- #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \
-+     || defined(__DragonFly__) \
-      || defined(__FreeBSD__)) & !defined(GC_CAN_SAVE_CALL_STACKS)
- # define GC_ADD_CALLER
- # if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) 
diff --git a/mono-git/patches/patch-dl b/mono-git/patches/patch-dl
deleted file mode 100644
index 64f0b10..0000000
--- a/mono-git/patches/patch-dl
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-dl,v 1.5 2014/11/30 08:40:51 spz Exp $
-
-SunOS needs unistd.h for sysconf().
-
---- mono/utils/dlmalloc.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/utils/dlmalloc.c
-@@ -1208,11 +1208,14 @@ int mspace_mallopt(int, int);
- #ifndef LACKS_UNISTD_H
- #include <unistd.h>     /* for sbrk */
- #else /* LACKS_UNISTD_H */
--#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) || !defined(__DragonFly__)
- extern void*     sbrk(ptrdiff_t);
- #endif /* FreeBSD etc */
- #endif /* LACKS_UNISTD_H */
- #endif /* HAVE_MMAP */
-+#ifdef __sun
-+#include <unistd.h> /* for sysconf */
-+#endif
- 
- #ifndef WIN32
- #ifndef malloc_getpagesize
-@@ -1375,7 +1378,11 @@ static int win32munmap(void* ptr, size_t
- #endif /* HAVE_MMAP */
- 
- #if HAVE_MMAP && HAVE_MREMAP
-+#ifdef linux
- #define CALL_MREMAP(addr, osz, nsz, mv) mremap((addr), (osz), (nsz), (mv))
-+#else
-+#define CALL_MREMAP(addr, osz, nsz, mv) mremap((addr), (osz), (addr), (nsz), (mv))
-+#endif
- #else  /* HAVE_MMAP && HAVE_MREMAP */
- #define CALL_MREMAP(addr, osz, nsz, mv) MFAIL
- #endif /* HAVE_MMAP && HAVE_MREMAP */
diff --git a/mono-git/patches/patch-do b/mono-git/patches/patch-do
deleted file mode 100644
index 0e55003..0000000
--- a/mono-git/patches/patch-do
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-do,v 1.3 2014/11/30 08:40:51 spz Exp $
-
---- libgc/headers.c.orig	2014-09-22 13:23:05.000000000 +0000
-+++ libgc/headers.c
-@@ -139,6 +139,8 @@ void GC_init_headers()
-     register unsigned i;
-     
-     GC_all_nils = (bottom_index *)GC_scratch_alloc((word)sizeof(bottom_index));
-+    if (GC_all_nils == NULL)
-+	ABORT("out of memory");
-     BZERO(GC_all_nils, sizeof(bottom_index));
-     for (i = 0; i < TOP_SZ; i++) {
-         GC_top_index[i] = GC_all_nils;
diff --git a/mono-git/patches/patch-libgc_misc.c b/mono-git/patches/patch-libgc_misc.c
deleted file mode 100644
index 5d69eca..0000000
--- a/mono-git/patches/patch-libgc_misc.c
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-libgc_misc.c,v 1.1 2015/06/15 09:27:29 joerg Exp $
-
---- libgc/misc.c.orig	2015-06-13 23:08:46.000000000 +0000
-+++ libgc/misc.c
-@@ -14,10 +14,10 @@
-  */
- /* Boehm, July 31, 1995 5:02 pm PDT */
- 
--
- #include <stdio.h>
- #include <limits.h>
- #ifndef _WIN32_WCE
-+#include <sys/resource.h>
- #include <signal.h>
- #endif
- 
-@@ -766,6 +766,19 @@ void GC_init_inner()
- 	  initial_heap_sz = divHBLKSZ(initial_heap_sz);
- 	}
-     }
-+#ifdef RLIMIT_AS
-+    {
-+        /*
-+         * If there is a VA limit for the process,
-+         * keep the heap under 75% if that limit.
-+         */
-+	struct rlimit lim;
-+	if (!getrlimit(RLIMIT_AS, &lim)) {
-+	  if (lim.rlim_cur != RLIM_INFINITY && lim.rlim_cur == (word)lim.rlim_cur)
-+	    GC_set_max_heap_size(lim.rlim_cur / 2 + lim.rlim_cur / 4);
-+	}
-+    }
-+#endif
-     {
- 	char * sz_str = GETENV("GC_MAXIMUM_HEAP_SIZE");
- 	if (sz_str != NULL) {
diff --git a/mono-git/patches/patch-man_mprof-report.1 b/mono-git/patches/patch-man_mprof-report.1
deleted file mode 100644
index 76a3e9e..0000000
--- a/mono-git/patches/patch-man_mprof-report.1
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-man_mprof-report.1,v 1.3 2014/11/30 08:40:51 spz Exp $
-
-Fix mandoc -Tlint warnings.
-
---- man/mprof-report.1.orig	2014-09-22 13:23:05.000000000 +0000
-+++ man/mprof-report.1
-@@ -1,4 +1,4 @@
--.TH mprof-report 1 "" 
-+.TH MPROF-REPORT 1 ""
- .SH The Mono log profiler
- .PP
- The Mono \f[I]log\f[] profiler can be used to collect a lot of
diff --git a/mono-git/patches/patch-mono_dis_Makefile.in b/mono-git/patches/patch-mono_dis_Makefile.in
deleted file mode 100644
index 144a6f0..0000000
--- a/mono-git/patches/patch-mono_dis_Makefile.in
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-mono_dis_Makefile.in,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
---- mono/dis/Makefile.in.orig	2015-05-11 16:34:26.000000000 +0300
-+++ mono/dis/Makefile.in	2015-05-11 16:34:57.000000000 +0300
-@@ -428,7 +428,7 @@ top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
--@SUPPORT_SGEN_FALSE@metadata_lib = $(top_builddir)/mono/metadata/libmonoruntime-static.a
-+@SUPPORT_SGEN_FALSE@metadata_lib = $(top_builddir)/mono/metadata/libmonoruntime-static.la
- @SUPPORT_SGEN_TRUE@metadata_lib = $(top_builddir)/mono/metadata/libmonoruntimesgen-static.la
- @SUPPORT_SGEN_FALSE@gc_lib = $(LIBGC_STATIC_LIBS)
- runtime_lib = \
diff --git a/mono-git/patches/patch-mono_metadata_icall.c b/mono-git/patches/patch-mono_metadata_icall.c
deleted file mode 100644
index 4730472..0000000
--- a/mono-git/patches/patch-mono_metadata_icall.c
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-mono_metadata_icall.c,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-strtod hack until someone has time to debug mono_strtod
-
---- mono/metadata/icall.c.orig	2015-05-21 14:20:36.000000000 +0300
-+++ mono/metadata/icall.c	2015-05-21 14:22:00.000000000 +0300
-@@ -127,10 +127,15 @@ mono_double_ParseImpl (char *ptr, double
- 	*result = 0.0;
- 
- 	if (*ptr){
-+#if defined(__NetBSD__)
-+		/* XXX WIP: mono_strtod spins 100% CPU on NetBSD */
-+		*result = strtod(ptr, &endptr);
-+#else
- 		/* mono_strtod () is not thread-safe */
- 		mono_mutex_lock (&mono_strtod_mutex);
- 		*result = mono_strtod (ptr, &endptr);
- 		mono_mutex_unlock (&mono_strtod_mutex);
-+#endif
- 	}
- 
- 	if (!*ptr || (endptr && *endptr))
diff --git a/mono-git/patches/patch-mono_metadata_mono-perfcounters.c b/mono-git/patches/patch-mono_metadata_mono-perfcounters.c
deleted file mode 100644
index ee7c6a1..0000000
--- a/mono-git/patches/patch-mono_metadata_mono-perfcounters.c
+++ /dev/null
@@ -1,52 +0,0 @@
-$NetBSD: patch-mono_metadata_mono-perfcounters.c,v 1.2 2015/05/22 06:55:40 kefren Exp $
-
-Correct mibs initialization for NetBSD
-
---- mono/metadata/mono-perfcounters.c.orig	2015-04-26 19:28:39.000000000 +0300
-+++ mono/metadata/mono-perfcounters.c	2015-05-14 19:07:18.000000000 +0300
-@@ -33,6 +33,9 @@
- #if defined (__NetBSD__) || defined (__APPLE__)
- #include <sys/sysctl.h>
- #endif
-+#if defined(__NetBSD__)
-+#include <sys/vmmeter.h>
-+#endif
- #include "metadata/mono-perfcounters.h"
- #include "metadata/appdomain.h"
- #include "metadata/object-internals.h"
-@@ -473,11 +476,7 @@ mono_determine_physical_ram_available_si
- #elif defined (__NetBSD__)
- 	struct vmtotal vm_total;
- 	guint64 page_size;
--	int mib [2];
--	size_t len;
--
--
--	mib = {
-+	int mib [2] = {
- 		CTL_VM,
- #if defined (VM_METER)
- 		VM_METER
-@@ -485,17 +484,15 @@ mono_determine_physical_ram_available_si
- 		VM_TOTAL
- #endif
- 	};
--	len = sizeof (vm_total);
-+	size_t len = sizeof (vm_total);
- 	sysctl (mib, 2, &vm_total, &len, NULL, 0);
- 
--	mib = {
--		CTL_HW,
--		HW_PAGESIZE
--	};
-+	mib[0] = CTL_HW;
-+	mib[1] = HW_PAGESIZE;
- 	len = sizeof (page_size);
--	sysctl (mib, 2, &page_size, &len, NULL, 0
-+	sysctl (mib, 2, &page_size, &len, NULL, 0);
- 
--	return ((guint64) value.t_free * page_size) / 1024;
-+	return ((guint64) vm_total.t_free * page_size) / 1024;
- #elif defined (__APPLE__)
- 	mach_msg_type_number_t count = HOST_VM_INFO_COUNT;
- 	vm_statistics_data_t vmstat;
diff --git a/mono-git/patches/patch-mono_metadata_mono-route.c b/mono-git/patches/patch-mono_metadata_mono-route.c
deleted file mode 100644
index bc6891b..0000000
--- a/mono-git/patches/patch-mono_metadata_mono-route.c
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-mono_metadata_mono-route.c,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-Fix includes
-
---- mono/metadata/mono-route.c.orig	2015-05-11 16:20:29.000000000 +0300
-+++ mono/metadata/mono-route.c	2015-05-11 16:20:39.000000000 +0300
-@@ -8,6 +8,7 @@
- 
- #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
- 
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <net/if.h>
- #include <net/if_dl.h>
diff --git a/mono-git/patches/patch-mono_mini_mini-arm.c b/mono-git/patches/patch-mono_mini_mini-arm.c
deleted file mode 100644
index acc8503..0000000
--- a/mono-git/patches/patch-mono_mini_mini-arm.c
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-mono_mini_mini-arm.c,v 1.5 2015/05/21 14:38:08 kefren Exp $
-
---- mono/mini/mini-arm.c.orig	2015-04-30 13:27:46.000000000 +0300
-+++ mono/mini/mini-arm.c	2015-05-11 15:55:15.000000000 +0300
-@@ -56,6 +56,11 @@
- #define IS_VFP (TRUE)
- #endif
- 
-+#ifdef __NetBSD__
-+#include <machine/sysarch.h>
-+#include <sys/sysctl.h>
-+#endif
-+
- #if defined(__ARM_EABI__) && defined(__linux__) && !defined(PLATFORM_ANDROID) && !defined(__native_client__)
- #define HAVE_AEABI_READ_TP 1
- #endif
-@@ -922,6 +927,10 @@ void
- mono_arch_init (void)
- {
- 	const char *cpu_arch;
-+#if defined(__NetBSD__)
-+	char *s = NULL;
-+	size_t len;
-+#endif
- 
- 	mono_mutex_init_recursive (&mini_arch_mutex);
- #ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED
-@@ -986,6 +995,32 @@ mono_arch_init (void)
- 	   have a way to properly detect CPU features on it. */
- 	thumb_supported = TRUE;
- 	iphone_abi = TRUE;
-+#elif defined(__NetBSD__)
-+	if (sysctlbyname("machdep.cpu_arch", NULL, &len, NULL, 0) < 0) {
-+		/* sysctlbyname error */
-+		return;
-+	}
-+	s = malloc(len);
-+	if (sysctlbyname("machdep.cpu_arch", s, &len, NULL, 0) < 0) {
-+		/* sysctlbyname error */
-+		free(s);
-+		return;
-+	}
-+
-+	switch (s[0]) {
-+	case '7':
-+		v7_supported = TRUE;
-+		/* FALLTHROUGH */
-+	case '6':
-+		v6_supported = TRUE;
-+		/* FALLTHROUGH */
-+	case '5':
-+		v5_supported = TRUE;
-+		break;
-+	}
-+
-+	free(s);
-+	
- #else
- 	thumb_supported = mono_hwcap_arm_has_thumb;
- 	thumb2_supported = mono_hwcap_arm_has_thumb2;
-@@ -1196,6 +1231,11 @@ mono_arch_flush_icache (guint8 *code, gi
- #ifdef MONO_CROSS_COMPILE
- #elif __APPLE__
- 	sys_icache_invalidate (code, size);
-+#elif defined(__NetBSD__)
-+	struct arm_sync_icache_args args;
-+	args.addr = (uintptr_t)code;
-+	args.len = (size_t)size;
-+	sysarch(ARM_SYNC_ICACHE, &args);
- #elif __GNUC_PREREQ(4, 3)
-     __builtin___clear_cache (code, code + size);
- #elif __GNUC_PREREQ(4, 1)
diff --git a/mono-git/patches/patch-mono_profiler_proflog.c b/mono-git/patches/patch-mono_profiler_proflog.c
deleted file mode 100644
index 4386900..0000000
--- a/mono-git/patches/patch-mono_profiler_proflog.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-mono_profiler_proflog.c,v 1.2 2014/11/30 08:40:51 spz Exp $
-
-SunOS libelf does not support largefile.
-
---- mono/profiler/proflog.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/profiler/proflog.c
-@@ -38,6 +38,10 @@
- #ifdef HAVE_EXECINFO_H
- #include <execinfo.h>
- #endif
-+#ifdef __sun
-+#undef _FILE_OFFSET_BITS
-+#define _FILE_OFFSET_BITS 32
-+#endif
- #ifdef HAVE_LINK_H
- #include <link.h>
- #endif
diff --git a/mono-git/patches/patch-mono_unit-tests_Makefile.in b/mono-git/patches/patch-mono_unit-tests_Makefile.in
deleted file mode 100644
index 2b13c53..0000000
--- a/mono-git/patches/patch-mono_unit-tests_Makefile.in
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-mono_unit-tests_Makefile.in,v 1.2 2014/11/30 08:40:51 spz Exp $
-
---- mono/unit-tests/Makefile.in.orig	2014-10-04 09:29:01.000000000 +0000
-+++ mono/unit-tests/Makefile.in
-@@ -79,14 +79,8 @@ POST_UNINSTALL = :
- build_triplet = @build@
- host_triplet = @host@
- target_triplet = @target@
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@noinst_PROGRAMS = test-sgen-qsort$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-gc-memfuncs$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-mono-linked-list-set$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-conc-hashtable$(EXEEXT)
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@TESTS = test-sgen-qsort$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-gc-memfuncs$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-mono-linked-list-set$(EXEEXT) \
--@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@	test-conc-hashtable$(EXEEXT)
-+@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@noinst_PROGRAMS =
-+@CROSS_COMPILE_FALSE@@HOST_WIN32_FALSE@@PLATFORM_GNU_FALSE@@SUPPORT_BOEHM_TRUE@TESTS =
- subdir = mono/unit-tests
- DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
- 	$(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp \
diff --git a/mono-git/patches/patch-mono_utils_Makefile.in b/mono-git/patches/patch-mono_utils_Makefile.in
deleted file mode 100644
index ab75c1f..0000000
--- a/mono-git/patches/patch-mono_utils_Makefile.in
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-mono_utils_Makefile.in,v 1.3 2015/05/26 12:19:46 jperkin Exp $
-
-Add NetBSD and Solaris threads
-
---- mono/utils/Makefile.in.orig	2015-04-26 16:29:35.000000000 +0000
-+++ mono/utils/Makefile.in
-@@ -146,6 +146,7 @@ am__libmonoutils_la_SOURCES_DIST = mono-
- 	mono-threads-mach.c mono-threads-mach-helper.c \
- 	mono-threads-windows.c mono-threads-linux.c \
- 	mono-threads-freebsd.c mono-threads-openbsd.c \
-+	mono-threads-netbsd.c mono-threads-dragonfly.c mono-threads-solaris.c \
- 	mono-threads-android.c mono-threads.h mono-tls.h mono-tls.c \
- 	linux_magic.h mono-memory-model.h atomic.h atomic.c \
- 	mono-hwcap.h mono-hwcap.c bsearch.h bsearch.c \
-@@ -174,7 +175,7 @@ am__objects_1 = mono-md5.lo mono-sha1.lo
- 	mono-linked-list-set.lo mono-threads.lo mono-threads-posix.lo \
- 	mono-threads-mach.lo mono-threads-mach-helper.lo \
- 	mono-threads-windows.lo mono-threads-linux.lo \
--	mono-threads-freebsd.lo mono-threads-openbsd.lo \
-+	mono-threads-freebsd.lo mono-threads-openbsd.lo mono-threads-netbsd.lo mono-threads-solaris.lo \
- 	mono-threads-android.lo mono-tls.lo atomic.lo mono-hwcap.lo \
- 	bsearch.lo mono-conc-hashtable.lo sha1.lo json.lo \
- 	networking.lo networking-posix.lo networking-fallback.lo \
-@@ -600,6 +601,9 @@ monoutils_sources = \
- 	mono-threads-linux.c	\
- 	mono-threads-freebsd.c	\
- 	mono-threads-openbsd.c	\
-+	mono-threads-solaris.c	\
-+	mono-threads-netbsd.c	\
-+	mono-threads-dragonfly.c	\
- 	mono-threads-android.c	\
- 	mono-threads.h	\
- 	mono-tls.h	\
-@@ -753,6 +757,9 @@ distclean-compile:
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-mach-helper.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-mach.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-openbsd.Plo@am__quote@
-+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-solaris.Plo@am__quote@
-+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-netbsd.Plo@am__quote@
-+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-dragonfly.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-posix.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads-windows.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mono-threads.Plo@am__quote@
diff --git a/mono-git/patches/patch-mono_utils_mono-compiler.h b/mono-git/patches/patch-mono_utils_mono-compiler.h
deleted file mode 100644
index 1b18e1e..0000000
--- a/mono-git/patches/patch-mono_utils_mono-compiler.h
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-mono_utils_mono-compiler.h,v 1.3 2014/11/30 08:40:51 spz Exp $
-
-Make sure that TLS variables are actually emitted, since the compiler
-doesn't see all references.
-
---- mono/utils/mono-compiler.h.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/utils/mono-compiler.h
-@@ -36,7 +36,7 @@
- #if defined(PIC)
- 
- #ifdef PIC_INITIAL_EXEC
--#define MONO_TLS_FAST __attribute__((tls_model("initial-exec")))
-+#define MONO_TLS_FAST __attribute__((tls_model("initial-exec"), used))
- #else
- #if defined (__powerpc__)
- /* local dynamic requires a call to __tls_get_addr to look up the
-@@ -48,18 +48,18 @@
-    For now we will disable this. */
- #define MONO_TLS_FAST
- #else
--#define MONO_TLS_FAST __attribute__((tls_model("local-dynamic")))
-+#define MONO_TLS_FAST __attribute__((tls_model("local-dynamic"), used))
- #endif
- #endif
- 
- #else
- 
--#define MONO_TLS_FAST __attribute__((tls_model("local-exec")))
-+#define MONO_TLS_FAST __attribute__((tls_model("local-exec"), used))
- 
- #endif
- 
- #else
--#define MONO_TLS_FAST 
-+#define MONO_TLS_FAST
- #endif
- 
- #if defined(__GNUC__) && defined(__i386__)
diff --git a/mono-git/patches/patch-mono_utils_mono-mmap.c b/mono-git/patches/patch-mono_utils_mono-mmap.c
deleted file mode 100644
index 40096a6..0000000
--- a/mono-git/patches/patch-mono_utils_mono-mmap.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-mono_utils_mono-mmap.c,v 1.2 2014/11/30 08:40:51 spz Exp $
-
-Use posix_madvise on SunOS.
-
---- mono/utils/mono-mmap.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ mono/utils/mono-mmap.c
-@@ -431,7 +431,7 @@ mono_mprotect (void *addr, size_t length
- 			memset (addr, 0, length);
- #else
- 		memset (addr, 0, length);
--#ifdef HAVE_MADVISE
-+#if defined(HAVE_MADVISE) && !defined(__sun)
- 		madvise (addr, length, MADV_DONTNEED);
- 		madvise (addr, length, MADV_FREE);
- #else
diff --git a/mono-git/patches/patch-mono_utils_mono-semaphore.c b/mono-git/patches/patch-mono_utils_mono-semaphore.c
deleted file mode 100644
index 77d5427..0000000
--- a/mono-git/patches/patch-mono_utils_mono-semaphore.c
+++ /dev/null
@@ -1,55 +0,0 @@
-$NetBSD: patch-mono_utils_mono-semaphore.c,v 1.1 2015/05/21 14:38:08 kefren Exp $
-
-A grotty implementation of sem_timedwait for NetBSD
-
---- mono/utils/mono-semaphore.c.orig	2015-04-24 04:26:18.000000000 +0300
-+++ mono/utils/mono-semaphore.c	2015-05-21 16:19:49.000000000 +0300
-@@ -25,6 +25,9 @@
- #  elif defined(__native_client__) && defined(USE_NEWLIB)
- #    define TIMESPEC struct timespec
- #    define WAIT_BLOCK(a, b) sem_trywait(a)
-+#  elif defined(__NetBSD__)
-+#    define TIMESPEC struct timespec
-+#    define WAIT_BLOCK(a, b) netbsd_sem_timedwait(a, b)
- #  else
- #    define TIMESPEC struct timespec
- #    define WAIT_BLOCK(a,b) sem_timedwait (a, b)
-@@ -34,6 +37,38 @@
- #define NSEC_PER_SEC 1000000000
- #endif
- 
-+#if defined(__NetBSD__)
-+
-+/* XXX: Actually I think NetBSD-current has sem_timedwait */
-+int netbsd_sem_timedwait(sem_t *sem, TIMESPEC *tv);
-+
-+int
-+netbsd_sem_timedwait(sem_t *sem, TIMESPEC *tv)
-+{
-+	struct timeval tval;
-+
-+	TIMESPEC_TO_TIMEVAL(&tval, tv);
-+
-+	while(sem_trywait(sem) == -1) {
-+		struct timeval t;
-+
-+		if (errno == EINVAL)
-+			return -1;
-+
-+		usleep(1000);
-+		gettimeofday(&t, NULL);
-+		if (t.tv_sec > tval.tv_sec ||
-+		    (t.tv_sec == tval.tv_sec && t.tv_usec > tval.tv_usec)) {
-+			errno = ETIMEDOUT;
-+			return -1;
-+		}
-+	}
-+
-+	return 0;
-+}
-+
-+#endif
-+
- int
- mono_sem_timedwait (MonoSemType *sem, guint32 timeout_ms, gboolean alertable)
- {
diff --git a/mono-git/patches/patch-mono_utils_mono-threads-dragonfly.c b/mono-git/patches/patch-mono_utils_mono-threads-dragonfly.c
deleted file mode 100644
index 1009801..0000000
--- a/mono-git/patches/patch-mono_utils_mono-threads-dragonfly.c
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD: patch-mono_utils_mono-threads-dragonfly.c,v 1.2 2014/11/30 08:50:26 spz Exp $
-
---- mono/utils/mono-threads-dragonfly.c.orig	2014-11-29 21:20:20.000000000 +0000
-+++ mono/utils/mono-threads-dragonfly.c
-@@ -0,0 +1,24 @@
-+#include <config.h>
-+
-+#if defined(__DragonFly__)
-+
-+#include <mono/utils/mono-threads.h>
-+#include <pthread.h>
-+#include <pthread_np.h>
-+
-+void
-+mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
-+{
-+	pthread_attr_t attr;
-+
-+	*staddr = NULL;
-+	*stsize = (size_t)-1;
-+
-+	pthread_attr_init (&attr);
-+	pthread_attr_get_np (pthread_self (), &attr);
-+
-+	pthread_attr_getstack (&attr, (void**)staddr, stsize);
-+	pthread_attr_destroy (&attr);
-+}
-+
-+#endif
diff --git a/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c b/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c
deleted file mode 100644
index 991fd4c..0000000
--- a/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-mono_utils_mono-threads-netbsd.c,v 1.1 2014/11/30 08:40:51 spz Exp $
-
---- mono/utils/mono-threads-netbsd.c.orig	2014-11-29 21:20:20.000000000 +0000
-+++ mono/utils/mono-threads-netbsd.c
-@@ -0,0 +1,23 @@
-+#include <config.h>
-+
-+#if defined(__NetBSD__)
-+
-+#include <mono/utils/mono-threads.h>
-+#include <pthread.h>
-+
-+void
-+mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
-+{
-+	pthread_attr_t attr;
-+
-+	*staddr = NULL;
-+	*stsize = (size_t)-1;
-+
-+	pthread_attr_init (&attr);
-+	pthread_attr_get_np (pthread_self (), &attr);
-+
-+	pthread_attr_getstack (&attr, (void**)staddr, stsize);
-+	pthread_attr_destroy (&attr);
-+}
-+
-+#endif
diff --git a/mono-git/patches/patch-mono_utils_mono-threads-posix.c b/mono-git/patches/patch-mono_utils_mono-threads-posix.c
deleted file mode 100644
index 321fb81..0000000
--- a/mono-git/patches/patch-mono_utils_mono-threads-posix.c
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-mono_utils_mono-threads-posix.c,v 1.2 2014/11/30 08:40:51 spz Exp $
-
---- mono/utils/mono-threads-posix.c.orig	2014-10-04 09:27:43.000000000 +0000
-+++ mono/utils/mono-threads-posix.c
-@@ -420,13 +420,21 @@ mono_threads_core_set_name (MonoNativeTh
- {
- #ifdef HAVE_PTHREAD_SETNAME_NP
- 	if (!name) {
-+#ifdef linux
- 		pthread_setname_np (tid, "");
-+#else
-+		pthread_setname_np (tid, "%s", "");
-+#endif
- 	} else {
- 		char n [16];
- 
- 		strncpy (n, name, 16);
- 		n [15] = '\0';
-+#ifdef linux
- 		pthread_setname_np (tid, n);
-+#else
-+		pthread_setname_np (tid, "%s", n);
-+#endif
- 	}
- #endif
- }
diff --git a/mono-git/patches/patch-mono_utils_mono-threads-solaris.c b/mono-git/patches/patch-mono_utils_mono-threads-solaris.c
deleted file mode 100644
index f126734..0000000
--- a/mono-git/patches/patch-mono_utils_mono-threads-solaris.c
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-mono_utils_mono-threads-solaris.c,v 1.1 2014/11/30 08:40:51 spz Exp $
-
---- mono/utils/mono-threads-solaris.c.orig	2014-11-29 21:53:35.000000000 +0000
-+++ mono/utils/mono-threads-solaris.c
-@@ -0,0 +1,19 @@
-+#include <config.h>
-+
-+#if defined(PLATFORM_SOLARIS)
-+
-+#include <mono/utils/mono-threads.h>
-+#include <pthread.h>
-+
-+void
-+mono_threads_core_get_stack_bounds (guint8 **staddr, size_t *stsize)
-+{
-+	pthread_attr_t attr;
-+	pthread_attr_init (&attr);
-+	pthread_attr_getstacksize (&attr, &stsize);
-+	pthread_attr_destroy (&attr);
-+	*staddr = NULL;
-+	return;
-+}
-+
-+#endif
diff --git a/mono-git/patches/patch-po_Makefile.in b/mono-git/patches/patch-po_Makefile.in
deleted file mode 100644
index 08248d0..0000000
--- a/mono-git/patches/patch-po_Makefile.in
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-po_Makefile.in,v 1.2 2014/11/30 08:40:51 spz Exp $
-
---- po/Makefile.in.orig	2014-10-04 09:29:01.000000000 +0000
-+++ po/Makefile.in
-@@ -381,7 +381,7 @@ target_vendor = @target_vendor@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = mcs
-+SUBDIRS = 
- all: all-recursive
- 
- .SUFFIXES:
diff --git a/mono-git/patches/patch-support_signal.c b/mono-git/patches/patch-support_signal.c
deleted file mode 100644
index af3b945..0000000
--- a/mono-git/patches/patch-support_signal.c
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-support_signal.c,v 1.2 2014/11/30 08:40:51 spz Exp $
-
-Add necessary includes on SunOS.
-
---- support/signal.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/signal.c
-@@ -31,6 +31,10 @@
- #include <mono/metadata/appdomain.h>
- #endif
- 
-+#ifdef __sun
-+#include <siginfo.h>
-+#endif
-+
- G_BEGIN_DECLS
- 
- typedef void (*mph_sighandler_t)(int);
diff --git a/mono-git/patches/patch-support_time.c b/mono-git/patches/patch-support_time.c
deleted file mode 100644
index a4a2bf0..0000000
--- a/mono-git/patches/patch-support_time.c
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-support_time.c,v 1.2 2014/11/30 08:40:51 spz Exp $
-
-Add necessary includes on SunOS.
-
---- support/time.c.orig	2014-09-22 13:23:09.000000000 +0000
-+++ support/time.c
-@@ -10,6 +10,9 @@
- #define _SVID_SOURCE
- #include <time.h>
- #include <errno.h>
-+#ifdef __sun
-+#include <unistd.h>
-+#endif
- 
- #include "map.h"
- #include "mph.h"


Home | Main Index | Thread Index | Old Index