Debian Bug report logs - #836578
spl-dkms: post_install script cause faults

version graph

Package: spl-dkms; Maintainer for spl-dkms is Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>; Source for spl-dkms is src:zfs-linux (PTS, buildd, popcon).

Reported by: Kai Michael Hamich <kmh@hamich.net>

Date: Sun, 4 Sep 2016 08:18:01 UTC

Severity: important

Tags: patch

Merged with 836584

Found in version spl-linux/0.6.5.7-1

Fixed in version spl-linux/0.6.5.8-1

Done: Aron Xu <aron@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, kmh@hamich.net, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#836578; Package spl-dkms. (Sun, 04 Sep 2016 08:18:05 GMT) (full text, mbox, link).


Acknowledgement sent to Kai Michael Hamich <kmh@hamich.net>:
New Bug report received and forwarded. Copy sent to kmh@hamich.net, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Sun, 04 Sep 2016 08:18:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Kai Michael Hamich <kmh@hamich.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: spl-dkms: post_install script cause faults
Date: Sun, 04 Sep 2016 10:16:07 +0200
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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#836578; Package spl-dkms. (Fri, 09 Sep 2016 00:42:05 GMT) (full text, mbox, link).


Acknowledgement sent to Jo Blow <splackid@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Fri, 09 Sep 2016 00:42:06 GMT) (full text, mbox, link).


Message #10 received at 836578@bugs.debian.org (full text, mbox, reply):

From: Jo Blow <splackid@gmail.com>
To: 836578@bugs.debian.org
Subject: spl-dkms: post_install script cause faults
Date: Fri, 9 Sep 2016 10:40:11 +1000
[Message part 1 (text/plain, inline)]
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}/
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#836578; Package spl-dkms. (Fri, 09 Sep 2016 07:15:08 GMT) (full text, mbox, link).


Acknowledgement sent to Kai Michael Hamich <kmh@hamich.net>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Fri, 09 Sep 2016 07:15:08 GMT) (full text, mbox, link).


Message #15 received at 836578@bugs.debian.org (full text, mbox, reply):

From: Kai Michael Hamich <kmh@hamich.net>
To: Jo Blow <splackid@gmail.com>, 836578@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#836578: spl-dkms: post_install script cause faults
Date: Fri, 09 Sep 2016 09:04:24 +0200
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.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}/





Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#836578; Package spl-dkms. (Fri, 09 Sep 2016 07:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Fri, 09 Sep 2016 07:57:03 GMT) (full text, mbox, link).


Message #20 received at 836578@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: Kai Michael Hamich <kmh@hamich.net>, Jo Blow <splackid@gmail.com>, 836578@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#836578: spl-dkms: post_install script cause faults
Date: Fri, 9 Sep 2016 09:52:28 +0200
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



Added tag(s) patch. Request was from Petter Reinholdtsen <pere@hungry.com> to 836578-submit@bugs.debian.org. (Fri, 09 Sep 2016 07:57:04 GMT) (full text, mbox, link).


Merged 836578 836584 Request was from Petter Reinholdtsen <pere@hungry.com> to 836584-submit@bugs.debian.org. (Fri, 09 Sep 2016 12:21:10 GMT) (full text, mbox, link).


Reply sent to Aron Xu <aron@debian.org>:
You have taken responsibility. (Sat, 17 Sep 2016 18:30:16 GMT) (full text, mbox, link).


Notification sent to Kai Michael Hamich <kmh@hamich.net>:
Bug acknowledged by developer. (Sat, 17 Sep 2016 18:30:16 GMT) (full text, mbox, link).


Message #29 received at 836578-close@bugs.debian.org (full text, mbox, reply):

From: Aron Xu <aron@debian.org>
To: 836578-close@bugs.debian.org
Subject: Bug#836578: fixed in spl-linux 0.6.5.8-1
Date: Sat, 17 Sep 2016 18:28:46 +0000
Source: spl-linux
Source-Version: 0.6.5.8-1

