Subject: bug#702: zfs-dkms: Unable to build zfs with rt kernel

From: Thomas Groman <[email-masked]>
Date: Mon, 15 Aug 2022 03:03:42 -0700

Package: zfs-dkms
Version: 2.1.5-1~bpo11+1
Severity: normal

Dear Maintainer,

I was trying to install a realtime kernel to hopefully fix some pipewire issues but 
could not because zfs-dkms, which I use for my root filesystem fails to build the 
module with the following error:
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.18.0-0.bpo.1-rt-amd64:Error!  The /var/lib/dkms/zfs/2.1.5/5.18.0-0.bpo.1-rt-amd64/x86_64/dkms.conf for module zfs includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.

I tried installing the stable rt kernel and the backported rt kernel. Both 
have the same problem.
This means that people dealing with audio on debian based systems can not 
use ZFS. I expected to be able to install a rt kernel with zfs no problem.

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
Architecture: x86_64

Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages zfs-dkms depends on:
ii  debconf [debconf-2.0]  1.5.77
ii  dkms                   2.8.4-3
ii  file                   1:5.39-3
ii  libc6-dev [libc-dev]   2.31-13+deb11u3
ii  libpython3-stdlib      3.9.2-3
ii  lsb-release            11.1.0
ii  perl                   5.32.1-4+deb11u2
ii  python3-distutils      3.9.2-1

Versions of packages zfs-dkms recommends:
ii  linux-libc-dev  5.10.127-1
ii  zfs-zed         2.1.5-1~bpo11+1
ii  zfsutils-linux  2.1.5-1~bpo11+1

Versions of packages zfs-dkms suggests:
ii  debhelper  13.3.4

-- debconf information:
  zfs-dkms/stop-build-for-32bit-kernel: true
  zfs-dkms/stop-build-for-unknown-kernel: true
* zfs-dkms/note-incompatible-licenses:

---

From: Mark Hindley <[email-masked]>
Date: Mon, 15 Aug 2022 12:59:16 +0100

Control: tags -1 debian

Thomas,

Thanks for this.

> Severity: normal

Devuan does not fork zfs-dkms and we use Debian's packages directly without
recompilation. Therefore, this issue should be directly to Debian's BTS to be
addressed. Indeed, a similar (but not identical) bug already exists there[1].

Thanks

Mark

[1]  https://bugs.debian.org/981212