From 73964aa2845c3919e8675c35a7184930adc7ead0 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 29 Oct 2024 20:49:06 +0000 Subject: [PATCH] pv-adverb: Create the intended symlinks for VDPAU drivers We can only add one directory to the search path for VDPAU drivers, so to support both 32- and 64-bit, we have to multiplex via ld.so dynamic string tokens like `${PLATFORM}`. Unfortunately, we were creating symbolic links pointing to paths like /overrides/x86_64-linux-gnu/vdpau (no "lib" infix) rather than the correct /overrides/lib/x86_64-linux-gnu/vdpau, so the VDPAU driver would not actually have been found. Fixes: 4f3d2d4b "pv-runtime: Delegate setup of VDPAU to pv-adverb" Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel/per-arch-dirs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pressure-vessel/per-arch-dirs.c b/pressure-vessel/per-arch-dirs.c index 5e7bb814f..d1547308e 100644 --- a/pressure-vessel/per-arch-dirs.c +++ b/pressure-vessel/per-arch-dirs.c @@ -326,7 +326,7 @@ pv_adverb_set_up_overrides (FlatpakBwrap *wrapped_command, { const char *multiarch_tuple = pv_multiarch_details[abi].tuple; gchar *abi_path = g_build_filename (lib_temp_dirs->abi_paths[abi], "vdpau", NULL); - gchar *target = g_build_filename (overrides, multiarch_tuple, "vdpau", NULL); + gchar *target = g_build_filename (overrides, "lib", multiarch_tuple, "vdpau", NULL); if (!g_file_test (target, G_FILE_TEST_IS_DIR)) continue; -- GitLab