diff --git a/0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch b/0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch new file mode 100644 index 0000000..7f20caa --- /dev/null +++ b/0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch @@ -0,0 +1,29 @@ +From d35bef64e913dd7d5dd3153a4b61f10ef837dad6 Mon Sep 17 00:00:00 2001 +From: Neal Gompa +Date: Mon, 10 Feb 2025 05:00:56 -0500 +Subject: [PATCH] pipewire: Ensure that the correct struct is used for + enumeration APIs + +PipeWire now requires the correct struct type is used, otherwise +it will fail to compile. + +Reference: https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/188d920733f0791413d3386e5536ee7377f71b2f + +Fixes: https://github.com/libsdl-org/SDL/issues/12224 +--- + src/audio/pipewire/SDL_pipewire.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/audio/pipewire/SDL_pipewire.c b/src/audio/pipewire/SDL_pipewire.c +index 4e71dd52aa794..dfb5d6cf3eebb 100644 +--- a/src/audio/pipewire/SDL_pipewire.c ++++ b/src/audio/pipewire/SDL_pipewire.c +@@ -548,7 +548,7 @@ static void node_event_info(void *object, const struct pw_node_info *info) + + /* Need to parse the parameters to get the sample rate */ + for (i = 0; i < info->n_params; ++i) { +- pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL); ++ pw_node_enum_params((struct pw_node*)node->proxy, 0, info->params[i].id, 0, 0, NULL); + } + + hotplug_core_sync(node); diff --git a/SDL2.changes b/SDL2.changes index dc9d72c..c5ebc42 100644 --- a/SDL2.changes +++ b/SDL2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 11 09:14:51 UTC 2025 - Antonio Larrosa + +- Add patch from upstream to fix building with pipewire-1.3.82. + * 0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch + ------------------------------------------------------------------- Sat Feb 8 20:01:16 UTC 2025 - Jan Engelhardt diff --git a/SDL2.spec b/SDL2.spec index a94ebeb..918870c 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -31,6 +31,7 @@ Source2: https://libsdl.org/release/%name-%version.tar.gz.sig Source3: %name.keyring Source4: baselibs.conf Patch1: sdl2-symvers.patch +Patch2: 0001-pipewire-Ensure-that-the-correct-struct-is-used-for.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libdecor-devel