--- module/Makefile.in | 9 --------- 1 file changed, 9 deletions(-) Index: zfs-2.2.0/module/Makefile.in =================================================================== --- zfs-2.2.0.orig/module/Makefile.in +++ zfs-2.2.0/module/Makefile.in @@ -90,21 +90,12 @@ modules_install-Linux: modules_uninstall INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \ KERNELRELEASE=@LINUX_VERSION@ @# Remove extraneous build products when packaging - 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