We believe that the bug you reported is fixed in the latest version of
spl-linux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 836578@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aron Xu <aron@debian.org> (supplier of updated spl-linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 18 Sep 2016 01:06:04 +0800
Source: spl-linux
Binary: spl-dkms spl
Architecture: source amd64 all
Version: 0.6.5.8-1
Distribution: unstable
Urgency: medium
Maintainer: Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>
Changed-By: Aron Xu <aron@debian.org>
Description:
 spl        - Solaris Porting Layer user-space utilities for Linux
 spl-dkms   - Solaris Porting Layer kernel modules for Linux
Closes: 835992 836578
Changes:
 spl-linux (0.6.5.8-1) unstable; urgency=medium
 .
   [ Petter Reinholdtsen ]
   * Fix invalid command in dkms (Closes: #836578)
 .
   [ Zhou Mo ]
   * control: bump standards version to 3.9.8
 .
   [ Aron Xu ]
   * Imported Upstream version 0.6.5.8 (Closes: #835992)
   * rules: allow parallel building
Checksums-Sha1:
 fea30e140ab50a0a8dc13232c3c5a6bb8cb36e29 1798 spl-linux_0.6.5.8-1.dsc
 903c28d258b269138842946fa675d47bdce2fdba 553270 spl-linux_0.6.5.8.orig.tar.gz
 6fdb915ad1945699ffac396f678d5774e70bba4a 8340 spl-linux_0.6.5.8-1.debian.tar.xz
 8165feb2251f58eb2256e9a0bbfde51d9841b0d3 21896 spl-dbgsym_0.6.5.8-1_amd64.deb
 f6e0bf91d75a1fee2c0ac1817279d43cbfb9e8d2 350128 spl-dkms_0.6.5.8-1_all.deb
 e1341721dde8a5020f1912535c629d57a22a3573 13000 spl_0.6.5.8-1_amd64.deb
Checksums-Sha256:
 208a1527ba1bd1d75b82928ba53793b77bfed799e2fcfe0a3a5197c941ccc46a 1798 spl-linux_0.6.5.8-1.dsc
 2d22117106782222d2b7da88cc657b7b9c44d281b1cc74d60761e52d33ab1155 553270 spl-linux_0.6.5.8.orig.tar.gz
 1d6b44ffe7e28eb7a7823c31e83c14b0e4f45b3d5eaa39be079fcf0ef93e8a71 8340 spl-linux_0.6.5.8-1.debian.tar.xz
 eca643419773f7fc6ff3e116577362f3c2f8df908cc021cd1bb723c156ffc5d8 21896 spl-dbgsym_0.6.5.8-1_amd64.deb
 c9b9b717063952d85f01184cba9f8150c80c6a1ebd77eddc443c269db21bc34d 350128 spl-dkms_0.6.5.8-1_all.deb
 3681390646c4a91784fccfecdf48560f5d855b9dd97993db290d11625537f60b 13000 spl_0.6.5.8-1_amd64.deb
Files:
 63bed57120dc8c59e4f0226770a00cf2 1798 kernel optional spl-linux_0.6.5.8-1.dsc
 54b049cde051d0bd67f3f18ff58113c2 553270 kernel optional spl-linux_0.6.5.8.orig.tar.gz
 35613f5bd9ae226cd1fe83d29d9ab6e2 8340 kernel optional spl-linux_0.6.5.8-1.debian.tar.xz
 ed6ceac98d2df4db6c1882e2e93fd11d 21896 debug extra spl-dbgsym_0.6.5.8-1_amd64.deb
 3a2b70d9cb48f4b269f7d6ec35bb3a02 350128 kernel optional spl-dkms_0.6.5.8-1_all.deb
 adfc271e5069b980112e75e927bff9c2 13000 kernel optional spl_0.6.5.8-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJX3XuvAAoJEPbsVcVkKA0ewr0H/jerXSESmGvgyP+NKuohk5Sj
XUotWkUlr93TxoJAf/k6V//eXFimQE9sg2Cxvnl12e+e0g7EMrTRkW0n9dAcgcGA
lw8+8Dgb30dzZVy52MXBK8Z58rT/o/Tav6ypZLXy4YBzxYYsINzJeHenqlQ1TRCM
E3af+7gabQkrweFBmUoBvn8TBFkQY20+TjElwC1oSEumD/LlHoe0V7mgttCW5dNZ
4FieI6gd1zd38FH6EomGa4CTHK3X1PbOjgTU5SdErEtzBNNAcCi7cdjoHa5VPojv
SQEdD63OcxzVB7+JtDIfOWk2IrLGOMuTNd8+jWQp6pgd9wb6usooVS6ENcJmnHg=
=cUTC
-----END PGP SIGNATURE-----




Reply sent to Aron Xu <aron@debian.org>:
You have taken responsibility. (Sat, 17 Sep 2016 18:30:17 GMT) (full text, mbox, link).


Notification sent to Kai Michael Hamich <kmh@hamich.net>:
Bug acknowledged by developer. (Sat, 17 Sep 2016 18:30:17 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 26 Oct 2016 07:40:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 20:42:32 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.