Skip to content

header packages fail to install /usr/lib/modules/$KVER, dkms unusable #194

Description

@gagath

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.

Activity

  1. gagath commented on Nov 20, 2026

    @gagath
    Author
  2. lool commented on Nov 20, 2026

    @lool
    Contributor

    Bjordis Collaku (@bjordiscollaku) would you by any chance be able to help with this?

  3. bjordiscollaku commented on Nov 23, 2026

    @bjordiscollaku
    Contributor

    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.

    Agathe Porte (@gagath) Loïc Minier (@lool), could you take a look?

  4. gagath commented on Nov 25, 2026

    @gagath
    Author

    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.

  5. obbardc commented on Nov 25, 2026

    @obbardc
    Contributor

    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.

  6. gagath commented on Nov 26, 2026

    @gagath
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions