-
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
Longterm fedora kernel depends on different kernel-devel package #16742
Comments
Different circumstances but similar issue reported HERE. I'm using Fedora Linux Asahi Remix 40 (Server Edition) with kernel Linux 6.12.1-404.asahi.fc40.aarch64+16k bare metal on an M1 mac mini. Apple silicon macs use 16k pages so they use kernel-16k-devel instead of kernel-devel. A work around for ZFS 2.2.7-1 is posted HERE. There needs to be a way for the the distro type to be recognized and the appropriate kernel-devel nomenclature to be selected. Or maybe it can be user selected somehow... other than a manual find/replace in various files. |
I'm no fedora user, but reading this: https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html Something like this using boolean operators should in theory work:
|
I don't think all those parenthesis will work... I went with this... The compiler was happier...
Unfortunately I already have 2.2.7 installed and I don't think you can run Asahi Linux in a vm, so I will have to wait for the next zfs release to test this out fully. Thanks for the nudge in what I hope is the right direction. |
Unfortunately I tested the two boolean instructions that were discussed, and I couldn't install either. The only thing that worked was changing kernel-devel to kernel-16k-devel in all the spec files. Everything worked once I did that. I didn't have to do anything else. I don't know. There seems like there is something there with the boolean operation. I just need to figure out the right syntax. niclimcy have you tried going into the "rpm" directory and replacing "kernel-devel" with "kernel-longterm-devel" in all the .spec files? It's clumsy, but I think you may like the result. Try it and let us know. Download the tarball. Open/expand it, and edit the .spec files. Then .configure. Then compile and install. It worked for my 16k page file issue. |
This is not a solution. It will definitely work but not a solution for all red hat systems. |
System information
Describe the problem you're observing
rpm spec.in defines kernel-devel as required package: https://github.com/openzfs/zfs/blob/master/rpm/generic/zfs-dkms.spec.in#L33
However, relying on a longterm kernel package, the kernel-devel package name has a different name, kernel-longterm-devel.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
niclim@fedora ~$ sudo dnf remove kernel-devel Dependencies resolved. =============================================================================================================================================================================== Package Architecture Version Repository Size =============================================================================================================================================================================== Removing: kernel-devel x86_64 6.10.3-200.fc40 @@commandline 71 M kernel-devel x86_64 6.11.6-200.fc40 @updates 75 M Removing dependent packages: zfs x86_64 2.2.6-1.fc40 @@System 1.8 M zfs-dkms noarch 2.2.6-1.fc40 @@System 57 M Transaction Summary =============================================================================================================================================================================== Remove 4 Packages Freed space: 206 M Is this ok [y/N]:
The text was updated successfully, but these errors were encountered: