xdg-desktop-portal/0001-Fix-build-with-pipewire-1.3.82.patch
Bjørn Lie d8e0088b25 - Update to version 1.19.3:
+ Bug Fixes:
    - Fix documentation links in the USB portal page.
    - Make the Document portal track open files, and release them
      when shutting down. This should fix some harmless leak
      reports,
    - Fix a memory leak, a crash, and improve robustness against
      non-existing folders in the Dynamic Launcher portal.
    - Fix build with PipeWire 1.3.82
  + Enhancements:
    - Make the host path xattr more useful by removing the trailing
      end character, and also reporting the xattr of files inside
      folders added to the document store.
    - Remove libportal-based integrated tests. This should remove
      the cyclic dependency between libportal, and
      xdg-desktop-portal. All tests are now based on the Python
      testing framework.
- Drop 0001-Fix-build-with-pipewire-1.3.82.patch: Fixed upstream.
- Stop passing pytest=disabled to meson setup, replace with
  tests=disabled.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/xdg-desktop-portal?expand=0&rev=97
2025-02-13 11:21:23 +00:00

30 lines
1.3 KiB
Diff

From da7b73b0b0174e9a6dcf706ae64218e822e2c685 Mon Sep 17 00:00:00 2001
From: Antonio Larrosa <antonio.larrosa@gmail.com>
Date: Wed, 12 Feb 2025 10:26:08 +0100
Subject: [PATCH] Fix build with pipewire 1.3.82
While submitting pipewire 1.3.82 to openSUSE Tumbleweed I noticed this
is needed to build xdg-desktop-portal. This was already submitted
as an issue in #1611 in Debian, in which the reporter doesn't mention the
used pipewire version but says "I am also building my own pipewire"
so I guess it's one of the latest RCs (1.3.81 or 1.3.82).
Fixes: #1611
---
src/pipewire.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pipewire.c b/src/pipewire.c
index bc4ec5047..39b05c71c 100644
--- a/src/pipewire.c
+++ b/src/pipewire.c
@@ -331,7 +331,7 @@ pipewire_remote_new_sync (struct pw_properties *pipewire_properties,
remote->registry = (struct pw_proxy*) pw_core_get_registry (remote->core,
PW_VERSION_REGISTRY,
0);
- pw_registry_add_listener (remote->registry,
+ pw_registry_add_listener ((struct pw_registry*)remote->registry,
&remote->registry_listener,
&registry_events,
remote);