From e0c74e5e1559d3b008ed4a790b9f4b7846a71844 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 7 Sep 2023 16:01:34 +0200 Subject: [PATCH] 6.5.y: Hacky attempt at fixing OpenSUSE TW depmod https://github.com/Frogging-Family/linux-tkg/issues/763 --- linux-tkg-patches/6.5/0013-fedora-rpm.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/linux-tkg-patches/6.5/0013-fedora-rpm.patch b/linux-tkg-patches/6.5/0013-fedora-rpm.patch index fe38371..671dd03 100644 --- a/linux-tkg-patches/6.5/0013-fedora-rpm.patch +++ b/linux-tkg-patches/6.5/0013-fedora-rpm.patch @@ -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