[Pkg-dkms-maint] [Pkg-zfsonlinux-devel] Bug#838706: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8

Petter Reinholdtsen pere at hungry.com
Sat Sep 24 05:20:58 UTC 2016


Hi, and thank you for bringing up this issue.

[Rich]
> I tried building and installing the new spl-dkms from testing/unstable on my
> Jessie system, which built fine, and reportedly installed fine.
>
> Unfortunately, the fix for #836578 breaks the package for DKMS < 2.2.1.0,
> resulting in an apparently successful install, but the zfs-dkms package will
> spin forever waiting for .../module/spl_config.h to exist.
>
> Please either include a workaround for DKMS < 2.2.1.0 (I'd offer one but I
> don't know enough about how these systems function to guess how it might
> work) or mark the package as requiring DKMS > 2.2.1.0.

I expected the small change applied to fix
<URL: https://bugs.debian.org/836578 > to work also on older dkms
versions, but I do not really know the inner workings of dkms.

Perhaps one of the dkms maintainers can explain how the following patch
can be made to work with both new and old dkms versions?

--- usr/src/spl-0.6.5.7/dkms.conf	2016-05-25 15:42:03.000000000 +1000
+++ usr/src/spl-0.6.5.7/dkms.conf.orig	2016-09-09 10:37:43.482388086 +1000
@@ -20,7 +20,7 @@
                  esac)
   --with-linux-obj=${kernel_source_dir}
 "
-POST_INSTALL="cp
+POST_BUILD="cp
   ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/spl_config.h
   ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/module/Module.symvers
   ${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/${kernelver}/${arch}/
-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-dkms-maint mailing list