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

2016-09-09 Thread Petter Reinholdtsen
Control: tags -1 + patch

If I understand correctly, this source package patch should make spl-linux build
again with the recent dkms version.

diff --git a/debian/dkms b/debian/dkms
index b349ded..cd477ca 100644
--- a/debian/dkms
+++ b/debian/dkms
@@ -20,7 +20,7 @@ PRE_BUILD="configure
  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



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

2016-09-09 Thread Kai Michael Hamich
Hi Jo,

your change does indeed fix the issue! Thx for the info!

Best,
Kai

Am Freitag, 9. September 2016, 10:40:11 CEST schrieb Jo Blow:
> 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.0 +1000
> +++ usr/src/spl-0.6.5.7/dkms.conf.orig2016-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}/



Bug#836578: spl-dkms: post_install script cause faults

2016-09-08 Thread Jo Blow
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.0 +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}/


Bug#836578: spl-dkms: post_install script cause faults

2016-09-04 Thread Kai Michael Hamich
Package: spl-dkms
Version: 0.6.5.7-1
Severity: important

Dear Maintainer,

as spl-dkms does not build against linux 4.7 i purged linux 4.7 and spl-dkms
and reinstalled the package against Kernel 4.6.

The following two errors are the result:

[...]
Running the post_install script:
cp: der Aufruf von stat für '/var/lib/dkms/spl/0.6.5.7/build/spl_config.h' ist
nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: der Aufruf von stat für
'/var/lib/dkms/spl/0.6.5.7/build/module/Module.symvers' ist nicht möglich:
Datei oder Verzeichnis nicht gefunden

depmod...

DKMS: install completed.
[...]


The spl module is build and installed as expected but i think these errors
cause the zfs-dkms module, build against spl, to fail and getting stuck during
configuration. zfs-dkms does not  build on my machine (it did before without
any issue)




-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages spl-dkms depends on:
ii  dkms  2.2.1.0+git20160527-1
ii  file  1:5.28-4
ii  libc6-dev [libc-dev]  2.24-2
ii  lsb-release   9.20160629

Versions of packages spl-dkms recommends:
ii  spl  0.6.5.999-62-g16fc1ec-sid-daily

spl-dkms suggests no packages.

-- no debconf information