pkgsrc-WIP-changes archive

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

mono-git: Add hack patches to push build forward



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Apr 18 01:56:19 2016 +0200
Changeset:	a0c4bafef9ca563b4fd2a65e4cb9c104e1975b9d

Modified Files:
	mono-git/distinfo
Added Files:
	mono-git/patches/patch-mono_io-layer_io.c
	mono-git/patches/patch-mono_metadata_mono-perfcounters.c
	mono-git/patches/patch-mono_utils_Makefile.am
	mono-git/patches/patch-mono_utils_mono-threads-netbsd.c

Log Message:
mono-git: Add hack patches to push build forward

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

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

diffstat:
 mono-git/distinfo                                  |  4 ++
 mono-git/patches/patch-mono_io-layer_io.c          | 13 ++++++
 .../patch-mono_metadata_mono-perfcounters.c        | 46 ++++++++++++++++++++++
 mono-git/patches/patch-mono_utils_Makefile.am      | 12 ++++++
 .../patches/patch-mono_utils_mono-threads-netbsd.c | 26 ++++++++++++
 5 files changed, 101 insertions(+)

diffs:
diff --git a/mono-git/distinfo b/mono-git/distinfo
index c20bfc2..6253c95 100644
--- a/mono-git/distinfo
+++ b/mono-git/distinfo
@@ -4,8 +4,12 @@ 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-mono_io-layer_io.c) = 03b4b03abc2f6dbb5fed39f07b8a1bc23cca07b8
+SHA1 (patch-mono_metadata_mono-perfcounters.c) = 6b4b4019e09e529c2f6f8faa3936e3ac91ddfe17
+SHA1 (patch-mono_utils_Makefile.am) = b3bf378d1576c98262dce0a1b08bf45d013fa323
 SHA1 (patch-mono_utils_dlmalloc.c) = a1fcd65964e1e18418c97e1726058f1864a49de1
 SHA1 (patch-mono_utils_mono-proclib.c) = 30739ccde2a25f5fd8dcf0e7d581443b6e175ade
+SHA1 (patch-mono_utils_mono-threads-netbsd.c) = 5163241337144f4c00b5e5a8709e992c50419991
 SHA1 (patch-mono_utils_mono-threads-posix.c) = defe4aeede1ff8f3a2035b9a403fa3d5bad99147
 SHA1 (patch-support_map.c) = 39a26cca54503d465fe89042433b7bfdb52104ab
 SHA1 (patch-support_sys-mman.c) = 9d22f579a3f826faf5092b1c3ba0409bde419970
diff --git a/mono-git/patches/patch-mono_io-layer_io.c b/mono-git/patches/patch-mono_io-layer_io.c
new file mode 100644
index 0000000..32856f1
--- /dev/null
+++ b/mono-git/patches/patch-mono_io-layer_io.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- mono/io-layer/io.c.orig	2016-04-16 14:26:45.000000000 +0000
++++ mono/io-layer/io.c
+@@ -3422,7 +3422,7 @@ gboolean CreatePipe (gpointer *readpipe,
+ 	return(TRUE);
+ }
+ 
+-#ifdef HAVE_GETFSSTAT
++#ifdef HAVE_GETFSSTATx
+ /* Darwin has getfsstat */
+ gint32 GetLogicalDriveStrings (guint32 len, gunichar2 *buf)
+ {
diff --git a/mono-git/patches/patch-mono_metadata_mono-perfcounters.c b/mono-git/patches/patch-mono_metadata_mono-perfcounters.c
new file mode 100644
index 0000000..e358cce
--- /dev/null
+++ b/mono-git/patches/patch-mono_metadata_mono-perfcounters.c
@@ -0,0 +1,46 @@
+$NetBSD$
+
+--- mono/metadata/mono-perfcounters.c.orig	2016-04-16 14:26:45.000000000 +0000
++++ mono/metadata/mono-perfcounters.c
+@@ -34,6 +34,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"
+@@ -474,11 +477,10 @@ 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
+@@ -489,14 +491,12 @@ mono_determine_physical_ram_available_si
+ 	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 0; // ((guint64) value.t_free * page_size) / 1024;
+ #elif defined (__APPLE__)
+ 	mach_msg_type_number_t count = HOST_VM_INFO_COUNT;
+ 	mach_port_t host = mach_host_self();
diff --git a/mono-git/patches/patch-mono_utils_Makefile.am b/mono-git/patches/patch-mono_utils_Makefile.am
new file mode 100644
index 0000000..a0d4248
--- /dev/null
+++ b/mono-git/patches/patch-mono_utils_Makefile.am
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- mono/utils/Makefile.am.orig	2016-04-16 14:26:45.000000000 +0000
++++ mono/utils/Makefile.am
+@@ -109,6 +109,7 @@ monoutils_sources = \
+ 	mono-threads-windows.c	\
+ 	mono-threads-linux.c	\
+ 	mono-threads-freebsd.c	\
++	mono-threads-netbsd.c	\
+ 	mono-threads-openbsd.c	\
+ 	mono-threads-android.c	\
+ 	mono-threads.h	\
diff --git a/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c b/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c
new file mode 100644
index 0000000..5039038
--- /dev/null
+++ b/mono-git/patches/patch-mono_utils_mono-threads-netbsd.c
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- mono/utils/mono-threads-netbsd.c.orig	2016-04-17 23:53:58.824548513 +0000
++++ mono/utils/mono-threads-netbsd.c
+@@ -0,0 +1,21 @@
++#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);
++}


Home | Main Index | Thread Index | Old Index