Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#80151 - [vulkan-headers] 1:1.3.269-1 does not install correctly

Attached to Project: Arch Linux
Opened by Jose (VertigoGo) - Friday, 03 November 2023, 14:56 GMT
Last edited by Toolybird (Toolybird) - Saturday, 04 November 2023, 21:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Attempting to compile a project using "vulkan-headers 1:1.3.269-1" results in a broken project. Downgrading to "vulkan-headers 1:1.3.264-2" cleaning and recompiling makes the same project with no changes work again. I believe that this is the result of a failed installation process. I have gone through the history of the project and believed that the deletion of the file "vulkan_hpp_macros.hpp" might be the issue, however this is likely not the case. My educated guess as to what is happening is line 31 of file PKGBUILD "make DESTDIR="${pkgdir}" install" is incomplete. It seems to me that install should be on its own line and that it is missing a few arguments. However, I am not a package maintainer so I don't know if this is intended and correct or a slight oversight and results in a bug it is only a suggestion. My guess comes from running the command 'pacman -Ql vulkan-headers' on versions 1:1.3.264-2 and 1:1.3.269-1 and comparing the results, it seems that several files are missing from the later version.

Additional info:
package version: vulkan-headers 1:1.3.269-1
I have included a file showing the result of running 'pacman -Ql vulkan-headers' on versions 1:1.3.264-2 and 1:1.3.269-1

Steps to reproduce:
have a working Vulkan project
update to vulkan-headers-1:1.3.269-1
recompile the project
compilation succeeds, however project is broken
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 04 November 2023, 21:02 GMT
Reason for closing:  Not a bug
Additional comments about closing:  "it is an upstream change that is the problem not a packaging issue."
Comment by Antonio Rojas (arojas) - Friday, 03 November 2023, 15:21 GMT
post the output of 'pacman -Qkk vulkan-headers'
Comment by Jose (VertigoGo) - Friday, 03 November 2023, 15:23 GMT
vulkan-headers: 68 total files, 0 altered files
I should mention that this is the downgraded version 1:1.3.264-2
Comment by Antonio Rojas (arojas) - Friday, 03 November 2023, 15:25 GMT
This doesn't match the file list in your attachment
Comment by loqs (loqs) - Friday, 03 November 2023, 15:28 GMT
Please provide a proof on concept project to reproduce the issue and also the current failures that project generates.

The provided "results of pacman -Ql vulkan-headers on version 1:1.3.269-1" does not contain any of the following which are all in that package:

vulkan-headers /usr/include/vulkan/vk_icd.h
vulkan-headers /usr/include/vulkan/vk_layer.h
vulkan-headers /usr/include/vulkan/vk_platform.h
vulkan-headers /usr/include/vulkan/vulkan.cppm
vulkan-headers /usr/include/vulkan/vulkan.h
vulkan-headers /usr/include/vulkan/vulkan.hpp
vulkan-headers /usr/include/vulkan/vulkan_android.h
vulkan-headers /usr/include/vulkan/vulkan_beta.h
vulkan-headers /usr/include/vulkan/vulkan_core.h
vulkan-headers /usr/include/vulkan/vulkan_directfb.h
vulkan-headers /usr/include/vulkan/vulkan_enums.hpp
vulkan-headers /usr/include/vulkan/vulkan_extension_inspection.hpp
vulkan-headers /usr/include/vulkan/vulkan_format_traits.hpp
vulkan-headers /usr/include/vulkan/vulkan_fuchsia.h
vulkan-headers /usr/include/vulkan/vulkan_funcs.hpp
vulkan-headers /usr/include/vulkan/vulkan_ggp.h
vulkan-headers /usr/include/vulkan/vulkan_handles.hpp
vulkan-headers /usr/include/vulkan/vulkan_hash.hpp
vulkan-headers /usr/include/vulkan/vulkan_hpp_macros.hpp
vulkan-headers /usr/include/vulkan/vulkan_ios.h
vulkan-headers /usr/include/vulkan/vulkan_macos.h
Comment by Jose (VertigoGo) - Friday, 03 November 2023, 15:28 GMT
here is the result if I update to 1:1.3.269-1
vulkan-headers: 69 total files, 0 altered files
Comment by Jose (VertigoGo) - Friday, 03 November 2023, 15:40 GMT
loqs that is correct about the missing files, which is why I think there is an installation error. As for a proof of concept project that might take a while as my project is quite large and complicated. However I could rip some pieces out of my current project just to demonstrate the issue, which might still take a while. However Vulkan errors are quite opaque and the only thing I'm told is 'failed to find a suitable GPU!'. Which I initially thought was a driver issue but after some investigation found that it doesn't seem to be. And as I said downgrading to vulkan-headers version 1:1.3.264-2 seems to fix the issue. Likely because all the header files are available, including some macros that my project currently relies on.
Comment by loqs (loqs) - Friday, 03 November 2023, 15:46 GMT
You can still reproduce the issue with vulkan-headers 1:1.3.269-1 now that it has 69 files on your system rather than the 48 listed in vulkan-headers-difference-264-to-269?
Comment by Jose (VertigoGo) - Friday, 03 November 2023, 16:04 GMT
My apologies it seems i made a copy-paste mistake. Here is the correct version of that file. There is only 1 difference however still having issues.
Comment by Antonio Rojas (arojas) - Friday, 03 November 2023, 16:08 GMT
and what exactly is the problem now with that file list?
Comment by Antonio Rojas (arojas) - Friday, 03 November 2023, 16:11 GMT
"a broken project", "still having issues"... we have no evidence whatsoever that indicates a problem with packaging. If you can't provide more precise details, there is nothing we can do here.
Comment by Jose (VertigoGo) - Friday, 03 November 2023, 16:16 GMT
give me some time I'll make a super cut down version of my project just to demonstrate the issue. It could definitely be my issue only, it might be a few files though including a makefile is it ok to post it here, or is there a better way?
Comment by Jose (VertigoGo) - Saturday, 04 November 2023, 20:51 GMT
give me some time I'll make a super cut down version of my project just to demonstrate the issue. It could definitely be my issue only, it might be a few files though including a makefile is it ok to post it here, or is there a better way?
Comment by Jose (VertigoGo) - Saturday, 04 November 2023, 20:59 GMT
OK I have spent several hours looking at patches to the Vulkan headers, followed by debugging my own code. It turns out that a change upstream ended up changing how character arrays are cast into strings and breaking my logic. Sorry for being over eager to report it as a packaging bug, I will be much more cautious in the future.

Loading...