diff --git a/ver.diff b/ver.diff deleted file mode 100644 index 81f2518..0000000 --- a/ver.diff +++ /dev/null @@ -1,30 +0,0 @@ -From: Jan Engelhardt -Date: 2020-08-19 13:21:33.156157310 +0200 - -We do not want static archives in openSUSE, so need to turn on SHARED mode. -As a result, a version needs to be added. ---- - layers/CMakeLists.txt | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -Index: Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt -=================================================================== ---- Vulkan-ValidationLayers-sdk-1.3.239.0.orig/layers/CMakeLists.txt -+++ Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt -@@ -23,7 +23,7 @@ - # https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/4640 - add_compile_definitions(XXH_NO_LONG_LONG) - --add_library(VkLayer_utils STATIC) -+add_library(VkLayer_utils SHARED) - target_sources(VkLayer_utils PRIVATE - generated/vk_format_utils.h - generated/vk_format_utils.cpp -@@ -53,6 +53,7 @@ target_sources(VkLayer_utils PRIVATE - xxhash.h - xxhash.c - ) -+set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@") - target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers) - set_target_properties(VkLayer_utils PROPERTIES LINKER_LANGUAGE CXX) - target_include_directories(VkLayer_utils PUBLIC diff --git a/vulkan-validationlayers.changes b/vulkan-validationlayers.changes index b4c4df8..0e4c394 100644 --- a/vulkan-validationlayers.changes +++ b/vulkan-validationlayers.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 16 18:27:17 UTC 2023 - Jan Engelhardt + +- Rework xxhash.diff, remove ver.diff and libVkLayer_utils.so, + cure unresolved symbols [boo#1208172]. + ------------------------------------------------------------------- Sun Jan 29 12:46:08 UTC 2023 - Jan Engelhardt diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec index f6330ad..c7d7e02 100644 --- a/vulkan-validationlayers.spec +++ b/vulkan-validationlayers.spec @@ -26,7 +26,6 @@ Group: Development/Tools/Other URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/refs/tags/sdk-%version.tar.gz Source9: %name-rpmlintrc -Patch1: ver.diff Patch2: xxhash.diff BuildRequires: cmake >= 3.7.12 BuildRequires: gcc-c++ >= 4.8 @@ -94,8 +93,7 @@ export CXX="$PWD/gxx" %install %cmake_install b="%buildroot" -ln -sv "libVkLayer_utils-%version.so" "$b/%_libdir/libVkLayer_utils.so" -rm -f "$b/%_includedir"/xxhash.* +rm -fv "$b/%_includedir"/xxhash.* "$b/%_libdir"/*.a %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig @@ -105,11 +103,7 @@ rm -f "$b/%_includedir"/xxhash.* %_libdir/libVkLayer_khr*.so %_datadir/vulkan/ -%files -n %lname -%_libdir/libVkLayer_utils-%version.so - %files devel %_includedir/* -%_libdir/libVkLayer_utils.so %changelog diff --git a/xxhash.diff b/xxhash.diff index 7cf7dde..bb6dc08 100644 --- a/xxhash.diff +++ b/xxhash.diff @@ -14,16 +14,19 @@ Index: Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt =================================================================== --- Vulkan-ValidationLayers-sdk-1.3.239.0.orig/layers/CMakeLists.txt +++ Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt -@@ -50,8 +50,6 @@ target_sources(VkLayer_utils PRIVATE +@@ -50,10 +50,8 @@ target_sources(VkLayer_utils PRIVATE vk_layer_logging.cpp vk_layer_utils.h vk_layer_utils.cpp - xxhash.h - xxhash.c ) - set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@") - target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers) -@@ -259,8 +257,6 @@ target_sources(VkLayer_khronos_validatio +-target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers) ++target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers -lxxhash) + set_target_properties(VkLayer_utils PROPERTIES LINKER_LANGUAGE CXX) + target_include_directories(VkLayer_utils PUBLIC + . +@@ -258,8 +256,6 @@ target_sources(VkLayer_khronos_validatio video_validation.cpp vk_layer_settings_ext.h wsi_validation.cpp @@ -32,12 +35,3 @@ Index: Vulkan-ValidationLayers-sdk-1.3.239.0/layers/CMakeLists.txt ) target_compile_definitions(VkLayer_khronos_validation PUBLIC ${KHRONOS_LAYER_COMPILE_DEFINITIONS}) -@@ -279,7 +275,7 @@ if (USE_ROBIN_HOOD_HASHING) - endif() - # Order matters here. VkLayer_utils should be the last link library to ensure mimalloc overrides are picked up correctly. - # Otherwise, libraries after VkLayer_utils will not benefit from this performance improvement. --target_link_libraries(VkLayer_khronos_validation PRIVATE VVL-SPIRV-LIBS VkLayer_utils) -+target_link_libraries(VkLayer_khronos_validation PRIVATE VVL-SPIRV-LIBS VkLayer_utils -lxxhash) - - # There are 2 primary deliverables for the validation layers. - # - The actual library VkLayer_khronos_validation.(dll|so|dylib)