Bug#934282: zfs-dkms: fails to install for 5.2.0-2-amd64 due to GPL-only symbol 'alternatives_patched'
I tested this on one of my ZFS testing VMs ('ztest') and can confirm that zfs-dkms 0.8.1 compiles against 5.2.0-2-amd64 when the patch is applied to /var/lib/dkms/zfs/0.8.1/source/include/linux/simd_x86.h ztest:~# dkms status zfs, 0.8.1, 4.19.0-3-amd64, x86_64: installed zfs, 0.8.1, 4.19.0-5-amd64, x86_64: installed zfs, 0.8.1, 5.2.0-2-amd64, x86_64: installed The VM reboots successfuly and the zfs pool is working normally: ztest:~# uname -a Linux ztest 5.2.0-2-amd64 #1 SMP Debian 5.2.7-1 (2019-08-07) x86_64 GNU/Linux ztest:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 0 days 00:00:02 with 0 errors on Sat Aug 10 13:47:04 2019 config: NAMESTATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 virtio-VD-0005 ONLINE 0 0 0 virtio-VD-0006 ONLINE 0 0 0 errors: No known data errors craig -- craig sanders
Bug#934282: zfs-dkms: fails to install for 5.2.0-2-amd64 due to GPL-only symbol 'alternatives_patched'
Package: zfs-dkms Version: 0.8.1-3 Severity: important Tags: patch Dear Maintainer, The module fails to build against 5.2.0-2-amd64 due to use of GPL-only symbol: " Building modules, stage 2. MODPOST 8 modules FATAL: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'alternatives_patched' make[6]: *** [/usr/src/linux-headers-5.2.0-2-common/scripts/Makefile.modpost:91: __modpost] Error 1 " Apparently this is due to the kernel being built with CONFIG_X86_DEBUG_FPU=Y which results in pulling the symbol. Patch fixing this issue is here: https://github.com/zfsonlinux/zfs/commit/095b5412b31c07cad5cec74a4eb5ace011c92b27 -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/12 CPU cores) 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=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages zfs-dkms depends on: ii debconf [debconf-2.0] 1.5.73 ii dkms 2.7.1-2 ii file 1:5.37-5 ii libc6-dev [libc-dev] 2.28-10 ii libpython3-stdlib 3.7.3-1 ii lsb-release10.2019051400 ii perl 5.28.1-6 ii python3-distutils 3.7.4-3 Versions of packages zfs-dkms recommends: ii linux-libc-dev 5.2.7-1 ii zfs-zed 0.8.1-3 ii zfsutils-linux 0.8.1-3 zfs-dkms suggests no packages. -- debconf information: zfs-dkms/stop-build-for-32bit-kernel: true * zfs-dkms/note-incompatible-licenses: zfs-dkms/stop-build-for-unknown-kernel: true