Package: xtables-addons-source Version: 3.2-1 Severity: important When running kernel version 4.18.0-3-amd64 and building for 4.19.0-1-amd64, the build fails:
/usr/bin/make -C /lib/modules/4.19.0-1-amd64/build M=/usr/src/modules/xtables-ad dons/extensions XA_ABSTOPSRCDIR=/usr/src/modules/xtables-addons XA_TOPSRCDIR=/us r/src/modules/xtables-addons DEPMOD=/bin/true clean make[2]: Entering directory '/usr/src/linux-headers-4.19.0-1-amd64' make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-1-amd64' dh_prep dh_clean for templ in ; do \ cp $templ `echo $templ | sed -e 's/_KVERS_/4.19.0-1-amd64/g'` ; \ done for templ in `ls debian/*.modules.in` ; do \ test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modu les.in}.backup 2>/dev/null || true; \ sed -e 's/##KVERS##/4.19.0-1-amd64/g ;s/#KVERS#/4.19.0-1-amd64/g ; s/_KVERS_ /4.19.0-1-amd64/g ; s/##KDREV##/4.19.13-1/g ; s/#KDREV#/4.19.13-1/g ; s/_KDREV_/ 4.19.13-1/g ' < $templ > ${templ%.modules.in}; \ done dh binary-arch ... checking kernel version that we will build against... make[2]: *** /lib/modules/4.18.0-3-amd64/build: No such file or directory. Stop. 0.0.0.0 in /lib/modules/4.18.0-3-amd64/build WARNING: That kernel version is not officially supported. ... dh_auto_build -- -C /lib/modules/4.19.0-1-amd64/build M=/usr/src/modules/xtables -addons/extensions XA_ABSTOPSRCDIR=/usr/src/modules/xtables-addons XA_TOPSRCDIR= /usr/src/modules/xtables-addons DEPMOD=/bin/true make[3]: Entering directory '/usr/src/linux-headers-4.19.0-1-amd64' ... make[3]: Leaving directory '/usr/src/linux-headers-4.19.0-1-amd64' make[2]: Leaving directory '/usr/src/modules/xtables-addons' make[2]: Entering directory '/usr/src/modules/xtables-addons' Making check in extensions make[3]: Entering directory '/usr/src/modules/xtables-addons/extensions' make -f ../Makefile.iptrules all; Xtables-addons 3.2 - Linux make[4]: Entering directory '/usr/src/modules/xtables-addons/extensions' make[4]: *** /lib/modules/4.18.0-3-amd64/build: No such file or directory. Stop. make[4]: Leaving directory '/usr/src/modules/xtables-addons/extensions' make[3]: *** [Makefile:465: modules] Error 2 ... So building the modules is actually successful, but the following "make check" step fails and ./configure goes wrong because they are defaulting to the currently running kernel version. I think you need to add override_dh_auto_configure and override_dh_auto_test targets to debian/rules that will pass the target kernel version to the upstream build system. Ben. -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages xtables-addons-source depends on: ii bzip2 1.0.6-9 ii debhelper 12 pn iptables-dev <none> ii make 4.2.1-1.2 ii pkg-config 0.29-4+b1 Versions of packages xtables-addons-source recommends: ii module-assistant 0.11.10 xtables-addons-source suggests no packages.