Date: Thu, 21 Sep 2017 15:22:16 +0200 From: Mariusz Zaborski <oshogbo@freebsd.org> To: svn-ports-all@freebsd.org Subject: Re: svn commit: r450252 - head/devel/radare2/files Message-ID: <CAGOYWV816GrxYTgAo3TiLnM_HkoHLTeGHqKF9gviqs1mjek8SA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Matthew pointed out my some errors with this commit log. Thanks! > 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@ Approved by: maintainer timeout (> 1 month), matthew@ > MFC after: 1 month No MFC! > > 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?CAGOYWV816GrxYTgAo3TiLnM_HkoHLTeGHqKF9gviqs1mjek8SA>