svn commit: r454555 - head/devel/radare2/files
Rodrigo Osorio
rodrigo at FreeBSD.org
Mon Nov 20 13:33:48 UTC 2017
Author: rodrigo
Date: Mon Nov 20 13:33:46 2017
New Revision: 454555
URL: https://svnweb.freebsd.org/changeset/ports/454555
Log:
Update radare2 from v1.0.2 to v2.0.1
Since last release commes with 3255 commits you should look at
https://github.com/radare/radare2/releases to see the full releases
history.
PR: 222931
Submitted by: Michael Zhilin <mizhka at gmail.com>
Approved by: rodrigo (maintainer timeout)
Added:
head/devel/radare2/files/patch-libr_debug_p_debug__native.c (contents, props changed)
Deleted:
head/devel/radare2/files/patch-kinfo_file.c
Added: head/devel/radare2/files/patch-libr_debug_p_debug__native.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/radare2/files/patch-libr_debug_p_debug__native.c Mon Nov 20 13:33:46 2017 (r454555)
@@ -0,0 +1,32 @@
+--- libr/debug/p/debug_native.c.orig 2017-11-13 19:15:44 UTC
++++ libr/debug/p/debug_native.c
+@@ -1620,6 +1620,7 @@ static RList *r_debug_desc_native_list (
+ case KF_TYPE_VNODE: type = 'v'; break;
+ case KF_TYPE_SOCKET:
+ type = 's';
++#if __FreeBSD_version < 1200031
+ if (kve->kf_sock_domain == AF_LOCAL) {
+ struct sockaddr_un *sun =
+ (struct sockaddr_un *)&kve->kf_sa_local;
+@@ -1633,6 +1634,21 @@ static RList *r_debug_desc_native_list (
+ addr_to_string (&kve->kf_sa_peer, path + strlen (path),
+ sizeof (path));
+ }
++#else
++ if (kve->kf_sock_domain == AF_LOCAL) {
++ struct sockaddr_un *sun =
++ (struct sockaddr_un *)&kve->kf_un.kf_sock.kf_sa_local;;
++ if (sun->sun_path[0] != 0)
++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
++ else
++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path, sizeof(path));
++ } else {
++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
++ strcat (path, " ");
++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path + strlen (path),
++ sizeof (path));
++ }
++#endif
+ str = path;
+ break;
+ case KF_TYPE_PIPE: type = 'p'; break;
More information about the svn-ports-head
mailing list