git: 4a5c3ec3e000 - main - devel/efl: Fix build on 14-CURRENT.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 21 Feb 2023 11:53:10 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a5c3ec3e000e2be7728eee4756797d08bed0626

commit 4a5c3ec3e000e2be7728eee4756797d08bed0626
Author:     Peter TKATCHENKO <peter@flytrace.com>
AuthorDate: 2023-02-21 11:51:57 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-02-21 11:51:57 +0000

    devel/efl: Fix build on 14-CURRENT.
    
    Reported by:    pkg-fallout
    Tested by:      arrowd
---
 devel/efl/Makefile                                   |  2 +-
 devel/efl/files/patch-src_lib_eina_eina__debug__bt.c | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/devel/efl/Makefile b/devel/efl/Makefile
index 4d0fd4645f15..9383c3772d1b 100644
--- a/devel/efl/Makefile
+++ b/devel/efl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	efl
 DISTVERSION=	1.26.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel enlightenment
 MASTER_SITES=	http://download.enlightenment.org/rel/libs/${PORTNAME}/
 DIST_SUBDIR=	enlightenment
diff --git a/devel/efl/files/patch-src_lib_eina_eina__debug__bt.c b/devel/efl/files/patch-src_lib_eina_eina__debug__bt.c
new file mode 100644
index 000000000000..da41e5bed2bd
--- /dev/null
+++ b/devel/efl/files/patch-src_lib_eina_eina__debug__bt.c
@@ -0,0 +1,19 @@
+--- src/lib/eina/eina_debug_bt.c.orig
++++ src/lib/eina/eina_debug_bt.c
+@@ -293,12 +293,14 @@ _signal_shutdown(void)
+ }
+
+ static void
+-_collect_bt(pthread_t pth)
++_collect_bt(Eina_Thread th)
+ {
+    // this async signals the thread to switch to the deebug signal handler
+    // and collect a backtrace and other info from inside the thread
+ #ifndef _WIN32
+-   pthread_kill(pth, SIG);
++   pthread_kill((pthread_t)th, SIG); // we can cast Eina_Thread -> pthread_t
++#else
++   (th); // silenmce unused warn
+ #endif
+ }
+