- Add patches to fix applications not updating after some time (kde#449163): * 0001-Client-Remove-mWaitingForUpdateDelivery.patch * 0002-Guard-mResizeDirty-by-the-correctMutex.patch * 0003-Fix-up-mutexes-for-frame-callbacks.patch - Add patch to fix several feature detection tests: * 0001-Use-proper-dependencies-in-compile-tests.patch OBS-URL: https://build.opensuse.org/request/show/951555 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtwayland?expand=0&rev=20
121 lines
3.8 KiB
Diff
121 lines
3.8 KiB
Diff
From 95bdca4b2ff43205f0666a5beda124d8ca326954 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Fri, 4 Feb 2022 11:07:36 +0100
|
|
Subject: [PATCH] Use proper dependencies in compile tests
|
|
|
|
Use the dependencies as found by the "libraries" section instead of relying
|
|
on them being available in the default location (e.g. "-ldrm").
|
|
|
|
Additionally, VK_USE_PLATFORM_WAYLAND_KHR requires <wayland-client.h>, so
|
|
add the wayland-client dependency.
|
|
|
|
This fixes those tests if e.g. wayland-client headers need to be found through
|
|
pkgconfig.
|
|
---
|
|
src/client/configure.json | 8 ++++----
|
|
src/compositor/configure.json | 34 +++++++++++++++++++++++++++++-----
|
|
2 files changed, 33 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/src/client/configure.json b/src/client/configure.json
|
|
index 2f424580..29222357 100644
|
|
--- a/src/client/configure.json
|
|
+++ b/src/client/configure.json
|
|
@@ -149,8 +149,7 @@
|
|
"#endif"
|
|
]
|
|
},
|
|
- "libs": "-ldrm",
|
|
- "use": "egl"
|
|
+ "use": "drm egl"
|
|
},
|
|
"vulkan-server-buffer": {
|
|
"label": "Vulkan Buffer Sharing",
|
|
@@ -168,7 +167,8 @@
|
|
"exportAllocInfo.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR;",
|
|
"return 0;"
|
|
]
|
|
- }
|
|
+ },
|
|
+ "use": "wayland-client"
|
|
},
|
|
"egl_1_5-wayland": {
|
|
"label": "EGL 1.5 with Wayland Platform",
|
|
@@ -183,7 +183,7 @@
|
|
"eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_EXT, (struct wl_display *)(nullptr), nullptr);"
|
|
]
|
|
},
|
|
- "use": "egl"
|
|
+ "use": "egl wayland-client"
|
|
}
|
|
},
|
|
|
|
diff --git a/src/compositor/configure.json b/src/compositor/configure.json
|
|
index bcfd5215..da95d07b 100644
|
|
--- a/src/compositor/configure.json
|
|
+++ b/src/compositor/configure.json
|
|
@@ -7,6 +7,31 @@
|
|
"testDir": "../../config.tests",
|
|
|
|
"libraries": {
|
|
+ "wayland-client": {
|
|
+ "label": "Wayland client library",
|
|
+ "headers": "wayland-version.h",
|
|
+ "test": {
|
|
+ "main": [
|
|
+ "#if WAYLAND_VERSION_MAJOR < 1",
|
|
+ "# error Wayland 1.8.0 or higher required",
|
|
+ "#endif",
|
|
+ "#if WAYLAND_VERSION_MAJOR == 1",
|
|
+ "# if WAYLAND_VERSION_MINOR < 8",
|
|
+ "# error Wayland 1.8.0 or higher required",
|
|
+ "# endif",
|
|
+ "# if WAYLAND_VERSION_MINOR == 8",
|
|
+ "# if WAYLAND_VERSION_MICRO < 0",
|
|
+ "# error Wayland 1.8.0 or higher required",
|
|
+ "# endif",
|
|
+ "# endif",
|
|
+ "#endif"
|
|
+ ]
|
|
+ },
|
|
+ "sources": [
|
|
+ { "type": "pkgConfig", "args": "wayland-client" },
|
|
+ "-lwayland-client"
|
|
+ ]
|
|
+ },
|
|
"wayland-server": {
|
|
"label": "wayland-server",
|
|
"headers": "wayland-version.h",
|
|
@@ -151,8 +176,7 @@
|
|
"#endif"
|
|
]
|
|
},
|
|
- "libs": "-ldrm",
|
|
- "use": "egl"
|
|
+ "use": "drm egl"
|
|
},
|
|
"dmabuf-client-buffer": {
|
|
"label": "Linux Client dma-buf Buffer Sharing",
|
|
@@ -176,8 +200,7 @@
|
|
"return 0;"
|
|
]
|
|
},
|
|
- "libs": "-ldrm",
|
|
- "use": "egl"
|
|
+ "use": "drm egl"
|
|
},
|
|
"vulkan-server-buffer": {
|
|
"label": "Vulkan Buffer Sharing",
|
|
@@ -195,7 +218,8 @@
|
|
"exportAllocInfo.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR;",
|
|
"return 0;"
|
|
]
|
|
- }
|
|
+ },
|
|
+ "use": "wayland-client"
|
|
}
|
|
},
|
|
|
|
--
|
|
2.34.0
|
|
|