Package: acpi-call-dkms
Version: 1.1.0-6
When trying to install the above version of acpi-call-dkms to a Bullseye installation (or, alternatively, to a Buster installation from Buster backports), installation fails as follows:
Setting up acpi-call-dkms (1.1.0-6) ...
Loading new acpi-call-1.1.0 DKMS files...
ACPI disabled in this kernel, not building module.
The message comes from config file of the package (/usr/src/acpi-call-1.1.0/dkms.conf):
# Don't build module when ACPI is disabled
if ! grep -q "^CONFIG_ACPI=[ym]$" "$kernel_source_dir/.config" 2>/dev/null ; then
echo "ACPI disabled in this kernel, not building module." >&2
BUILD_EXCLUSIVE_ARCH="^do_not_build$"
fi
However, the .config file (/usr/src/linux-headers-5.10.0-8-amd64/.config) contains the correct entry:
CONFIG_ACPI=y
and, as far as I'm able to judge, various acpi stuff works normally, so acpi is obviously enabled.
So why does the if clause fail? Does the variable $kernel_source_dir point to a wrong place???
Kernel:
Linux Bullseye 5.10.0-1-amd64 #1 SMP Debian 5.10.4-1 (2020-12-31) x86_64 GNU/Linux
Hardware: Lenovo Thinkpad X1 5th gen.
With best regards,
pmn