[packages/Vulkan-Tools] - updated to vulkan-sdk-1.4.321.0

qboosh qboosh at pld-linux.org
Wed Jul 23 22:49:25 CEST 2025


commit 4688d910d932bced3464dca1555a8ec989ea52bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jul 23 22:51:10 2025 +0200

    - updated to vulkan-sdk-1.4.321.0

 Vulkan-Tools-dlopen.patch | 38 ++++++++++++++++++++++++++++++++++++++
 Vulkan-Tools.spec         |  6 ++++--
 2 files changed, 42 insertions(+), 2 deletions(-)
---
diff --git a/Vulkan-Tools.spec b/Vulkan-Tools.spec
index fca1fc3..5e12131 100644
--- a/Vulkan-Tools.spec
+++ b/Vulkan-Tools.spec
@@ -4,7 +4,7 @@
 %bcond_without	wayland		# Wayland support
 %bcond_without	x11		# X11 (Xlib/XCB) support
 
-%define	api_version	1.4.309.0
+%define	api_version	1.4.321.0
 %define	gitref		vulkan-sdk-%{api_version}
 
 Summary:	Vulkan API Tools
@@ -16,7 +16,8 @@ License:	Apache v2.0
 Group:		Applications/Graphics
 #Source0Download: https://github.com/KhronosGroup/Vulkan-Tools/tags
 Source0:	https://github.com/KhronosGroup/Vulkan-Tools/archive/%{gitref}/%{name}-%{gitref}.tar.gz
-# Source0-md5:	d8354708e1bf527d19d6e0d72484b821
+# Source0-md5:	243182b92fb563c446a424c3251d8ca1
+Patch0:		%{name}-dlopen.patch
 URL:		https://github.com/KhronosGroup/Vulkan-Tools/
 %{?with_directfb:BuildRequires:	DirectFB-devel}
 BuildRequires:	Vulkan-Loader-devel >= %{api_version}
@@ -56,6 +57,7 @@ Atrapa sterownika Vulkan.
 
 %prep
 %setup -q -n %{name}-%{gitref}
+%patch -P0 -p1
 
 %build
 %cmake -B build \
diff --git a/Vulkan-Tools-dlopen.patch b/Vulkan-Tools-dlopen.patch
new file mode 100644
index 0000000..3319f2b
--- /dev/null
+++ b/Vulkan-Tools-dlopen.patch
@@ -0,0 +1,38 @@
+Disable broken defines: pkg-config likely returns more than single library to link, so it cannot
+be passed as single argument to dlopen
+--- Vulkan-Tools-vulkan-sdk-1.4.321.0/cube/CMakeLists.txt.orig	2025-07-07 18:34:37.000000000 +0200
++++ Vulkan-Tools-vulkan-sdk-1.4.321.0/cube/CMakeLists.txt	2025-07-23 21:16:01.334182535 +0200
+@@ -307,16 +307,6 @@ if (ANDROID)
+     return()
+ endif()
+ 
+-if (XCB_LINK_LIBRARIES)
+-    target_compile_definitions(vkcube PRIVATE "XCB_LIBRARY=\"${XCB_LINK_LIBRARIES}\"")
+-endif()
+-if (X11_LINK_LIBRARIES)
+-    target_compile_definitions(vkcube PRIVATE "XLIB_LIBRARY=\"${X11_LINK_LIBRARIES}\"")
+-endif()
+-if (WAYLAND_CLIENT_LINK_LIBRARIES)
+-    target_compile_definitions(vkcube PRIVATE "WAYLAND_LIBRARY=\"${WAYLAND_CLIENT_LINK_LIBRARIES}\"")
+-endif()
+-
+ # ----------------------------------------------------------------------------
+ # vkcubepp
+ 
+@@ -360,16 +350,6 @@ target_include_directories(vkcubepp PRIV
+ target_compile_definitions(vkcubepp PRIVATE ${ENABLED_CUBE_PLATFORMS})
+ target_link_libraries(vkcubepp ${CMAKE_DL_LIBS} Vulkan::Headers)
+ 
+-if (XCB_LINK_LIBRARIES )
+-    target_compile_definitions(vkcubepp PUBLIC "XCB_LIBRARY=\"${XCB_LINK_LIBRARIES}\"")
+-endif()
+-if (X11_LINK_LIBRARIES)
+-    target_compile_definitions(vkcubepp PUBLIC "XLIB_LIBRARY=\"${X11_LINK_LIBRARIES}\"")
+-endif()
+-if (WAYLAND_CLIENT_LINK_LIBRARIES)
+-    target_compile_definitions(vkcubepp PUBLIC "WAYLAND_LIBRARY=\"${WAYLAND_CLIENT_LINK_LIBRARIES}\"")
+-endif()
+-
+ if(APPLE)
+     install(
+         TARGETS vkcubepp
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Vulkan-Tools.git/commitdiff/4688d910d932bced3464dca1555a8ec989ea52bf



More information about the pld-cvs-commit mailing list