Closed Ypnose closed 3 months ago
Maybe we could check for both the kernel headers and the kernel package itself. Building for a given kernel whose headers aren't installed already fails...
Thanks for your help. Actually, if dkms
do not rely on meta-package linux-headers
which will pull latest linux5.xx-headers
, but instead rely on the headers for the latest kernel installed, all problems could be solved. Unfortunately, I do not know how it can be done.
echo ignorepkg=linux-headers > /etc/xbps.d/ignore-latest.conf
and then uninstall linux-headers
Seems to do the trick, thank you.
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
Another solution that has been floated is making all headers and kernels provides=
for the metapackages.
probably solved by #43519
System
Void 5.10.31_1 x86_64 GenuineIntel uptodate rF
Expected behavior
I stick with LTS kernels because it fits my needs. Installing
zfs
will automatically pulldkms
dependency and thereforelinux-headers
meta-package (linux-headers-5.11_1
→linux5.11-headers-5.11.15_1
as of today). Linux5.11
is not installed on my system. Even iflinux5.10-headers
is installed, it will not be "detected" as the required dependendy here (instead oflinux5.11-headers
). It would be good to not install latestlinux5.xx-headers
on a system with LTS only.Actual behavior
linux-headers-5.11_1
meta-package is pulled byxbps
as adkms
dependency. Then, DKMS builds for5.11.x
will be attempted on my system, even if no5.11
kernel is installed :Here's the
xbps
output :On older systems, it takes quite some time for nothing.
Steps to reproduce the behavior
Install
zfs
on systems with LTS kernels only.