Install libdw-dev so dpkg-checkbuilddeps passes (amd64 + arm64)

The kernel's generated debian/control lists libdw-dev:native as an
unconditional Build-Depends, so dpkg-buildpackage aborts via
dpkg-checkbuilddeps before the build starts -- regardless of .config.
Disabling BTF/pahole never satisfied this check.

libdw-dev is just the elfutils libdw headers and does not make pahole
run; dwarves stays absent since DEBUG_INFO_BTF is disabled.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-06-18 13:53:42 +08:00
parent f2ee3f905e
commit 3a58dd45ed
+8 -4
View File
@@ -132,12 +132,16 @@ jobs:
if: env.BUILD_NEEDED == 'true' if: env.BUILD_NEEDED == 'true'
run: | run: |
sudo apt-get update sudo apt-get update
# dwarves/libdw-dev (pahole) are intentionally absent: the build sets # libdw-dev is an unconditional Build-Depends in the kernel's generated
# CONFIG_DEBUG_INFO_NONE=y and DEBUG_INFO_BTF=n (see prepare-kernel-config.sh), # debian/control (scripts/package/mkdebian), so dpkg-checkbuilddeps aborts
# so pahole never runs. Re-add them if BTF is ever enabled. # the build without it -- even though we disable BTF. It's just the elfutils
# libdw headers and does NOT make pahole run.
# dwarves (pahole) stays absent: the build sets CONFIG_DEBUG_INFO_NONE=y and
# DEBUG_INFO_BTF=n (see prepare-kernel-config.sh), so pahole never runs.
# Re-add dwarves if BTF is ever enabled.
sudo apt-get install -y \ sudo apt-get install -y \
git build-essential \ git build-essential \
libncurses-dev libssl-dev libelf-dev \ libncurses-dev libssl-dev libelf-dev libdw-dev \
bison bc flex rsync debhelper \ bison bc flex rsync debhelper \
dpkg-dev fakeroot kmod cpio \ dpkg-dev fakeroot kmod cpio \
lz4 zstd xz-utils curl jq lz4 zstd xz-utils curl jq