dkms "--kernelsourcedir" option not work

Bug #1207263 reported by shockwave
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dkms (Debian)
Fix Released
Unknown
dkms (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi, my os is lubuntu 13.04 x86_64
recently i need to use dkms to rebuild a module, so i do :
dkms build -m (module name) -v (version)
but it say it can't find linux-headers of my kernel version, i felt strange because it has already put in /usr/src
so i give the "--kernelsourcedir" option :
dkms build -m (module name) -v (version) --kernelsourcedir (/usr/src/my-kernel-headers)
but it still didn't work!!
i've tried :
dkms build -m (module name) -v (version) --kernelsourcedir (/usr/src/)
and
dkms build -m (module name) -v (version) --kernelsourcedir=(/usr/src/my-kernel-headers)
also
dkms build -m (module name) -v (version) --kernelsourcedir=(/usr/src/)
but the error message still said that it can't find the headers

although in the last i found that the problem is that in my /lib/modules/(kernel-version)/
the "build" symlink was broken, and /lib/modules/(kernel-version)/ is the default path of dkms

But why the --kernelsourcedir didn't work?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → Confirmed
Revision history for this message
moueza (mouezapeter) wrote :

Nowadays still affected by this bug under Ubuntu 15.04

Changed in dkms (Debian):
status: Unknown → New
Changed in dkms (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.