6.5.y: Hacky attempt at fixing OpenSUSE TW depmod

https://github.com/Frogging-Family/linux-tkg/issues/763
This commit is contained in:
Tk-Glitch
2023-09-07 16:01:34 +02:00
parent 97c1bf4ce2
commit e0c74e5e15

View File

@@ -37,3 +37,17 @@ index 8049f0e2c..de170760d 100755
+$S %define _build_id_links none
+$S
$S %prep
diff --git a/scripts/depmod.sh b/scripts/depmod.sh
--- a/scripts/depmod.sh
+++ b/scripts/depmod.sh
@@ -27,7 +27,8 @@ fi
# numbers, so we cheat with a symlink here
depmod_hack_needed=true
tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
-mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
+mkdir -p "$tmp_dir/usr/lib/modules/$KERNELRELEASE"
+ln -s usr/lib "$tmp_dir/lib"
if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then
if test -e "$tmp_dir/lib/modules/$KERNELRELEASE/modules.dep" -o \
-e "$tmp_dir/lib/modules/$KERNELRELEASE/modules.dep.bin"; then