void-packages/srcpkgs/zfs/patches/dkms.patch
Andrew J. Hesford 529a114324 zfs: update to 2.0.2.
Closes: #28423.
2021-02-04 23:05:29 -05:00

39 lines
1.1 KiB
Diff

# Patch from https://aur.archlinux.org/packages/zfs-dkms/
# Avoids recompiling ZFS userland utilities with DKMS rebuilds
# Also short-circuits a useless test for Debian in the DKMS source
--- scripts/dkms.mkconf 2021-01-19 19:19:08.000000000 -0500
+++ scripts/dkms.mkconf 2021-02-02 19:03:02.045984881 -0500
@@ -26,22 +26,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}\" ]] && \\
@@ -75,7 +60,7 @@
"
AUTOINSTALL="yes"
REMAKE_INITRD="no"
-MAKE[0]="make"
+MAKE[0]="make -C module/"
STRIP[0]="\$(
[[ -r \${PACKAGE_CONFIG} ]] \\
&& source \${PACKAGE_CONFIG} \\