Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2017 13:33:47 +0000 (UTC)
From:      Rodrigo Osorio <rodrigo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454555 - head/devel/radare2/files
Message-ID:  <201711201333.vAKDXlet076981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711201333.vAKDXlet076981>