Re: git: 5644fc08a756 - main - net/yate: Update to 6.4.0

From: Tobias C. Berner <tcberner_at_freebsd.org>
Date: Tue, 04 Jan 2022 16:25:56 UTC
Moin moin

The commit message does not really seem to match the commit -- could
you elaborate?


mfg Tobias

On Mon, 3 Jan 2022 at 22:54, Neel Chauhan <nc@freebsd.org> wrote:
>
> The branch main has been updated by nc:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=5644fc08a7566d8ec3d260e38492c4c9420ec1c0
>
> commit 5644fc08a7566d8ec3d260e38492c4c9420ec1c0
> Author:     Neel Chauhan <nc@FreeBSD.org>
> AuthorDate: 2022-01-03 21:53:47 +0000
> Commit:     Neel Chauhan <nc@FreeBSD.org>
> CommitDate: 2022-01-03 21:54:01 +0000
>
>     net/yate: Update to 6.4.0
> ---
>  net/yate/files/patch-engine_Thread.cpp   | 20 ++++++++++++++++++++
>  net/yate/files/patch-modules_Makefile.in |  4 ++--
>  2 files changed, 22 insertions(+), 2 deletions(-)
>
> diff --git a/net/yate/files/patch-engine_Thread.cpp b/net/yate/files/patch-engine_Thread.cpp
> new file mode 100644
> index 000000000000..bc72bb3894bf
> --- /dev/null
> +++ b/net/yate/files/patch-engine_Thread.cpp
> @@ -0,0 +1,20 @@
> +--- engine/Thread.cpp.orig     2022-01-03 18:04:16 UTC
> ++++ engine/Thread.cpp
> +@@ -525,7 +525,7 @@ int ThreadPrivate::setAffinity(ThreadPrivate* t, const
> + #else
> +     pid_t tid  = -1;
> +     if (!t)
> +-      tid = (pid_t)syscall(SYS_gettid);
> ++      tid = (pid_t)syscall(SYS_getpid);
> +     else {
> +       // there is a race between getting the TID and this call
> +       // try to hold off for a while, maybe it will get set
> +@@ -593,7 +593,7 @@ int ThreadPrivate::getAffinity(ThreadPrivate* t, DataB
> + #else
> +     pid_t tid  = -1;
> +     if (!t)
> +-      tid = (pid_t)syscall(SYS_gettid);
> ++      tid = (pid_t)syscall(SYS_getpid);
> +     else {
> +       // there is a race between getting the TID and this call
> +       // try to hold off for a while, maybe it will get set
> diff --git a/net/yate/files/patch-modules_Makefile.in b/net/yate/files/patch-modules_Makefile.in
> index 542d6de9f656..92edeeecb4e8 100644
> --- a/net/yate/files/patch-modules_Makefile.in
> +++ b/net/yate/files/patch-modules_Makefile.in
> @@ -1,6 +1,6 @@
> ---- modules/Makefile.in.orig   2017-03-28 09:13:48 UTC
> +--- modules/Makefile.in.orig   2021-02-09 15:56:37 UTC
>  +++ modules/Makefile.in
> -@@ -370,7 +370,7 @@ server/mgcpgw.yate: LOCALFLAGS = -I@top_
> +@@ -374,7 +374,7 @@ server/mgcpgw.yate: LOCALFLAGS = -I@top_srcdir@/libs/y
>   server/mgcpgw.yate: LOCALLIBS = -lyatemgcp -L../libs/ysdp -lyatesdp
>
>   server/lksctp.yate: EXTERNFLAGS = @SCTP_FLAGS@