Package: kpatch-dkms
Version: 0.3.1-1
Severity: serious
Justification: fails to build from source

kpatch-dkms refuses to build for a different than the running kernel.

Tested in a sid chroot with linux-headers-4.3.0-1-amd64 installed on a
jessie host (running kernel 3.16.0-4-amd64):


# dkms build kpatch/0.3.1 -k 4.3.0-1-amd64

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.3.0-1-amd64 -C kmod/ BUILD_MODULE=yes 
KERNELDIR=/lib/modules/4.3.0-1-amd64/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.3.0-1-amd64 (x86_64)
Consult /var/lib/dkms/kpatch/0.3.1/build/make.log for more information.


and this is the content of /var/lib/dkms/kpatch/0.3.1/build/make.log:

DKMS make.log for kpatch-0.3.1 for kernel 4.3.0-1-amd64 (x86_64)
Fri Jan 22 00:43:26 UTC 2016
make: Entering directory '/var/lib/dkms/kpatch/0.3.1/build/kmod'
make -C core clean
make[1]: Entering directory '/var/lib/dkms/kpatch/0.3.1/build/kmod/core'
Makefile:6: *** /lib/modules/3.16.0-4-amd64/build doesn\'t exist.  Try 
installing the kernel-devel-3.16.0-4-amd64 RPM or 
linux-image-3.16.0-4-amd64-dbg DEB..  Stop.
make[1]: Leaving directory '/var/lib/dkms/kpatch/0.3.1/build/kmod/core'
Makefile:23: recipe for target 'clean' failed
make: *** [clean] Error 2
make: Leaving directory '/var/lib/dkms/kpatch/0.3.1/build/kmod'



Andreas

Reply via email to