I’ve found a few posts regarding similar errors, but when building other packages like gcc: the remedy used there was to install additionally linux-libc-dev package, however this does not seems like a good solution for kernel, as it is supposed to provide these headers itself…
I’m confused (probably an age thing) …
Why are you “building kernel 7.1 for Debian 13” on openSUSE??
What does a Debian kernel have to do with openSUSE ??
I’ve just verified that Debian’s buildd image variant (used by sbuild by default) does indeed contain linux-libc-dev, so it seems it may be a Debian kernel build script bug covered by the typical setup of Debian’s build infra, now exposed by OBS.
I’ll try adding linux-libc-dev and will report back.
I’ve added Required: linux-libc-dev to my project config, which if I understand the manual correctly, is supposed to trigger a rebuild, but nothing happened. So I’ve triggered a rebuild manually and got the same error
Additionally I’ve noticed logs like this:
[ 44s] [300/527] installing libc6-dev-2.41-12+deb13u3
[ 44s] dpkg: libc6-dev:amd64: dependency problems, but configuring anyway as you requested:
[ 44s] libc6-dev:amd64 depends on linux-libc-dev; however:
[ 44s] Package linux-libc-dev is not installed.
Am I doing it wrong? What’s the proper way to add an additional package to the build environment?
Try to use Keep: linux-libc-dev in the project config.
According to the manual:
Keep: PACKAGES
To eliminate build cycles the to-be-built package are not installed by default, even when it is required. Keep can be used to overwrite this behavior. It is usually needed for packages like make that are used to build itself. Preinstalled packages are automatically kept, as the package installation program needs to work all the time.
linux-libc-dev is built from this source package, so it’s not installed even when being Required.