xdg-desktop-portal-hyprland: add fix for pipewire 0.2.0

This commit is contained in:
Markus Volk 2024-06-30 15:28:17 +02:00
parent bc466d2469
commit edc74c457a
2 changed files with 37 additions and 1 deletions

View File

@ -3,7 +3,10 @@ HOMEPAGE = "https://github.com/hyprwm/xdg-desktop-portal-hyprland"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e0f1d50df739a9fb8eae12a8f37ce352"
SRC_URI:append = " file://0001-meson.build-Dont-build-hyprland-share-picker-with-me.patch"
SRC_URI:append = " \
file://0001-meson.build-Dont-build-hyprland-share-picker-with-me.patch \
file://0001-ScreencopyShared.hpp-drop-define-SPA_VERSION_POD_BUI.patch \
"
require xdg-desktop-portal-hyprland.inc

View File

@ -0,0 +1,33 @@
From f181899034beb4311c8e63056ce73d00df6981c8 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Sun, 30 Jun 2024 15:10:05 +0200
Subject: [PATCH] ScreencopyShared.hpp: drop #define
SPA_VERSION_POD_BUILDER_CALLBACKS
This is defined in pipewire
Fixes build with pipewire 1.2.0
| ../git/src/portals/../core/../portals/../shared/ScreencopyShared.hpp:9:43: error: expected primary-expression before '.' token
| 9 | #define SPA_VERSION_POD_BUILDER_CALLBACKS .version = 0
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
src/shared/ScreencopyShared.hpp | 4 +---
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/shared/ScreencopyShared.hpp b/src/shared/ScreencopyShared.hpp
index d626da6..e3b0a94 100644
--- a/src/shared/ScreencopyShared.hpp
+++ b/src/shared/ScreencopyShared.hpp
@@ -5,8 +5,6 @@
extern "C" {
#include <spa/pod/builder.h>
-#undef SPA_VERSION_POD_BUILDER_CALLBACKS
-#define SPA_VERSION_POD_BUILDER_CALLBACKS .version = 0
#include <spa/buffer/meta.h>
#include <spa/utils/result.h>
#include <spa/param/props.h>
--
2.45.1