File kmod.diff of Package zfs2111
---
module/Makefile.in | 10 ----------
1 file changed, 10 deletions(-)
Index: zfs-2.1.3/module/Makefile.in
===================================================================
--- zfs-2.1.3.orig/module/Makefile.in
+++ zfs-2.1.3/module/Makefile.in
@@ -84,22 +84,12 @@ modules_install-Linux:
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
KERNELRELEASE=@LINUX_VERSION@
@# Remove extraneous build products when packaging
- kmoddir=$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \
- if [ -n "$(DESTDIR)" ]; then \
- find $$kmoddir -name 'modules.*' -delete; \
- fi
@# Debian ships tiny fake System.map files that are
@# syntactically valid but just say
@# "if you want system.map go install this package"
@# Naturally, depmod is less than amused by this.
@# So if we find it missing or with one of these present,
@# we check for the alternate path for the System.map
- sysmap=$(INSTALL_MOD_PATH)/boot/System.map-@LINUX_VERSION@; \
- { [ -f "$$sysmap" ] && [ $$(wc -l < "$$sysmap") -ge 100 ]; } || \
- sysmap=$(INSTALL_MOD_PATH)/usr/lib/debug/boot/System.map-@LINUX_VERSION@; \
- if [ -f $$sysmap ]; then \
- depmod -ae -F $$sysmap @LINUX_VERSION@; \
- fi
modules_install-FreeBSD:
@# Install the kernel modules