New comment by JamiKettunen on void-packages repository https://github.com/void-linux/void-packages/pull/40747#issuecomment-1326922601 Comment: I tested locally and the [`vkcube` cross-build patch applies fine against `Vulkan-Tools` here](https://github.com/KhronosGroup/Vulkan-Tools/commit/e8234991418c5b0536e342bc849d5f8ed9eb6d6f) with `vkcube` and friends appearing in the package, would you mind including it already? Would be great to have this on non-x86 arches :) Additionally building of `vkcube` has to be enabled for all arches with the following diff: ```diff --- a/srcpkgs/Vulkan-Tools/template +++ b/srcpkgs/Vulkan-Tools/template @@ -3,9 +3,10 @@ pkgname=Vulkan-Tools version=1.3.231.1 revision=1 build_style=cmake -configure_args="-DGLSLANG_INSTALL_DIR=/usr -DBUILD_CUBE=$(vopt_if cube ON OFF) +build_helper="qemu" +configure_args="-DGLSLANG_INSTALL_DIR=/usr -DVULKAN_HEADERS_INSTALL_DIR=${XBPS_CROSS_BASE}/usr -Wno-dev" -hostmakedepends="python3 pkg-config $(vopt_if cube glslang)" +hostmakedepends="python3 pkg-config glslang" makedepends="Vulkan-Headers vulkan-loader libxcb-devel libxkbcommon-devel wayland-devel wayland-protocols libXrandr-devel" short_desc="Official Vulkan tools and utilities" @@ -14,10 +15,3 @@ license="Apache-2.0" homepage="https://www.khronos.org/vulkan/" distfiles="https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-${version}.tar.gz" checksum=0388207fdc0986ed8e03092a16d76913c7189d87a0d71eff4a914942b16b552a - -build_options="cube" -desc_option_cube="Build cube vulkan demo" - -if [ -z "$CROSS_BUILD" ]; then - build_options_default="cube" -fi ``` QEMU build helper is here to "fix": ``` [1/19] Generating xdg-shell protocol header FAILED: cube/xdg-shell-client-header.h /builddir/Vulkan-Tools-1.3.231.1/build/cube/xdg-shell-client-header.h cd /builddir/Vulkan-Tools-1.3.231.1/build/cube && /usr/aarch64-linux-musl/usr/bin/wayland-scanner client-header /usr/aarch64-linux-musl/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml /builddir/Vulkan-Tools-1.3.231.1/build/cube/xdg-shell-client-header.h qemu-aarch64-static: Could not open '/lib/ld-musl-aarch64.so.1': No such file or directory ... ``` `wayland-scanner` (from `wayland-devel`, adding it to `hostmakedepends` doesn't change anything) could probably be used from host instead of target right? so patching it and upstreaming the fix shouldn't be too bad (probably), didn't look into it though.