svn commit: r450252 - head/devel/radare2/files

Mariusz Zaborski oshogbo at freebsd.org
Thu Sep 21 13:22:18 UTC 2017


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;


More information about the svn-ports-all mailing list