[Pkg-zfsonlinux-devel] Bug#836578: spl-dkms: post_install script cause faults

Jo Blow splackid at gmail.com
Fri Sep 9 00:40:11 UTC 2016


I also encountered this bug.

I think this might be due to the new behavior in dkms 2.2.1.0 which seems
to remove the build directory.

The postinstall script set in dkms.conf tries to copy files from the build
directory which does not exist.

Changing the phase that the copy occurs in seems to fix it.


--- 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}/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-zfsonlinux-devel/attachments/20160909/dd5f725c/attachment.html>


More information about the Pkg-zfsonlinux-devel mailing list