Skip to content

Commit 4d4b41f

Browse files
committed
Add libvdpau.so.2 to mangled libs
1 parent a7c262b commit 4d4b41f

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

installer/mangle-hw-libs.sh

+21-12
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,29 @@ __EOM__
2020
# We take one argument, the path in which to look for target libraries
2121
if [ -d "$1" ]; then
2222
hw_lib_dir="$1"
23+
else
24+
usage && exit -1
2325
fi
2426

27+
fix_va_lib()
28+
{
29+
lname="$1"
30+
echo -n "Looking for ${lname}..."
31+
hwlib="${hw_lib_dir}/${lname}"
32+
if [ -w "${hwlib}" ]; then
33+
echo -n " found, processing..."
34+
# /usr/lib/x86_64-linux-gnu/dri => ./../lib/x86_64-linux-gnu/dri
35+
sed -i -e 's,/usr\(/lib/x86_64-linux-gnu/dri\),\./\.\.\1,g' "${hwlib}"
36+
echo " done."
37+
else
38+
echo " NOT found, skipping."
39+
fi
40+
}
41+
42+
for libname in "libva.so.1" "libva.so.2"; do
43+
fix_va_lib $libname;
44+
done
45+
2546
echo -n "Looking for libvdpau.so.1..."
2647
hwlib="${hw_lib_dir}/libvdpau.so.1"
2748
if [ -w "${hwlib}" ]; then
@@ -37,16 +58,4 @@ else
3758
echo " NOT found, skipping."
3859
fi
3960

40-
echo -n "Looking for libva.so.1..."
41-
hwlib="${hw_lib_dir}/libva.so.1"
42-
if [ -w "${hwlib}" ]; then
43-
echo -n " found, processing..."
44-
# /usr/lib/x86_64-linux-gnu/dri => ./../lib/x86_64-linux-gnu/dri
45-
sed -i -e 's,/usr\(/lib/x86_64-linux-gnu/dri\),\./\.\.\1,g' "${hwlib}"
46-
echo " done."
47-
else
48-
echo " NOT found, skipping."
49-
fi
50-
5161
exit 0
52-

0 commit comments

Comments
 (0)