Adjust to linux-support-4.9.0-4
authorHans van Kranenburg <hans@knorrie.org>
Sun, 17 Dec 2017 19:55:25 +0000 (20:55 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 20 Dec 2017 21:11:48 +0000 (22:11 +0100)
This package uses some code from the linux-support package to generate
files. The way in which this done in the packaging is similar to how the
linux source package is managed.

debian/rules.defs defines a KERNELVERSION which requires you to have the
linux-support-$KERNELVERSION package installed.

For now, update it to 4.9.0-4, since that's the current latest in
Stretch. I'm working on the packaging on a stretch system.

After doing so...
    -$ make -f debian/rules debian/control-real
    [...]
      File "/usr/src/linux-support-4.9.0-4/lib/python/debian_linux/gencontrol.py", line 124, in do_main_recurse
          for featureset in self.config['base', ]['featuresets']:
    KeyError: 'featuresets'

Apparently the newer linux-support requires featuresets to be set. We
simply add it with only the option none, since we don't use it.

debian/arch/defines
debian/rules.defs

index 928d4dfb8dfbfb761489a131eb87925beda6bcdf..2c8073fcb5f5fc265b20b0e7246d0172dcd81bb4 100644 (file)
@@ -6,3 +6,5 @@ arches:
  arm64
  armhf
  i386
+featuresets:
+ none
index 54ef1ad8b4b1ccf8bc8a79bf88eacff2048902c4..2e59946f72bb9ac587a452143569210457516e21 100644 (file)
@@ -1,4 +1,4 @@
-KERNELVERSION := 4.7.0-1
+KERNELVERSION := 4.9.0-4
 BUILD_DIR = debian/build
 STAMPS_DIR = debian/stamps
 TEMPLATES_DIR = debian/templates