Package: zfs-linux Version: 0.7.6-1 Severity: normal Tags: patch --- Please enter the report below this line. ---
0.7.7 [1] adds official support for Linux 4.16, in addition to addressing several longstanding issues. Packaging it ahead of Debian release of 4.16 would ease the transition for users. The new release adds a file enum-extract.pl that must be installed alongside the DKMS source. The attached patch works for DKMS builds (though I have not tested any other kernel module build styles). [1] https://github.com/zfsonlinux/zfs/releases
commit 0ae71a1b149a1589c766270391e160781a916ff7 Author: Antonio Russo <antonio.e.ru...@gmail.com> Date: Sun Feb 25 21:18:10 2018 -0500 Install enum-extract.pl with dkms diff --git a/debian/not-installed b/debian/not-installed index f54fe731..a008985c 100644 --- a/debian/not-installed +++ b/debian/not-installed @@ -1,3 +1,4 @@ +usr/share/zfs/enum-extract.pl usr/share/zfs/zfs-helpers.sh etc/init.d etc/sudoers.d diff --git a/debian/rules b/debian/rules index cc47a74a..f74e18de 100755 --- a/debian/rules +++ b/debian/rules @@ -80,7 +80,8 @@ override_dh_auto_install: @# Install the DKMS source. @# We only want the files needed to build the modules - mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)' + mkdir -p '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/scripts' + cp '$(CURDIR)/scripts/enum-extract.pl' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)/scripts' $(foreach file,$(DKMSFILES),mv '$(CURDIR)/$(NAME)-$(DEB_VERSION_UPSTREAM)/$(file)' '$(CURDIR)/debian/tmp/usr/src/$(NAME)-$(DEB_VERSION_UPSTREAM)' || exit 1;) @# Hellish awk line: @# * Deletes from configure.ac the parts not needed for building the kernel module