Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#992491: Package acpi-call-dkms 1.1.0-6 believes that acpi is disabled on 5.10 kernel

54 views
Skip to first unread message

p...@tutanota.de

unread,
Aug 19, 2021, 6:10:03 AM8/19/21
to

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

Owen T. Heisler

unread,
May 2, 2022, 11:10:04 PM5/2/22
to
Package: acpi-call-dkms
Followup-For: Bug #992491
X-Debbugs-Cc: wri...@owenh.net

Hi,

I noticed the same problem:

```
Setting up linux-headers-5.10.0-14-amd64 (5.10.113-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-14-amd64:ACPI
disabled in this kernel, not building module.
```

However, when I install acpi-call-dkms 1.2.2-1~bpo11+1 from
bullseye-backports, the problem goes away and the module is built
successfully.

Thanks,
Owen

Andreas Beckmann

unread,
Jul 10, 2022, 6:50:03 PM7/10/22
to
Control: tag -1 patch

On Thu, 19 Aug 2021 11:51:48 +0200 (CEST) p...@tutanota.de wrote:
> 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

That code gets also executed for no longer installed kernels (because
the dkms.conf gets loaded before the kernel gets ruled out - stupid idea
of dkms). And removed kernels don't have a .config any longer and
therefore also no CONFIG_ACPI=y ...


Andreas
0001-reduce-noise-about-ACPI-being-disabled-on-no-longer-.patch

Andreas Beckmann

unread,
Feb 17, 2023, 10:40:05 AM2/17/23
to
Followup-For: Bug #992491
Control: tag -1 pending

In order to clean up all dkms packages for the upcoming release, I've
prepared a NMU fixing this issue and uploaded it to DELAYED/5.

The corresponding changes can again be found in

g...@salsa.debian.org:anbe/acpi-call.git branch dkms-updates

Andreas
0 new messages