svn commit: r423356 - in head/lang/mono: . files

Tom Judge tj at FreeBSD.org
Wed Oct 5 17:46:12 UTC 2016


Author: tj
Date: Wed Oct  5 17:46:10 2016
New Revision: 423356
URL: https://svnweb.freebsd.org/changeset/ports/423356

Log:
  Fix sysctl(3) call in mono_process_list()  where the MIB length argument was incorrectly passed to sysctl(3)
  
  PR:		174216
  Submitted by:	tj
  Approved by:	maintainer timeout

Added:
  head/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c   (contents, props changed)
Modified:
  head/lang/mono/Makefile
  head/lang/mono/files/patch-eglib_src_gfile-posix.c
  head/lang/mono/files/patch-mono_metadata_socket-io.c

Modified: head/lang/mono/Makefile
==============================================================================
--- head/lang/mono/Makefile	Wed Oct  5 17:34:01 2016	(r423355)
+++ head/lang/mono/Makefile	Wed Oct  5 17:46:10 2016	(r423356)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mono
 PORTVERSION=	4.4.2.11
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://download.mono-project.com/sources/${PORTNAME}/
 

Modified: head/lang/mono/files/patch-eglib_src_gfile-posix.c
==============================================================================
--- head/lang/mono/files/patch-eglib_src_gfile-posix.c	Wed Oct  5 17:34:01 2016	(r423355)
+++ head/lang/mono/files/patch-eglib_src_gfile-posix.c	Wed Oct  5 17:46:10 2016	(r423356)
@@ -1,4 +1,4 @@
---- eglib/src/gfile-posix.c.orig	2015-09-24 09:36:09 UTC
+--- eglib/src/gfile-posix.c.orig	2016-07-29 09:10:29 UTC
 +++ eglib/src/gfile-posix.c
 @@ -170,7 +170,7 @@ g_get_current_dir (void)
  	do {

Modified: head/lang/mono/files/patch-mono_metadata_socket-io.c
==============================================================================
--- head/lang/mono/files/patch-mono_metadata_socket-io.c	Wed Oct  5 17:34:01 2016	(r423355)
+++ head/lang/mono/files/patch-mono_metadata_socket-io.c	Wed Oct  5 17:46:10 2016	(r423356)
@@ -1,7 +1,7 @@
 Fix build on FreeBSD 8
 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198404#c6
 
---- mono/metadata/socket-io.c.orig	2015-11-12 09:00:29 UTC
+--- mono/metadata/socket-io.c.orig	2016-07-29 09:10:33 UTC
 +++ mono/metadata/socket-io.c
 @@ -26,6 +26,7 @@
  #ifdef HOST_WIN32

Added: head/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c	Wed Oct  5 17:46:10 2016	(r423356)
@@ -0,0 +1,19 @@
+--- mono/utils/patch-mono_utils_mono-proclib.c.orig	2016-10-05 17:28:38 UTC
++++ mono/utils/patch-mono_utils_mono-proclib.c
+@@ -0,0 +1,16 @@
++--- mono/utils/mono-proclib.c.orig	2016-07-29 09:10:33 UTC
+++++ mono/utils/mono-proclib.c
++@@ -107,11 +107,11 @@ mono_process_list (int *size)
++ 		mib [2] = KERN_PROC_ALL;
++ 		mib [3] = 0;
++ 
++-		res = sysctl (mib, 4, NULL, &data_len, NULL, 0);
+++		res = sysctl (mib, 3, NULL, &data_len, NULL, 0);
++ 		if (res)
++ 			return NULL;
++ 		processes = (struct kinfo_proc *) malloc (data_len);
++-		res = sysctl (mib, 4, processes, &data_len, NULL, 0);
+++		res = sysctl (mib, 3, processes, &data_len, NULL, 0);
++ 		if (res < 0) {
++ 			free (processes);
++ 			if (errno != ENOMEM)


More information about the svn-ports-head mailing list