From 8123ba6e0804ca93760b20637a315491547a3f59 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 27 Jun 2023 13:09:11 -0300 Subject: [PATCH] Jenkins: Add libvulkan symlink workaround --- .ci/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/build.sh b/.ci/build.sh index e425cc65a..78bef4d44 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -995,6 +995,15 @@ else mv cmake/flags-gcc.cmake.old cmake/flags-gcc.cmake + # We rely on the host to provide Vulkan libs to sidestep any potential + # dependency issues. While Qt expects libvulkan.so, at least Debian only + # ships libvulkan.so.1 without a symlink, so make our own as a workaround. + # The relative paths prevent appimage-builder from flattening the links. + mkdir -p "archive_tmp/usr/lib/$arch_triplet" + relroot="../../../../../../../../../../../../../../../../../../../../../../../../../../../../.." + ln -s "$relroot/usr/lib/libvulkan.so.1" "archive_tmp/usr/lib/libvulkan.so" + ln -s "$relroot/usr/lib/$arch_triplet/libvulkan.so.1" "archive_tmp/usr/lib/$arch_triplet/libvulkan.so" + # Archive Discord Game SDK library. 7z e -y -o"archive_tmp/usr/lib" "$discord_zip" "lib/$arch_discord/discord_game_sdk.so" [ ! -e "archive_tmp/usr/lib/discord_game_sdk.so" ] && echo [!] No Discord Game SDK for architecture [$arch_discord]