Conversation
|
Thanks for working on this!
Isn't openSUSE also an rpm-based distro? I mean we're building rpms here. How is rpm not available then? |
|
Also do you think it'd be a disadvantage to always use the /lib/modules method? Would be one less code path to maintain |
AFAIK
from what I've noticed, the |
|
Updated to use the /lib/modules method regardless. |
Without knowing more about it (or checking), Fedora is also using dnf as user-facing tool, similar to openSUSE's zypper. But again, I'm not very familiar with these distros :)
Doesn't seem to fail quietly for me? Of course we could add a |
|
I don't think adding EDIT: turns out EDIT EDIT: alternatively we could switch to using |
|
For akmod see openrazer/openrazer#1747, I don't know much about that either but I don't think we can use just that in the short-term. |
|
Valid, I don't know much here either ^^' I myself use Arch, and I just am reporting issues for friends who switched from Windows as they're not yet used to the whole issue reporting cycle. Always glad to help, but this is for a distro and software I myself don't use :P I do think the current state of this PR should be fine on most systems, however. It will complain about missing headers for dirs that don't contain sources, yes, but it will also install correctly for every other kernel, making the error mostly ignorable for most users. |
I don't think this would change anything there. Just for the post install script it would not fail completely with that, not sure what rpm does if a post-install script exits with exit code 1... And |
|
how do we want to go ahead with this 😅 |
|
The changes actually look okay, I'm just also wondering a bit on how many systems this will break due to random leftover directories in /lib/modules from old kernel versions that don't have any headers installed anymore. That might be fixed by using some equivalent of Essentially the main point of the issue is, the post install script builds dkms against the currently running kernel, not against the kernel that is already upgraded and will run on the next reboot. I believe several RPM-based distros also have can have multiple kernel versions installed at the same time and you can pick during bootup so this might actually be a good idea to build against all of them. |
As mentioned on openrazer/openrazer#2177
Makes the post transaction hook use rpm to get kernel versions if rpm is available (like on fedora based distros) and falls back to reading dir names in /lib/modules to get the appropriate kernel version string if rpm is not available (like on openSUSE based distros)