Debian Bug report logs - #838706
spl-dkms should require dkms > 2.2.0 as of 0.6.5.8

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: Rich <rercola@acm.jhu.edu>

Date: Fri, 23 Sep 2016 18:54:02 UTC

Severity: normal

Tags: patch

Found in version spl-linux/0.6.5.8-1

Fixed in version 0.6.5.8-2

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, rercola@acm.jhu.edu, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#838706; Package spl-dkms. (Fri, 23 Sep 2016 18:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to Rich <rercola@acm.jhu.edu>:
New Bug report received and forwarded. Copy sent to rercola@acm.jhu.edu, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Fri, 23 Sep 2016 18:54:05 GMT) (full text, mbox, link).


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

From: Rich <rercola@acm.jhu.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8
Date: Fri, 23 Sep 2016 14:52:00 -0400
Package: spl-dkms
Version: 0.6.5.8-1
Severity: normal

Dear Maintainer,

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.

-- System Information:
Debian Release: 8.5
  APT prefers stable
  APT policy: (1000, 'stable'), (900, 'testing'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-0.bpo.2-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.0.3-2
ii  file                  1:5.22+15-2+deb8u1
ii  libc6-dev [libc-dev]  2.19-18+deb8u4
ii  lsb-release           4.1+Debian13+nmu1

Versions of packages spl-dkms recommends:
ii  spl  0.6.5.8-1

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#838706; Package spl-dkms. (Sat, 24 Sep 2016 05:24:02 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>. (Sat, 24 Sep 2016 05:24:02 GMT) (full text, mbox, link).


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

From: Petter Reinholdtsen <pere@hungry.com>
To: Rich <rercola@acm.jhu.edu>, 838706@bugs.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Subject: Re: [Pkg-zfsonlinux-devel] Bug#838706: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8
Date: Sat, 24 Sep 2016 07:20:58 +0200
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



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


Acknowledgement sent to Rich <rercola@acm.jhu.edu>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Sat, 24 Sep 2016 07:30:06 GMT) (full text, mbox, link).


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

From: Rich <rercola@acm.jhu.edu>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: 838706@bugs.debian.org, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Subject: Re: [Pkg-zfsonlinux-devel] Bug#838706: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8
Date: Sat, 24 Sep 2016 03:22:47 -0400
[Message part 1 (text/plain, inline)]
If the issue is that only POST_INSTALL runs on DKMS < 2.2.1 and both run on
DKMS >= 2.2.1, couldn't we modify POST_INSTALL to include an existence
check for the build dir before attempting the cp, and then include both
POST_INSTALL and POST_BUILD steps?

That way, the POST_INSTALL step will silently bail on DKMS >= 2.2.1
(because the existence check for
${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build
would fail), and POST_BUILD would copy the files over, while on DKMS <
2.2.1, POST_INSTALL would happily succeed?

Something like

POST_INSTALL="if [ -d \"${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build\"
]; then cp ...;fi"
POST_BUILD="cp ..."

?

- Rich

On Sat, Sep 24, 2016 at 1:20 AM, Petter Reinholdtsen <pere@hungry.com>
wrote:

>
> 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
>
[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#838706; Package spl-dkms. (Tue, 04 Oct 2016 21:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bernhard Schmidt <berni@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Tue, 04 Oct 2016 21:21:04 GMT) (full text, mbox, link).


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

From: Bernhard Schmidt <berni@debian.org>
To: Rich <rercola@acm.jhu.edu>, 838706@bugs.debian.org
Cc: Petter Reinholdtsen <pere@hungry.com>, Al Nikolov <clown@debian.org>, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Subject: Re: Bug#838706: [Pkg-zfsonlinux-devel] Bug#838706: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8
Date: Tue, 4 Oct 2016 23:18:18 +0200
[Message part 1 (text/plain, inline)]
Hi,

I just hit the very same problem with spl-linux from bpo on a Jessie
system (with dkms 2.2.0.3-2). 

It builds fine with dkms 2.2.0.3-4~bpo8+1. I assume this could be
changed by this (in 2.2.0.3-3)

  [ Aron Xu ]
  * Added patches from Darik Horn and Ubuntu:
    - Correct handling of POST_BUILD (Closes: #704989)

Obviously I have no clue of dkms, but in my test it fixed the issue.

If this is correct I'd suggest to raise the versioned dependency for
dkms on spl-dkms and zfs-dkms to (>= 2.2.0.3-3~), which should be a
no-op in sid and will just pull in dkms from jessie-backports on systems
installing ZFS from jessie-backports.

Alternatively this change could be done only for the backported package
(Ccing Al for his input here)

Bernhard
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#838706; Package spl-dkms. (Wed, 05 Oct 2016 11:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Al Nikolov <clown@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>. (Wed, 05 Oct 2016 11:45:03 GMT) (full text, mbox, link).


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

From: Al Nikolov <clown@debian.org>
To: Bernhard Schmidt <berni@debian.org>
Cc: Rich <rercola@acm.jhu.edu>, 838706@bugs.debian.org, Petter Reinholdtsen <pere@hungry.com>, Dynamic Kernel Modules Support Team <pkg-dkms-maint@lists.alioth.debian.org>
Subject: Re: Bug#838706: [Pkg-zfsonlinux-devel] Bug#838706: spl-dkms should require dkms > 2.2.0 as of 0.6.5.8
Date: Wed, 05 Oct 2016 14:17:09 +0300
[Message part 1 (text/plain, inline)]
Control: tags -1 + patch

В Вт, 04/10/2016 в 23:18 +0200, Bernhard Schmidt пишет:

> I just hit the very same problem with spl-linux from bpo on a Jessie
> system (with dkms 2.2.0.3-2). 

Please, be aware, that I uploaded spl-linux 0.6.5.8-2~bpo8+2 with the
old dkms compatibility restored (should still be working with the new
one, as well).

I don't know shall I close this bug though.

[signature.asc (application/pgp-signature, inline)]

Added tag(s) patch. Request was from Al Nikolov <clown@debian.org> to 838706-submit@bugs.debian.org. (Wed, 05 Oct 2016 11:45:03 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Aron Xu <aron@debian.org> to control@bugs.debian.org. (Fri, 21 Oct 2016 14:15:03 GMT) (full text, mbox, link).


Reply sent to Aron Xu <aron@debian.org>:
You have taken responsibility. (Tue, 17 Jan 2017 14:51:06 GMT) (full text, mbox, link).


Notification sent to Rich <rercola@acm.jhu.edu>:
Bug acknowledged by developer. (Tue, 17 Jan 2017 14:51:06 GMT) (full text, mbox, link).


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

From: Aron Xu <aron@debian.org>
To: 838706-close@bugs.debian.org
Date: Tue, 17 Jan 2017 22:46:06 +0800
Source-Version: 0.6.5.8-2

This should be fixed in 0.6.5.8-2.

Regards,
Aron



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 15 Feb 2017 07:25:02 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:36:25 2023; Machine Name: bembo

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.