#1012779 bbswitch-dkms no compil in kernel 5.18

Package:
bbswitch-dkms
Source:
bbswitch
Description:
Interface for toggling the power on NVIDIA Optimus video cards (dkms)
Submitter:
Jeremyp3
Date:
2022-06-18 12:36:04 UTC
Severity:
important
#1012779#5
Date:
2022-06-13 22:44:50 UTC
From:
To:
Dear Maintainer,

Since the passage to the Kernel 5.18.0-1-AMD64, it is impossible to build
BBSWitch:

Building initial module for 5.18.0-1-amd64
Error! Bad return status for module build on kernel: 5.18.0-1-amd64 (x86_64)
Consult /var/lib/dkms/bbswitch/0.8/build/make.log for more information.

DKMS make.log for bbswitch-0.8 for kernel 5.18.0-1-amd64 (x86_64)
mar. 14 juin 2022 00:29:18 CEST
make -C /lib/modules/5.18.0-1-amd64/build M="$(pwd)" modules
make[1] : on entre dans le répertoire
« /usr/src/linux-headers-5.18.0-1-amd64 »
CC [M] /var/lib/dkms/bbswitch/0.8/build/bbswitch.o
/var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_off’:
/var/lib/dkms/bbswitch/0.8/build/bbswitch.c:271:13: error: implicit
declaration
of function ‘acpi_bus_get_device’; did you mean ‘acpi_is_pnp_device’?
[-Werror=implicit-function-declaration]
271 | r = acpi_bus_get_device(dis_handle, &ad);
| ^~~~~~~~~~~~~~~~~~~
| acpi_is_pnp_device
cc1: some warnings being treated as errors
make[2]: ***
[/usr/src/linux-headers-5.18.0-1-common/scripts/Makefile.build:293
: /var/lib/dkms/bbswitch/0.8/build/bbswitch.o] Erreur 1
make[1]: *** [/usr/src/linux-headers-5.18.0-1-common/Makefile:1858 :
/var/lib/dkms/bbswitch/0.8/build] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-headers-5.18.0-1-amd64 »
make: *** [Makefile:13 : default] Erreur 2

* What exactly did you do (or not do) that was effective (or
ineffective)?

To resolve the situation, view this pullrequest:
https://github.com/Bumblebee-Project/bbswitch/pull/219
replace bbswitch.c in /usr/src/bbswitch-0.8/

Thanks for the fix !

#1012779#10
Date:
2022-06-18 12:33:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
bbswitch, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012779@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated bbswitch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 18 Jun 2022 14:09:20 +0200
Source: bbswitch
Architecture: source
Version: 0.8-13
Distribution: unstable
Urgency: medium
Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1012560 1012779
Changes:
 bbswitch (0.8-13) unstable; urgency=medium
 .
   * Use experimental dkms feature BUILD_EXCLUSIVE_CONFIG="CONFIG_ACPI".
   * Add patch for Linux 5.18 from Arch Linux.  (Closes: #1012560, #1012779)
   * Update Standards version to 4.6.1, no changes required.
Checksums-Sha1:
 8849cd74bced44c97706ed5952bc4dd945c6b380 2218 bbswitch_0.8-13.dsc
 688e84281ed5f17a438da333f78180f55766db4a 5904 bbswitch_0.8-13.debian.tar.xz
 c854f5eb4bbe1d96d9c1bf2545638977f0fbe558 5567 bbswitch_0.8-13_source.buildinfo
Checksums-Sha256:
 99df4075d68800eea4a01e25955c7c9e0cf6f8ae4048c50abe992b8c93a8d979 2218 bbswitch_0.8-13.dsc
 4afe527d001a2356751b26a5e753f4bac66d4898f6795e40c346d3a7143c6998 5904 bbswitch_0.8-13.debian.tar.xz
 1f17c863bb807e6dc6520cbe95d2e8dbc48c018a1f678c759987402df5e85dc7 5567 bbswitch_0.8-13_source.buildinfo
Files:
 8b49fdb1824de1fb4648da553a5c1644 2218 kernel optional bbswitch_0.8-13.dsc
 0388f0618f5051b24fdb59f06fd1026b 5904 kernel optional bbswitch_0.8-13.debian.tar.xz
 187d468ba1891789b95fc815ccef70ca 5567 kernel optional bbswitch_0.8-13_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmKtwLwQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCP6oEACegk/3u5MxVGpFbtKveEQBoAzcJvQ0WVFj
7gXxj3vioPxi5mhwfmO6eWaNdD3MGx4G4CJXRYrDOOHarb/rBeYgf9iplIQ667F4
fI8LtbTexpq3aXzmfV3K+OxZSu0L9iyVaGuYFFmuYLC0FItj2nCLXaWunFi+WMX2
deOr+kbcnUolpX2CAyR5tko8fkRgoQFE5Q6fLnnsoPDCemx6jYYyq/i/Hzo0SEkB
HeCBYHpLJwEQe/w8nkxCPFvk0kLoKYITbeflwDkLfsBcFDS0ACaHNfo6KuQJ6Zig
xqRiuMQg/mDOKYpoGCLBbuLaZHKXFzxwXnNSGgWZ8cR9wpUbR16HhR/d0XVxQkgj
X3zN7VW7dGUYQu97xKuQ8JWdETjKdcl6kPt9AIyR7OHQFQ1jjHGXzrC26cPAzwMn
kCC2nLAq04lfz47+xqx2xdtciAv6qsjBNnGNTVRQ5PWXCCoIbWF0uynWAnIE8A+H
92FdnLa9L/rSfbRgWhT4jm24UNr2yjLUYfh9ALcYmRENxpb/kQR3Zl4AKNH/L2pq
DuhCPeMISm38l+UIpvJPdlEuAo7UVzwxCVwf9BhMpUzAevwq9joYn219MQKIrQIh
TrbQiODB3sPeGMyFBhHGjmgvuemhPl8kVhI9qLdG1BYcT9HpRRbGKACV3HqNzsL+
MuAt6QUyhQ==
=guS6
-----END PGP SIGNATURE-----