pkgsrc-WIP-changes archive

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

radare2-git: Drop local patches



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <kamil%netbsd.org@localhost>
Pushed By:	kamil
Date:		Mon Jan 25 13:10:53 2021 +0100
Changeset:	7f186c7f317c6fddcac3f646d49dd39956d0b1d0

Modified Files:
	radare2-git/distinfo
Removed Files:
	radare2-git/patches/patch-libr_debug_p_debug__native.c

Log Message:
radare2-git: Drop local patches

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

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

diffstat:
 radare2-git/distinfo                               |  1 -
 .../patches/patch-libr_debug_p_debug__native.c     | 65 ----------------------
 2 files changed, 66 deletions(-)

diffs:
diff --git a/radare2-git/distinfo b/radare2-git/distinfo
index e9de6c374e..095a6262c1 100644
--- a/radare2-git/distinfo
+++ b/radare2-git/distinfo
@@ -3,4 +3,3 @@ $NetBSD: distinfo,v 1.1 2014/12/05 00:50:56 krytarowski Exp $
 SHA1 (radare2-0.9.8.tar.xz) = 7fce08c3d08749e91a0ce3bee177ba389ae145f4
 RMD160 (radare2-0.9.8.tar.xz) = 8a8ab14d14e61117f48b59c8c8aadb81baf2da5e
 Size (radare2-0.9.8.tar.xz) = 4614588 bytes
-SHA1 (patch-libr_debug_p_debug__native.c) = bf2cf575db12f2488cfd25870fd27531050b04f3
diff --git a/radare2-git/patches/patch-libr_debug_p_debug__native.c b/radare2-git/patches/patch-libr_debug_p_debug__native.c
deleted file mode 100644
index 5bfb5d1725..0000000000
--- a/radare2-git/patches/patch-libr_debug_p_debug__native.c
+++ /dev/null
@@ -1,65 +0,0 @@
-$NetBSD$
-
---- libr/debug/p/debug_native.c.orig	2016-07-22 19:52:09.000000000 +0000
-+++ libr/debug/p/debug_native.c
-@@ -829,6 +829,50 @@ static RList *r_debug_native_sysctl_map 
- 	free (buf);
- 	return list;
- }
-+#elif __NetBSD__
-+static RList *r_debug_native_sysctl_map (RDebug *dbg) {
-+	int mib[5];
-+	size_t len;
-+	struct kinfo_vmentry entry;
-+	u_long old_end = 0;
-+	RList *list = NULL;
-+	RDebugMap *map;
-+
-+	len = sizeof(entry);
-+	mib[0] = CTL_VM;
-+	mib[1] = VM_PROC;
-+	mib[2] = VM_PROC_MAP;
-+	mib[3] = dbg->pid;
-+	mib[4] = sizeof(struct kinfo_vmentry);
-+	entry.kve_start = 0;
-+
-+	if (sysctl (mib, 5, &entry, &len, NULL, 0) == -1) {
-+		eprintf ("Could not get memory map: %s\n", strerror(errno));
-+		return NULL;
-+	}
-+
-+	list = r_debug_map_list_new();
-+	if (!list) return NULL;
-+
-+	while (sysctl (mib, 5, &entry, &len, NULL, 0) != -1) {
-+		if (old_end == entry.kve_end) {
-+			/* No more entries */
-+			break;
-+		}
-+		/* path to vm obj is not included in kinfo_vmentry.
-+		 * see usr.sbin/procmap for namei-cache lookup.
-+		 */
-+		map = r_debug_map_new ("", entry.kve_start, entry.kve_end,
-+				entry.kve_protection, 0);
-+		if (!map) break;
-+		r_list_append (list, map);
-+
-+		entry.kve_start = entry.kve_start + 1;
-+		old_end = entry.kve_end;
-+	}
-+
-+	return list;
-+}
- #elif __OpenBSD__
- static RList *r_debug_native_sysctl_map (RDebug *dbg) {
- 	int mib[3];
-@@ -966,7 +1010,8 @@ static RList *r_debug_native_map_get (RD
- 	region[0] = region2[0] = '0';
- 	region[1] = region2[1] = 'x';
- 
--#if __OpenBSD__
-+#if __NetBSD__ || __OpenBSD__
-+	/* Prefer sysctl(7) over procfs on NetBSD */
- 	/* OpenBSD has no procfs, so no idea trying. */
- 	return r_debug_native_sysctl_map (dbg);
- #endif


Home | Main Index | Thread Index | Old Index