pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
radare2-git: Add untested patches
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Jul 19 03:20:56 2016 +0200
Changeset: 9b1cfb4b0a1f9a11d827cc73605b150a238dfd3b
Modified Files:
radare2-git/Makefile
radare2-git/distinfo
radare2-git/patches/patch-libr_debug_p_debug__native.c
Log Message:
radare2-git: Add untested patches
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9b1cfb4b0a1f9a11d827cc73605b150a238dfd3b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
radare2-git/Makefile | 8 +++
radare2-git/distinfo | 2 +-
.../patches/patch-libr_debug_p_debug__native.c | 63 +++++++++++++++++++++-
3 files changed, 71 insertions(+), 2 deletions(-)
diffs:
diff --git a/radare2-git/Makefile b/radare2-git/Makefile
index 68ba0f2..249057c 100644
--- a/radare2-git/Makefile
+++ b/radare2-git/Makefile
@@ -19,6 +19,14 @@ CONFIGURE_ARGS+= --with-syszip
PKGCONFIG_OVERRIDE+= pkgcfg/*.pc*
USE_TOOLS+= gmake
+# REPLACE_NODE?
+REPLACE_INTERPRETER+= node
+REPLACE.node.old= .*node[^ ]*
+REPLACE.node.new= ${LOCALBASE}/bin/node
+REPLACE_FILES.node= shlr/www/m/vendors/fonts/iconjar-map.js
+
+DEPENDS+= nodejs-[0-9]*:../../lang/nodejs
+
.include "options.mk"
.include "../../devel/capstone/buildlink3.mk"
diff --git a/radare2-git/distinfo b/radare2-git/distinfo
index 7b49a0f..7a8bd18 100644
--- a/radare2-git/distinfo
+++ b/radare2-git/distinfo
@@ -3,4 +3,4 @@ $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) = 7611351f4891adf1dbc023126b751f4ad388ae72
+SHA1 (patch-libr_debug_p_debug__native.c) = ec4325532f8d482e7ef4d8962d4d63735ce1a814
diff --git a/radare2-git/patches/patch-libr_debug_p_debug__native.c b/radare2-git/patches/patch-libr_debug_p_debug__native.c
index c7bb0bd..5e443a9 100644
--- a/radare2-git/patches/patch-libr_debug_p_debug__native.c
+++ b/radare2-git/patches/patch-libr_debug_p_debug__native.c
@@ -1,6 +1,6 @@
$NetBSD$
---- libr/debug/p/debug_native.c.orig 2016-07-18 23:01:08.145880903 +0000
+--- libr/debug/p/debug_native.c.orig 2016-07-18 23:01:08.000000000 +0000
+++ libr/debug/p/debug_native.c
@@ -508,13 +508,22 @@ static RList *r_debug_native_pids (int p
}
@@ -41,3 +41,64 @@ $NetBSD$
if (!kd) {
eprintf ("kvm_openfiles says %s\n", errbuf);
return NULL;
+@@ -819,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];
+@@ -956,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