From owner-svn-ports-all@freebsd.org Wed Oct 5 17:46:12 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28D97AF606A; Wed, 5 Oct 2016 17:46:12 +0000 (UTC) (envelope-from tj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D12FDBFB; Wed, 5 Oct 2016 17:46:11 +0000 (UTC) (envelope-from tj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u95HkAx8032438; Wed, 5 Oct 2016 17:46:10 GMT (envelope-from tj@FreeBSD.org) Received: (from tj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u95HkARf032434; Wed, 5 Oct 2016 17:46:10 GMT (envelope-from tj@FreeBSD.org) Message-Id: <201610051746.u95HkARf032434@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tj set sender to tj@FreeBSD.org using -f From: Tom Judge Date: Wed, 5 Oct 2016 17:46:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r423356 - in head/lang/mono: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2016 17:46:12 -0000 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)