Latest articles:

Fix for zfs-dkms-git in arch for kernel 5.15.7

aus der Kategorie Misc

Begin

zfs-dkms-git stopped working after upgrading my kernel to version 5.15.7. Unfortunately the patch which is included in the aur system does not work anymore due to a change in the original git repository. Thus a little tweak needs to be put in place to let the patch do its job.
--- a/scripts/dkms.mkconf.orig	2021-12-11 18:46:14.618077255 +0100
+++ b/scripts/dkms.mkconf	2021-12-11 18:51:08.775412641 +0100
@@ -28,22 +28,7 @@
 PRE_BUILD="configure
   --prefix=/usr
   --with-config=kernel
-  --with-linux=\$(
-    case \`lsb_release -is\` in
-      (Debian|Devuan)
-        if [[ -e \${kernel_source_dir/%build/source} ]]
-        then
-          echo \${kernel_source_dir/%build/source}
-        else
-          # A kpkg exception for Proxmox 2.0
-          echo \${kernel_source_dir}
-        fi
-      ;;
-      (*)
-        echo \${kernel_source_dir}
-      ;;
-    esac
-  )
+  --with-linux=\${kernel_source_dir}
   --with-linux-obj=\${kernel_source_dir}
   \$(
     [[ -n \"\${ICP_ROOT}\" ]] && \\
@@ -76,7 +61,7 @@
   -t \${dkms_tree}
 "
 AUTOINSTALL="yes"
-MAKE[0]="make"
+MAKE[0]="make -C module/"
 STRIP[0]="\$(
   [[ -r \${PACKAGE_CONFIG} ]] \\
   && source \${PACKAGE_CONFIG} \\

The above code can replace the original aur patch and the package can be compiled with makepkg -si --skipchecksums

hzgf. am 11. December 2021