Bug#1064671: yuzu: FTBFS: vulkan_wrapper.cpp:285:12: error: enumeration value ‘VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR’ not handled in switch [-Werror=switch]

2024-03-17 Thread Bastian Germann

I am uploading a NMU to fix this.
Please find the debdiff attached.diff -Nru yuzu-0-1335+ds/debian/changelog yuzu-0-1335+ds/debian/changelog
--- yuzu-0-1335+ds/debian/changelog 2023-11-01 22:22:28.0 +
+++ yuzu-0-1335+ds/debian/changelog 2024-03-17 18:37:24.0 +
@@ -1,3 +1,10 @@
+yuzu (0-1335+ds-1.4) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Fix build with current vulkan-headers (Closes: #1064671)
+
+ -- Bastian Germann   Sun, 17 Mar 2024 18:37:24 +
+
 yuzu (0-1335+ds-1.3) unstable; urgency=medium
 
   * Non-maintainer upload
diff -Nru yuzu-0-1335+ds/debian/patches/series 
yuzu-0-1335+ds/debian/patches/series
--- yuzu-0-1335+ds/debian/patches/series2023-11-01 22:22:28.0 
+
+++ yuzu-0-1335+ds/debian/patches/series2024-03-17 18:35:09.0 
+
@@ -1,6 +1,7 @@
 update-savecontext-loadcontext.patch
 update-vulkan-headers.patch
 fixes-for-gcc-13.patch
+vulkan-headers.patch
 # Upstreamable patches
 cmake-mbedtls.patch
 #cmake-microprofile.patch
diff -Nru yuzu-0-1335+ds/debian/patches/vulkan-headers.patch 
yuzu-0-1335+ds/debian/patches/vulkan-headers.patch
--- yuzu-0-1335+ds/debian/patches/vulkan-headers.patch  1970-01-01 
00:00:00.0 +
+++ yuzu-0-1335+ds/debian/patches/vulkan-headers.patch  2024-03-17 
18:34:23.0 +
@@ -0,0 +1,25 @@
+Origin: 
https://gitlab.com/suyu-emu/suyu/-/commit/310834aea2fa3293ec30bad9f5f37ac7b5681b26
+From: Jan Beich 
+Date: Wed, 20 Dec 2023 01:07:26 +0100
+Subject: vulkan_common: unbreak build with Vulkan-Headers 1.3.274
+
+src/video_core/vulkan_common/vulkan_wrapper.cpp:293:13: error: enumeration 
value 'VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR' not handled in switch 
[-Werror,-Wswitch]
+switch (result) {
+^~
+---
+ src/video_core/vulkan_common/vulkan_wrapper.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp 
b/src/video_core/vulkan_common/vulkan_wrapper.cpp
+index 70cf14afa9..2f78b8af08 100644
+--- a/src/video_core/vulkan_common/vulkan_wrapper.cpp
 b/src/video_core/vulkan_common/vulkan_wrapper.cpp
+@@ -377,6 +377,8 @@ const char* ToString(VkResult result) noexcept {
+ return "VK_OPERATION_DEFERRED_KHR";
+ case VkResult::VK_OPERATION_NOT_DEFERRED_KHR:
+ return "VK_OPERATION_NOT_DEFERRED_KHR";
++case VkResult::VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR:
++return "VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR";
+ case VkResult::VK_PIPELINE_COMPILE_REQUIRED_EXT:
+ return "VK_PIPELINE_COMPILE_REQUIRED_EXT";
+ case VkResult::VK_RESULT_MAX_ENUM:


Bug#1064671: yuzu: FTBFS: vulkan_wrapper.cpp:285:12: error: enumeration value ‘VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR’ not handled in switch [-Werror=switch]

2024-02-25 Thread Lucas Nussbaum
Source: yuzu
Version: 0-1335+ds-1.3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240224 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> cd /<>/obj-x86_64-linux-gnu/src/video_core && /usr/bin/c++ 
> -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS 
> -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_DATE_TIME_NO_LIB 
> -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB 
> -DFMT_SHARED -DNDEBUG -DYUZU_UNIX=1 -D_FILE_OFFSET_BITS=64 
> -I/<>/src/. 
> -I/<>/obj-x86_64-linux-gnu/src/video_core/host_shaders/include 
> -I/<>/externals/./microprofile 
> -I/<>/externals/glad/include 
> -I/<>/externals/sirit/src/../include -g -Werror=clobbered 
> -Werror=volatile-register-var 
> -D__DEB_CANARY_CXXFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -march=x86-64-v2 -D__DEB_CANARY_CPPFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -flto=auto 
> -fno-fat-lto-objects -Werror=all -Werror=extra -Werror=missing-declarations 
> -Werror=shadow -Werror=unused -Wno-attributes -Wno-invalid-offsetof 
> -Wno-unused-parameter -mcx16 -fwrapv -Wno-array-bounds -Wno-stringop-overread 
> -Wno-stringop-overflow -Werror=conversion -Wno-sign-conversion -Winvalid-pch 
> -include 
> /<>/obj-x86_64-linux-gnu/src/video_core/CMakeFiles/video_core.dir/cmake_pch.hxx
>  -MD -MT 
> src/video_core/CMakeFiles/video_core.dir/vulkan_common/vulkan_wrapper.cpp.o 
> -MF CMakeFiles/video_core.dir/vulkan_common/vulkan_wrapper.cpp.o.d -o 
> CMakeFiles/video_core.dir/vulkan_common/vulkan_wrapper.cpp.o -c 
> /<>/src/video_core/vulkan_common/vulkan_wrapper.cpp
> /<>/src/video_core/vulkan_common/vulkan_wrapper.cpp: In function 
> ‘const char* Vulkan::vk::ToString(VkResult)’:
> /<>/src/video_core/vulkan_common/vulkan_wrapper.cpp:285:12: 
> error: enumeration value ‘VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR’ not 
> handled in switch [-Werror=switch]
>   285 | switch (result) {
>   |^
> [ 41%] Building CXX object 
> src/video_core/CMakeFiles/video_core.dir/vulkan_common/nsight_aftermath_tracker.cpp.o
> cd /<>/obj-x86_64-linux-gnu/src/video_core && /usr/bin/c++ 
> -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS 
> -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_DATE_TIME_NO_LIB 
> -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB 
> -DFMT_SHARED -DNDEBUG -DYUZU_UNIX=1 -D_FILE_OFFSET_BITS=64 
> -I/<>/src/. 
> -I/<>/obj-x86_64-linux-gnu/src/video_core/host_shaders/include 
> -I/<>/externals/./microprofile 
> -I/<>/externals/glad/include 
> -I/<>/externals/sirit/src/../include -g -Werror=clobbered 
> -Werror=volatile-register-var 
> -D__DEB_CANARY_CXXFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -march=x86-64-v2 -D__DEB_CANARY_CPPFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -flto=auto 
> -fno-fat-lto-objects -Werror=all -Werror=extra -Werror=missing-declarations 
> -Werror=shadow -Werror=unused -Wno-attributes -Wno-invalid-offsetof 
> -Wno-unused-parameter -mcx16 -fwrapv -Wno-array-bounds -Wno-stringop-overread 
> -Wno-stringop-overflow -Werror=conversion -Wno-sign-conversion -Winvalid-pch 
> -include 
> /<>/obj-x86_64-linux-gnu/src/video_core/CMakeFiles/video_core.dir/cmake_pch.hxx
>  -MD -MT 
> src/video_core/CMakeFiles/video_core.dir/vulkan_common/nsight_aftermath_tracker.cpp.o
>  -MF CMakeFiles/video_core.dir/vulkan_common/nsight_aftermath_tracker.cpp.o.d 
> -o CMakeFiles/video_core.dir/vulkan_common/nsight_aftermath_tracker.cpp.o -c 
> /<>/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp
> [ 41%] Building CXX object 
> src/video_core/CMakeFiles/video_core.dir/macro/macro_jit_x64.cpp.o
> cd /<>/obj-x86_64-linux-gnu/src/video_core && /usr/bin/c++ 
> -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS 
> -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_DATE_TIME_NO_LIB 
> -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB 
> -DFMT_SHARED -DNDEBUG -DYUZU_UNIX=1 -D_FILE_OFFSET_BITS=64 
> -I/<>/src/. 
> -I/<>/obj-x86_64-linux-gnu/src/video_core/host_shaders/include 
> -I/<>/externals/./microprofile 
> -I/<>/externals/glad/include 
> -I/<>/externals/sirit/src/../include -g -Werror=clobbered 
> -Werror=volatile-register-var 
> -D__DEB_CANARY_CXXFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -ffile-prefix-map=/<>=. -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
> -march=x86-64-v2 -D__DEB_CANARY_CPPFLAGS_05a70454516ecd9194c293b0e415777f__ 
> -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -f