[packages/gtk4] - fix for types in Vulkan context; release 2
qboosh
qboosh at pld-linux.org
Sat Nov 29 14:51:30 CET 2025
commit 30617a734f5a8e5c847f2b2e473e4e439d1d59fa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 29 14:51:37 2025 +0100
- fix for types in Vulkan context; release 2
gtk4-vk.patch | 20 ++++++++++++++++++++
gtk4.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/gtk4.spec b/gtk4.spec
index 16a5276..6c27d66 100644
--- a/gtk4.spec
+++ b/gtk4.spec
@@ -23,13 +23,14 @@ Summary(pl.UTF-8): GIMP Toolkit
Summary(tr.UTF-8): GIMP ToolKit arayüz kitaplığı
Name: gtk4
Version: 4.20.3
-Release: 1
+Release: 2
License: LGPL v2+
Group: X11/Libraries
Source0: https://download.gnome.org/sources/gtk/4.20/gtk-%{version}.tar.xz
# Source0-md5: 7fe0499e3390d516f8644411ce2c3cde
Patch0: %{name}-print-backends.patch
Patch1: %{name}-x32.patch
+Patch2: %{name}-vk.patch
URL: https://www.gtk.org/
%{?with_vulkan:BuildRequires: Vulkan-Loader-devel >= 1.3}
%{?with_accesskit:BuildRequires: accesskit-c-devel >= 0.17}
@@ -341,6 +342,7 @@ GTK - przykładowe programy.
%setup -q -n gtk-%{version}
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' demos/gtk-demo/geninclude.py
%{__sed} -i -e '1s,/usr/bin/env .* gjs,/usr/bin/gjs,' examples/labels.js
diff --git a/gtk4-vk.patch b/gtk4-vk.patch
new file mode 100644
index 0000000..ed914a3
--- /dev/null
+++ b/gtk4-vk.patch
@@ -0,0 +1,20 @@
+--- gtk-4.20.3/gdk/gdkvulkancontext.c.orig 2025-11-20 06:08:31.000000000 +0100
++++ gtk-4.20.3/gdk/gdkvulkancontext.c 2025-11-29 09:50:03.396025813 +0100
+@@ -688,7 +688,7 @@ gdk_vulkan_present_is_busy (GdkVulkanCon
+ {
+ VkResult res;
+
+- if (present->vk_swapchain == NULL)
++ if (present->vk_swapchain == VK_NULL_HANDLE)
+ return FALSE;
+
+ if (!present->vk_fence)
+@@ -1208,7 +1208,7 @@ gdk_vulkan_context_surface_detach (GdkDr
+ if (priv->presents[i].vk_swapchain)
+ {
+ gdk_vulkan_context_unref_swapchain (self, priv->presents[i].vk_swapchain);
+- priv->presents[i].vk_swapchain = NULL;
++ priv->presents[i].vk_swapchain = VK_NULL_HANDLE;
+ }
+ vkDestroySemaphore (vk_device,
+ priv->presents[i].vk_semaphore,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtk4.git/commitdiff/30617a734f5a8e5c847f2b2e473e4e439d1d59fa
More information about the pld-cvs-commit
mailing list