#1028987 linux-image-amd64: Does not build with rtlwifi

Package:
linux-image-amd64
Source:
linux-image-amd64
Description:
Linux for 64-bit PCs (meta-package)
Submitter:
Zach Flynn
Date:
2023-01-15 20:30:04 UTC
Severity:
normal
#1028987#5
Date:
2023-01-15 20:28:06 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
Upgrading linux-image/linux-headers on Debian Sid with rtlwifi.

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

sudo apt upgrade.  Then after it failed, I've been running sudo apt install -f to get it to retry after trying to fix.

   * What was the outcome of this action?

The build fails (sudo apt install linux-image-amd64 fails). First, I got:

Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtlwifi-new/0.6/source/dkms.conf)

So I tried just removing that line from the dkms.conf file. Here is the log in /var/lib/dkms/rtlwifi-new/0.6/build/make.log after that:

DKMS make.log for rtlwifi-new-0.6 for kernel 6.1.0-1-amd64 (x86_64)
Sun Jan 15 02:14:08 PM CST 2023
make: Entering directory '/usr/src/linux-headers-6.1.0-1-amd64'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make: *** [/usr/src/linux-headers-6.1.0-1-common/Makefile:817: include/config/auto.conf] Error 1
make: Leaving directory '/usr/src/linux-headers-6.1.0-1-amd64'

I tried just following the instructions in the error.  But "make oldconfig" from that directory gives me:

  GEN     Makefile
/usr/src/linux-headers-6.1.0-1-common/scripts/Makefile.build:44: /usr/src/linux-headers-6.1.0-1-common/scripts/basic/Makefile: No such file or directory
make[1]: *** No rule to make target '/usr/src/linux-headers-6.1.0-1-common/scripts/basic/Makefile'.  Stop.
make: *** [/usr/src/linux-headers-6.1.0-1-common/Makefile:644: scripts_basic] Error 2


   * What outcome did you expect instead?

The package to install.

*** End of the template - remove these template lines ***