[Pkg-zfsonlinux-devel] Bug#921305: zfs-dkms: fails to upgrade from stretch

Andreas Beckmann anbe at debian.org
Mon Feb 4 02:47:36 GMT 2019


Package: zfs-dkms
Version: 0.7.12-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'stretch'.
It installed fine in 'stretch', then the upgrade to 'buster' fails.

The problem is the order chosen by apt to process the packages.

* the new spl-dkms gets configured and builds modules for the stretch kernel
* the new zfs-dkms gets unpacked
* the buster kernel headers get unpacked
* the new zfs-dkms gets configured and attempts to build a module for the
  buster kernel
* this fails due to a missing spl-dkms build for the buster kernel
* the buster kernel headers get configured

>From the attached log (scroll to the bottom...):

[...]
 Setting up spl-dkms (0.7.12-1) ...
  Loading new spl-0.7.12 DKMS files...
  It is likely that 4.13.2 belongs to a chroot's host
  Building for 4.9.0-8-amd64
  Building initial module for 4.9.0-8-amd64
  Done.
[...]
  DKMS: install completed.
[...]
  Preparing to unpack .../zfs-dkms_0.7.12-2_all.deb ...
  
  -------- Uninstall Beginning --------
  Module:  zfs
  Version: 0.6.5.9
  Kernel:  4.9.0-8-amd64 (x86_64)
  -------------------------------------
  
  Status: Before uninstall, this module version was ACTIVE on this kernel.
[...]
  DKMS: uninstall completed.
  
  ------------------------------
  Deleting module version: 0.6.5.9
  completely from the DKMS tree.
  ------------------------------
  Done.
  Unpacking zfs-dkms (0.7.12-2) over (0.6.5.9-5) ...
[...]
  Selecting previously unselected package linux-compiler-gcc-8-x86.
  Preparing to unpack .../4-linux-compiler-gcc-8-x86_4.19.12-1_amd64.deb ...
  Unpacking linux-compiler-gcc-8-x86 (4.19.12-1) ...
  Selecting previously unselected package linux-headers-4.19.0-1-common.
  Preparing to unpack .../5-linux-headers-4.19.0-1-common_4.19.12-1_all.deb ...
  Unpacking linux-headers-4.19.0-1-common (4.19.12-1) ...
  Selecting previously unselected package linux-kbuild-4.19.
  Preparing to unpack .../6-linux-kbuild-4.19_4.19.12-1_amd64.deb ...
  Unpacking linux-kbuild-4.19 (4.19.12-1) ...
  Selecting previously unselected package linux-headers-4.19.0-1-amd64.
  Preparing to unpack .../7-linux-headers-4.19.0-1-amd64_4.19.12-1_amd64.deb ...
  Unpacking linux-headers-4.19.0-1-amd64 (4.19.12-1) ...
  Preparing to unpack .../8-linux-headers-amd64_4.19+101_amd64.deb ...
  Unpacking linux-headers-amd64 (4.19+101) over (4.9+80+deb9u6) ...
[...]
  Setting up linux-headers-4.19.0-1-common (4.19.12-1) ...
  Setting up libcomerr2:amd64 (1.44.5-1) ...
  Setting up zfs-dkms (0.7.12-2) ...
  Loading new zfs-0.7.12 DKMS files...
  It is likely that 4.13.2 belongs to a chroot's host
  Building for 4.19.0-1-amd64 and 4.9.0-8-amd64
  Building initial module for 4.19.0-1-amd64
  configure: error: 
        *** Please make sure the kmod spl devel <kernel> package for your
        *** distribution is installed then try again.  If that fails you
        *** can specify the location of the spl objects with the
        *** '--with-spl-obj=PATH' option.  Failed to find spl_config.h in
        *** any of the following:
        /usr/src/spl-0.7.12/4.19.0-1-amd64
        /usr/src/spl-0.7.12
  Error! Bad return status for module build on kernel: 4.19.0-1-amd64 (x86_64)
  Consult /var/lib/dkms/zfs/0.7.12/build/make.log for more information.
  dpkg: error processing package zfs-dkms (--configure):
   installed zfs-dkms package post-installation script subprocess returned error exit status 10
[...]
  Setting up linux-headers-4.19.0-1-amd64 (4.19.12-1) ...
[...]


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zfs-dkms_0.7.12-2.log.gz
Type: application/gzip
Size: 47209 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-zfsonlinux-devel/attachments/20190204/c2f53f41/attachment.gz>


More information about the Pkg-zfsonlinux-devel mailing list