diff options
author | tj <tj@FreeBSD.org> | 2016-11-15 00:33:15 +0800 |
---|---|---|
committer | tj <tj@FreeBSD.org> | 2016-11-15 00:33:15 +0800 |
commit | 24a6d987add01b353fafca91a5f1ee4a930828e1 (patch) | |
tree | 91286a7b40054bb45ae307e07c4e529cc27c3210 | |
parent | e5c5c37da65d3739edc92ed06e38e2fe1c1bbf45 (diff) | |
download | freebsd-ports-gnome-24a6d987add01b353fafca91a5f1ee4a930828e1.tar.gz freebsd-ports-gnome-24a6d987add01b353fafca91a5f1ee4a930828e1.tar.zst freebsd-ports-gnome-24a6d987add01b353fafca91a5f1ee4a930828e1.zip |
Fix the patch to actually patch the file, not just create a patch file.
-rw-r--r-- | lang/mono/Makefile | 1 | ||||
-rw-r--r-- | lang/mono/files/patch-mono_utils_mono-proclib.c | 16 | ||||
-rw-r--r-- | lang/mono/files/patch-mono_utils_patch-mono__utils__mono-proclib.c | 19 |
3 files changed, 17 insertions, 19 deletions
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) |