You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
header packages fail to install /usr/lib/modules/$KVER, dkms unusable #194
The kernel header packages produced from this project are missing several files and folder compared to what is contained in the official Debian kernel header packages. One example is /usr/lib/modules/$KVER that is used by DKMS to find kernels to build against.
Since this folder is not installed by the headers package, dkms does not see the kernel headers after installing them and this prevents dkms to build modules against the produced kernels.
# dpkg-query -S /usr/lib/modules/6.12.117+deb13-arm64/
linux-image-6.12.117+deb13-arm64, linux-headers-6.12.117+deb13-arm64: /usr/lib/modules/6.12.117+deb13-arm64
# dpkg -L linux-headers-7.3.0+qcom-7.3-20261118-g808b7899155b | grep "lib/modules"
# dpkg -L linux-headers-6.12.117+deb13-arm64 | grep "lib/modules"
/usr/lib/modules
/usr/lib/modules/6.12.117+deb13-arm64
/usr/lib/modules/6.12.117+deb13-arm64/build
/usr/lib/modules/6.12.117+deb13-arm64/source
# dkms build kgsl/2.0.1 -k 7.3.0+qcom-7.3-20261118-g808b7899155b
Error! Your kernel headers for kernel 7.3.0+qcom-7.3-20261118-g808b7899155b cannot be found at /lib/modules/7.3.0+qcom-7.3-20261118-g808b7899155b/build or /lib/modules/7.3.0+qcom-7.3-20261118-g808b7899155b/source.
Please install the linux-headers-7.3.0+qcom-7.3-20261118-g808b7899155b package or use the --kernelsourcedir option to tell DKMS where it's located.
Yep. Reproduced on trixie with linux-headers-7.3.0+qcom-7.3-20261118-g808b7899155b and kgsl-dkms 2.0.1.
build and source under /usr/lib/modules/<kver>/ are shipped by linux-image, not linux-headers, so with only the headers installed dkms has nothing to find. The headers package also has no postinst, so installing headers after the image never runs dkms's header_postinst.d hook either.
#196 moves both links into linux-headers and adds that hook, as Debian's packages do. Validated in a clean trixie container: headers alone, headers after the image, and an upgrade from the published packages all build kgsl.
Hello Bjordis Collaku (@bjordiscollaku), thanks for addressing this issue, can you consider releasing a new version of the packages in QLI (I suggest a Debian version bump from -1 to -2) with this fix so that I can validate behavior in my DKMS test container? Thanks in advance; re-opening as we need an upload of the generated packages for this issue to be "really" fixed in QLI.
Thanks Christopher Obbard (@obbardc), I will be able to test the new release then; I am expecting everything to work so closing this issue and will reopen if something appears to be missing.
Activity
gagath commentedon Nov 20, 2026
Loïc Minier (@lool) FYI
lool commentedon Nov 20, 2026
Bjordis Collaku (@bjordiscollaku) would you by any chance be able to help with this?
debian: ship the build and source links in linux-headers
packaging: ship the build and source links in linux-headers
bjordiscollaku commentedon Nov 23, 2026
Yep. Reproduced on trixie with
linux-headers-7.3.0+qcom-7.3-20261118-g808b7899155bandkgsl-dkms2.0.1.buildandsourceunder/usr/lib/modules/<kver>/are shipped bylinux-image, notlinux-headers, so with only the headers installed dkms has nothing to find. The headers package also has no postinst, so installing headers after the image never runs dkms'sheader_postinst.dhook either.#196 moves both links into
linux-headersand adds that hook, as Debian's packages do. Validated in a clean trixie container: headers alone, headers after the image, and an upgrade from the published packages all build kgsl.Agathe Porte (@gagath) Loïc Minier (@lool), could you take a look?
gagath commentedon Nov 25, 2026
Hello Bjordis Collaku (@bjordiscollaku), thanks for addressing this issue, can you consider releasing a new version of the packages in QLI (I suggest a Debian version bump from -1 to -2) with this fix so that I can validate behavior in my DKMS test container? Thanks in advance; re-opening as we need an upload of the generated packages for this issue to be "really" fixed in QLI.
obbardc commentedon Nov 25, 2026
Agathe Porte (@gagath) I spoke with Bjordis Collaku (@bjordiscollaku) earlier, I am releasing a new upstream version of qcom-next kernel today which will include this fix; see #198
Edit: package has now been released.
gagath commentedon Nov 26, 2026
Thanks Christopher Obbard (@obbardc), I will be able to test the new release then; I am expecting everything to work so closing this issue and will reopen if something appears to be missing.