From dfebb8df696e36760d8463d1035a8b479d801ed9 Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Fri, 7 Jul 2023 12:31:35 +0800 Subject: [PATCH] patch(-fbc).sh: Add Debian's Tesla driver to search path Used by: https://packages.debian.org/bookworm/amd64/libnvidia-encode1/filelist https://packages.debian.org/bookworm/amd64/libnvidia-tesla-encode1/filelist https://packages.debian.org/bookworm/amd64/libnvidia-tesla-470-encode1/filelist --- patch-fbc.sh | 2 ++ patch.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/patch-fbc.sh b/patch-fbc.sh index c40d507..eef6805 100755 --- a/patch-fbc.sh +++ b/patch-fbc.sh @@ -368,6 +368,8 @@ patch_common () { declare -a driver_locations=( '/usr/lib/x86_64-linux-gnu' '/usr/lib/x86_64-linux-gnu/nvidia/current/' + '/usr/lib/x86_64-linux-gnu/nvidia/tesla/' + "/usr/lib/x86_64-linux-gnu/nvidia/tesla-${driver_version%%.*}/" '/usr/lib64' '/usr/lib' "/usr/lib/nvidia-${driver_version%%.*}" diff --git a/patch.sh b/patch.sh index f96753c..1741f56 100755 --- a/patch.sh +++ b/patch.sh @@ -444,6 +444,8 @@ patch_common () { declare -a driver_locations=( '/usr/lib/x86_64-linux-gnu' '/usr/lib/x86_64-linux-gnu/nvidia/current/' + '/usr/lib/x86_64-linux-gnu/nvidia/tesla/' + "/usr/lib/x86_64-linux-gnu/nvidia/tesla-${driver_version%%.*}/" '/usr/lib64' '/usr/lib' "/usr/lib/nvidia-${driver_version%%.*}"