Skip to content
Snippets Groups Projects
Commit 73964aa2 authored by Simon McVittie's avatar Simon McVittie
Browse files

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: default avatarSimon McVittie <smcv@collabora.com>
parent c4b77055
No related branches found
No related tags found
1 merge request!764pv-adverb: Create the intended symlinks for VDPAU drivers
Pipeline #106514 passed
...@@ -326,7 +326,7 @@ pv_adverb_set_up_overrides (FlatpakBwrap *wrapped_command, ...@@ -326,7 +326,7 @@ pv_adverb_set_up_overrides (FlatpakBwrap *wrapped_command,
{ {
const char *multiarch_tuple = pv_multiarch_details[abi].tuple; const char *multiarch_tuple = pv_multiarch_details[abi].tuple;
gchar *abi_path = g_build_filename (lib_temp_dirs->abi_paths[abi], "vdpau", NULL); 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)) if (!g_file_test (target, G_FILE_TEST_IS_DIR))
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment