Followup-For: Bug #1095728
autopkgtest also works for ppc64el and arm64 in qemu chroots.
I'm updating the autopkgtest patch since we need an arch restriction
because the package is not arch:any, otherwise the tests would fail on
unsupported architectures.
That oldest supported kernel seems to be 6.6, for 6.5 I get
DKMS (dkms-3.1.5) make.log for mimic/0.6.3+ds for kernel 6.5.0-5-amd64 (x86_64)
Wed Feb 12 08:01:44 UTC 2025
Cleaning build area
# command: make clean KERNEL_UNAME=6.5.0-5-amd64
rm -rf build dkms.conf AKMBUILD
[ ! -d /lib/modules/6.5.0-5-amd64/build ] || make -C
/lib/modules/6.5.0-5-amd64/build M=/var/lib/dkms/mimic/0.6.3+ds/build clean
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-5-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-5-amd64'
# exit code: 0
# elapsed time: 00:00:00
----------------------------------------------------------------
Building module(s)
# command: make -j14 KERNELRELEASE=6.5.0-5-amd64 KERNEL_UNAME=6.5.0-5-amd64
CHECKSUM_HACK=kfunc
cp -rL /lib/modules/6.5.0-5-amd64/build build
PATH="$PATH:/usr/lib/mimic:/var/lib/dkms/mimic/0.6.3+ds/build/../out:/var/lib/dkms/mimic/0.6.3+ds/build/../tools"
vmlinux-to-btf >build/vmlinux
ERROR: no boot image found; specify BOOT_DIR and VMLINUX_SUFFIX to match
$BOOT_DIR/vmlinu{x,z}$VMLINUX_SUFFIX
make: *** [Makefile:69: build] Error 1
# exit code: 2
# elapsed time: 00:00:00
----------------------------------------------------------------
This is probably nothing that needs to be fixed.
Instead I'm documenting the fact in dkms.conf by setting
BUILD_EXCLUSIVE_KERNEL_MIN="6.6". You may want to add a comment with an
explanation.
Andreas
>From 92a1b779da1a4926e229d2c95c981d63e93fcc54 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <[email protected]>
Date: Tue, 11 Feb 2025 00:26:56 +0100
Subject: [PATCH 1/3] declare Testsuite: autopkgtest-pkg-dkms
---
debian/changelog | 6 ++++++
debian/control | 1 +
debian/tests/autopkgtest-pkg-dkms.conf | 1 +
3 files changed, 8 insertions(+)
create mode 100644 debian/tests/autopkgtest-pkg-dkms.conf
diff --git a/debian/changelog b/debian/changelog
index 111b2fd..42ea3fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mimic (0.6.3+ds-2) UNRELEASED; urgency=medium
+
+ * Declare Testsuite: autopkgtest-pkg-dkms.
+
+ -- Andreas Beckmann <[email protected]> Tue, 11 Feb 2025 00:26:16 +0100
+
mimic (0.6.3+ds-1) unstable; urgency=medium
* New upstream release
diff --git a/debian/control b/debian/control
index a57da54..4998cd0 100644
--- a/debian/control
+++ b/debian/control
@@ -21,6 +21,7 @@ Homepage: https://github.com/hack3ric/mimic
Rules-Requires-Root: no
Vcs-Browser: https://salsa.debian.org/hacker/mimic
Vcs-Git: https://salsa.debian.org/hacker/mimic.git
+Testsuite: autopkgtest-pkg-dkms
Package: mimic
Architecture: amd64 arm64 powerpc ppc64 ppc64el riscv64
diff --git a/debian/tests/autopkgtest-pkg-dkms.conf
b/debian/tests/autopkgtest-pkg-dkms.conf
new file mode 100644
index 0000000..588d3b9
--- /dev/null
+++ b/debian/tests/autopkgtest-pkg-dkms.conf
@@ -0,0 +1 @@
+architecture = amd64 arm64 powerpc ppc64 ppc64el riscv64
--
2.39.5
>From 91f8ad72a97d57afa87496c37ccd56305f107636 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <[email protected]>
Date: Wed, 12 Feb 2025 09:37:49 +0100
Subject: [PATCH 3/3] dkms.conf: declare BUILD_EXCLUSIVE_KERNEL_MIN="6.6"
---
debian/changelog | 1 +
debian/patches/dkms.conf.patch | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index a0b5593..082ead5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mimic (0.6.3+ds-2) UNRELEASED; urgency=medium
* Declare Testsuite: autopkgtest-pkg-dkms.
* dkms.conf: Set KERNEL_UNAME=... for make clean, too.
+ * dkms.conf: Declare BUILD_EXCLUSIVE_KERNEL_MIN="6.6".
-- Andreas Beckmann <[email protected]> Tue, 11 Feb 2025 00:26:16 +0100
diff --git a/debian/patches/dkms.conf.patch b/debian/patches/dkms.conf.patch
index 77bcfd7..86eeb23 100644
--- a/debian/patches/dkms.conf.patch
+++ b/debian/patches/dkms.conf.patch
@@ -3,9 +3,10 @@ Description: set KERNEL_UNAME=... for make clean, too
--- a/kmod/dkms.conf.in
+++ b/kmod/dkms.conf.in
-@@ -1,7 +1,7 @@
+@@ -1,7 +1,8 @@
PACKAGE_NAME="mimic"
PACKAGE_VERSION="#MODULE_VERSION#"
++BUILD_EXCLUSIVE_KERNEL_MIN="6.6"
MAKE[0]="make KERNEL_UNAME=$kernelver @@EXTRA_OPTS@@"
-CLEAN="make clean"
+CLEAN="make clean KERNEL_UNAME=$kernelver"
--
2.39.5