summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-12-06 13:58:49 -0500
committerMike Gilbert <floppym@gentoo.org>2023-12-06 13:58:49 -0500
commitdd1faced71b23f460c067320c785b0133570ca76 (patch)
tree7254a0002552fa8344b2d430daec04c8475e3fb2 /net-misc
parentdev-python/pdm-backend: Keyword 2.1.7 alpha, #919305 (diff)
downloadgentoo-dd1faced71b23f460c067320c785b0133570ca76.tar.gz
gentoo-dd1faced71b23f460c067320c785b0133570ca76.tar.bz2
gentoo-dd1faced71b23f460c067320c785b0133570ca76.zip
net-misc/freerdp: fix build with clang
Closes: https://bugs.gentoo.org/916515 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/freerdp/files/freerdp-2.11.2-clang.patch29
-rw-r--r--net-misc/freerdp/freerdp-2.11.1.ebuild4
-rw-r--r--net-misc/freerdp/freerdp-2.11.2.ebuild4
3 files changed, 37 insertions, 0 deletions
diff --git a/net-misc/freerdp/files/freerdp-2.11.2-clang.patch b/net-misc/freerdp/files/freerdp-2.11.2-clang.patch
new file mode 100644
index 000000000000..b05492a3effd
--- /dev/null
+++ b/net-misc/freerdp/files/freerdp-2.11.2-clang.patch
@@ -0,0 +1,29 @@
+https://github.com/FreeRDP/FreeRDP/pull/9373
+https://bugs.gentoo.org/916515
+
+From 88dd68153c834e1d5f59beb59496bfd1bf9697a8 Mon Sep 17 00:00:00 2001
+From: Wang Mingyu <wangmy@cn.fujitsu.com>
+Date: Mon, 11 Sep 2023 00:31:54 +0000
+Subject: [PATCH] Fixes clang error error: incompatible function pointer types
+ assigning to 'OBJECT_NEW_FN' (aka 'void *(*)(void *)') from 'void *(const
+ void *)' [-Wincompatible-function-pointer-types] | obj->fnObjectNew =
+ uwac_event_clone; | ^ ~~~~~~~~~~~~~~~~
+
+Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
+---
+ client/Wayland/wlfreerdp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/client/Wayland/wlfreerdp.c b/client/Wayland/wlfreerdp.c
+index 5be10aae2c1b..ef3539383f55 100644
+--- a/client/Wayland/wlfreerdp.c
++++ b/client/Wayland/wlfreerdp.c
+@@ -598,7 +598,7 @@ static void wlf_client_free(freerdp* instance, rdpContext* context)
+ DeleteCriticalSection(&wlf->critical);
+ }
+
+-static void* uwac_event_clone(const void* val)
++static void* uwac_event_clone(void* val)
+ {
+ UwacEvent* copy;
+ const UwacEvent* ev = (const UwacEvent*)val;
diff --git a/net-misc/freerdp/freerdp-2.11.1.ebuild b/net-misc/freerdp/freerdp-2.11.1.ebuild
index c02216b06c7b..83943a4cf418 100644
--- a/net-misc/freerdp/freerdp-2.11.1.ebuild
+++ b/net-misc/freerdp/freerdp-2.11.1.ebuild
@@ -93,6 +93,10 @@ BDEPEND="
) )
"
+PATCHES=(
+ "${FILESDIR}/freerdp-2.11.2-clang.patch"
+)
+
src_configure() {
# bug #881695
filter-lto
diff --git a/net-misc/freerdp/freerdp-2.11.2.ebuild b/net-misc/freerdp/freerdp-2.11.2.ebuild
index 2a906f8c6a0d..86d7791ad99e 100644
--- a/net-misc/freerdp/freerdp-2.11.2.ebuild
+++ b/net-misc/freerdp/freerdp-2.11.2.ebuild
@@ -93,6 +93,10 @@ BDEPEND="
) )
"
+PATCHES=(
+ "${FILESDIR}/freerdp-2.11.2-clang.patch"
+)
+
src_configure() {
# bug #881695
filter-lto