-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux kernel 5.13 + zfs 2.1-release +dkms vs realtime patch #12387
Comments
Does this issue persist with kernel I had similar issues a while back. Now with the RT patches being mainline I am back to technically functioning build that I can't distribute due to licensing issues, see #11097 |
I've just checked for you by doing a quick testbuild - I maintain a kernel repo for Ubuntu systems and build various different "flavours" for pretty much every minor release such as AMD, Intel, etc. I also regularly try to build a RT flavour as well but it very rarely compiles successfully and it it does, DKMS will subsequently fail to build the ZFS modules as you detail in #11097. linux-5.13.3 + patch-5.15.3-rt21.patch + openzfs-2.1.1 gives me the exact same result as you in #11097 (comment). The usual "fix" of editing META to swap CDDL to GPL and rebuilding the DKMS modules also still works of course resulting in something I'm quite happy to use, but not distribute. I note with interest that one of the first respondents to your LKML thread is Oleksandr Natalenko who's excellent pf-kernel patchset actually forms the base for my kernels. My ideal kernel build would actually be pf-kernel + full realtime patch + miscellaneous patches whilst still maintaining DKMS compatibility with the latest ZFS release. I've been building them for years at this point and to date have never managed to get all four of those things working together even once - I'm not holding my breath either. I understand and accept the upstream licensing problems may well never be resolved at this point and have quite frankly stopped caring so I commend you for at least trying to prod that bees nest again. |
Thanks for testing. And yeah, that's what I figured, Ubuntu would eventually suffer from this, too. I was not aware the Ubuntu kernel was this close to master these days though. Sadly my plead on the mailing list seems to have gone nowhere. So sad that we can not have nice things due to some IMO silly licensing mismatch. Hadn't heard of the pf patch set yet. Looks interesting. But so far the rt kernel has been perfectly fine for my live audio needs. |
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
System information
Describe the problem you're observing
DKMS fails to build zfs module against 5.13 realtime kernel.
Describe how to reproduce the problem
1: Build and install a 5.13 realtime kernel:
git clone --depth 1 --branch v5.13 https://github.com/torvalds/linux.git repro
wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.13/patch-5.13-rt1.patch.xz
unxz patch-5.13-rt1.patch.xz
cd repro/
patch -p1 < ../patch-5.13-rt1.patch
[kernel config step - ensure PREEMPT_RT=y]
make -j$(nproc) deb-pkg
2: Build and install a hacked zfs-2.1-release:
DKMS will fail the configuration checks building against vanilla zfs-2.1-release with what looks like a regression of Fix CONFIG_DEBUG_LOCK_ALLOC configure check #10991.
'Fix' this by rebuilding it with the one line edit of META and change CDDL to GPL. Rebuild and install.
3: Attempt DKMS build of 5.13-rt with zfs-2.1-release with modified license:
dkms install -m zfs/2.1.0 -k 5.13-$your-realtime-kernel-name
Include any warning/errors/backtraces from the system logs
Entire /var/lib/dkms/zfs/2.1.0/build/make.log is here.
The important bit is:
The text was updated successfully, but these errors were encountered: