40 lines
1.1 KiB
Diff
40 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
|
|
|
|
--- a/scripts/dkms.mkconf 2020-05-05 12:56:14.424687887 -0400
|
|
+++ b/scripts/dkms.mkconf 2020-08-12 10:20:16.673372895 -0400
|
|
@@ -25,22 +25,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}\" ]] && \\
|
|
@@ -74,7 +59,7 @@
|
|
"
|
|
AUTOINSTALL="yes"
|
|
REMAKE_INITRD="no"
|
|
-MAKE[0]="make"
|
|
+MAKE[0]="make -C module/"
|
|
STRIP[0]="\$(
|
|
[[ -r \${PACKAGE_CONFIG} ]] \\
|
|
&& source \${PACKAGE_CONFIG} \\
|