From 24a6d987add01b353fafca91a5f1ee4a930828e1 Mon Sep 17 00:00:00 2001 From: tj Date: Mon, 14 Nov 2016 16:33:15 +0000 Subject: Fix the patch to actually patch the file, not just create a patch file. --- lang/mono/Makefile | 1 + lang/mono/files/patch-mono_utils_mono-proclib.c | 16 ++++++++++++++++ ...patch-mono_utils_patch-mono__utils__mono-proclib.c | 19 ------------------- 3 files changed, 17 insertions(+), 19 deletions(-) create mode 100644 lang/mono/files/patch-mono_utils_mono-proclib.c delete mode 100644 lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c (limited to 'lang') diff --git a/lang/mono/Makefile b/lang/mono/Makefile index aff85b6f364d..f2f3ddd957c1 100644 --- a/lang/mono/Makefile +++ b/lang/mono/Makefile @@ -3,6 +3,7 @@ PORTNAME= mono PORTVERSION= 4.6.1.5 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/ diff --git a/lang/mono/files/patch-mono_utils_mono-proclib.c b/lang/mono/files/patch-mono_utils_mono-proclib.c new file mode 100644 index 000000000000..2edf8e10d6eb --- /dev/null +++ b/lang/mono/files/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) diff --git a/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c b/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c deleted file mode 100644 index 906199b6a1fc..000000000000 --- a/lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c +++ /dev/null @@ -1,19 +0,0 @@ ---- 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) -- cgit