I'm trying to build the linux-raspi
packages from source.
I ran apt build-dep -y linux-raspi
and that installed a number of dependencies. If I run it again, it is satisfied that all necessary packages are installed.
Then I ran dpkg-buildpackage
but it errored:
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-systemd cpio kernel-wedge kmod
libcap-dev libelf-dev libnewt-dev libiberty-dev rsync libdw-dev libpci-dev pkg-config flex
bison libunwind8-dev openssl libssl-dev libaudit-dev bc libudev-dev uuid-dev dkms curl xmlto
docbook-utils ghostscript fig2dev sharutils asciidoc python3-sphinx python3-sphinx-rtd-theme
python3-docutils
Clearly apt-cache showsrc linux-raspi
shows that cpio
(for example) is a build dependency:
Package: linux-raspi
...
Build-Depends: debhelper (>= 9), dh-systemd, cpio, kernel-wedge, kmod
<!stage1>, makedumpfile [amd64] <!stage1>, libelf-dev <!stage1>, libnewt-dev
<!stage1>, libiberty-dev <!stage1>, rsync <!stage1>, libdw-dev <!stage1>,
libpci-dev <!stage1>, pkg-config <!stage1>, flex <!stage1>, bison <!stage1>,
libunwind8-dev [amd64 arm64 armhf ppc64el] <!stage1>, openssl <!stage1>,
libssl-dev <!stage1>, libaudit-dev <!stage1>, bc <!stage1>, gawk <!stage1>,
device-tree-compiler [powerpc] <!stage1>, u-boot-tools [powerpc] <!stage1>,
libc6-dev-ppc64 [powerpc] <!stage1>, libudev-dev <!stage1>, autoconf <!stage1>,
automake <!stage1>, libtool <!stage1>, uuid-dev <!stage1>
So in that case, why isn't apt build-dep
installing it? How is it in disagreement with dpkg-buildpackage
over what packages are necessary?