Bug#822666: linux-headers-3.16.0-4-amd64: deprecated syntax in linux-headers Makefile
Package: linux-headers-3.16.0-4-amd64
Version: 3.16.7-ckt20-1+deb8u4
Severity: normal
Dear Maintainer,
When installing a linux-headers package, a Makefile is installed for compiling
external modules (e.g. /usr/src/linux-headers-3.16.0-4-amd64/Makefile)
the syntax in this Makefile is not compatible with the version of make in
jessie (4.0-8.1)
the symptom is the following message when compling an external module:
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
the problem is fixed with the following patch:
herbelot@ascain:tmp$ diff -Nau Makefile.ori Makefile.new
--- Makefile.ori 2016-04-25 16:32:15.340304128 +0200
+++ Makefile.new 2016-04-25 16:32:21.332318703 +0200
@@ -7,5 +7,7 @@
all:
@$(MAKE) $(MAKEARGS) $(cmd)
Makefile:;
-$(cmd) %/: all
+$(cmd): all
+ @:
+%/: all
@:
The patch is also applicable to more recent versions of the package (for
example
the patch is valid for linux-headers-4.6.0-rc3-amd64_4.6~rc3-1~exp1_amd64.deb)
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages linux-headers-3.16.0-4-amd64 depends on:
ii linux-compiler-gcc-4.8-x86 3.16.7-ckt20-1+deb8u4
ii linux-headers-3.16.0-4-common 3.16.7-ckt20-1+deb8u4
ii linux-kbuild-3.16 3.16-3
linux-headers-3.16.0-4-amd64 recommends no packages.
linux-headers-3.16.0-4-amd64 suggests no packages.
-- no debconf information
Reply to: