Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2017 12:14:22 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r450252 - head/devel/radare2/files
Message-ID:  <201709211214.v8LCEMak022306@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo (src committer)
Date: Thu Sep 21 12:14:21 2017
New Revision: 450252
URL: https://svnweb.freebsd.org/changeset/ports/450252

Log:
  Fix building of devel/radare2.
  
  Change the names of fields used with the kinfo_file structure.
  FreeBSD use different kinfo_file structure then Linux.
  
  PR:		221347
  Approved by:	matthew@
  MFC after:	1 month

Added:
  head/devel/radare2/files/
  head/devel/radare2/files/patch-kinfo_file.c   (contents, props changed)

Added: head/devel/radare2/files/patch-kinfo_file.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/radare2/files/patch-kinfo_file.c	Thu Sep 21 12:14:21 2017	(r450252)
@@ -0,0 +1,46 @@
+--- libr/debug/p/debug_native.c 2017-08-08 00:36:25.502447000 +0200
++++ libr/debug/p/debug_native.c	2017-08-08 00:39:41.234685000 +0200
+@@ -1487,15 +1487,15 @@
+ 			type = 's';
+ 			if (kve->kf_sock_domain == AF_LOCAL) {
+ 				struct sockaddr_un *sun =
+-					(struct sockaddr_un *)&kve->kf_sa_local;
++					(struct sockaddr_un *)&kve->kf_un.kf_sock.kf_sa_local;
+ 				if (sun->sun_path[0] != 0)
+-					addr_to_string (&kve->kf_sa_local, path, sizeof(path));
++					addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
+ 				else
+-					addr_to_string (&kve->kf_sa_peer, path, sizeof(path));
++					addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path, sizeof(path));
+ 			} else {
+-				addr_to_string (&kve->kf_sa_local, path, sizeof(path));
++				addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
+ 				strcat (path, " ");
+-				addr_to_string (&kve->kf_sa_peer, path + strlen (path),
++				addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path + strlen (path),
+ 						sizeof (path));
+ 			}
+ 			str = path;
+--- libr/debug/p/debug_native.c 2017-08-08 00:36:25.502447000 +0200
++++ libr/debug/p/debug_native.c	2017-08-08 00:39:41.234685000 +0200
+@@ -1487,15 +1487,15 @@
+ 			type = 's';
+ 			if (kve->kf_sock_domain == AF_LOCAL) {
+ 				struct sockaddr_un *sun =
+-					(struct sockaddr_un *)&kve->kf_sa_local;
++					(struct sockaddr_un *)&kve->kf_un.kf_sock.kf_sa_local;
+ 				if (sun->sun_path[0] != 0)
+-					addr_to_string (&kve->kf_sa_local, path, sizeof(path));
++					addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
+ 				else
+-					addr_to_string (&kve->kf_sa_peer, path, sizeof(path));
++					addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path, sizeof(path));
+ 			} else {
+-				addr_to_string (&kve->kf_sa_local, path, sizeof(path));
++				addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
+ 				strcat (path, " ");
+-				addr_to_string (&kve->kf_sa_peer, path + strlen (path),
++				addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path + strlen (path),
+ 						sizeof (path));
+ 			}
+ 			str = path;



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