[packages/kodi] upstream patch to fix build with pipewire >= 1.4

atler atler at pld-linux.org
Sat Mar 8 20:48:47 CET 2025


commit fa9ca147ac2272ee074092fd05c4cec29b61a732
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Mar 8 20:36:02 2025 +0100

    upstream patch to fix build with pipewire >= 1.4
    
    from: https://github.com/xbmc/xbmc/pull/26502

 kodi.spec          |  2 ++
 pipewire-1.4.patch | 27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
---
diff --git a/kodi.spec b/kodi.spec
index c97cca4..8a1319c 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -80,6 +80,7 @@ Source5:	http://mirrors.kodi.tv/build-deps/sources/commons-lang3-%{commons_lang_
 # Source5-md5:	88c83b3fa007ae35d4f82a2466cad423
 Source6:	http://mirrors.kodi.tv/build-deps/sources/commons-text-%{commons_text_ver}-bin.tar.gz
 # Source6-md5:	ae1f7607159b192e12f9c8eaaaf3d927
+Patch0:		pipewire-1.4.patch
 URL:		https://kodi.tv/
 BuildRequires:	EGL-devel
 %{?with_gbm:BuildRequires:	Mesa-libgbm-devel}
@@ -236,6 +237,7 @@ Header files for Kodi.
 
 %prep
 %setup -q -n xbmc-%{version}-%{codename} -a1 -a2 -a3
+%patch -P0 -p1
 
 %{__rm} -r lib/win32
 
diff --git a/pipewire-1.4.patch b/pipewire-1.4.patch
new file mode 100644
index 0000000..2f7bfb1
--- /dev/null
+++ b/pipewire-1.4.patch
@@ -0,0 +1,27 @@
+From 269053ebbfd3cc4a3156a511f54ab7f08a09a730 Mon Sep 17 00:00:00 2001
+From: Timo Gurr <timo.gurr at gmail.com>
+Date: Fri, 7 Mar 2025 13:30:47 +0100
+Subject: [PATCH] [AudioEngine] PipeWire: Fix build with PipeWire 1.4.0
+
+PipeWire >= 1.4.0 requires the correct struct type to be used, otherwise
+it will fail to compile.
+
+Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f
+---
+ xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp b/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
+index 88fe89ee1399a..50eaf0c945886 100644
+--- a/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
++++ b/xbmc/cores/AudioEngine/Sinks/pipewire/PipewireNode.cpp
+@@ -40,7 +40,8 @@ void CPipewireNode::EnumerateFormats()
+   for (uint32_t param = 0; param < m_info->n_params; param++)
+   {
+     if (m_info->params[param].id == SPA_PARAM_EnumFormat)
+-      pw_node_enum_params(m_proxy.get(), 0, m_info->params[param].id, 0, 0, NULL);
++      pw_node_enum_params(reinterpret_cast<struct pw_node*>(m_proxy.get()), 0,
++                          m_info->params[param].id, 0, 0, NULL);
+   }
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kodi.git/commitdiff/fa9ca147ac2272ee074092fd05c4cec29b61a732



More information about the pld-cvs-commit mailing list