# SRCPKG BINPKG GLOB... : how mkdebs.py splits a staging tree into Debian's
# binary packages. A file goes to the first matching line; BINPKG `-` drops
# it. A source package with no lines becomes one package of its own name.
# `depends BINPKG DEPENDS...` adds a Depends field (Debian's data packages
# ours use: architecture-independent content, Multi-Arch: foreign);
# `predepends BINPKG ...` a Pre-Depends field; `arch BINPKG ARCH` labels a
# package with another architecture (dpkg and apt: arm64, docs/gexcc.md
# §6.1a). The rest of a depends/predepends line is one relation.
# `alternative BINPKG NAME LINK PATH PRIORITY` registers an alternative in
# the package's postinst (and removes it in its prerm), as Debian's
# maintainer scripts do; mkrootfs.py sets the same up for the base rootfs.
zlib      -             *
libmd     -             *
readline  -             *
pcre2     -             *
bzip2     bzip2         *
xz-utils  xz-utils      *
libzstd   zstd          *
ncurses   ncurses-bin   usr/bin/* usr/share/man/*
ncurses   -             *
util-linux bsdutils     usr/bin/logger usr/bin/renice usr/bin/script usr/bin/scriptlive usr/bin/scriptreplay usr/bin/wall usr/share/man/*/logger.* usr/share/man/*/renice.* usr/share/man/*/script.* usr/share/man/*/scriptlive.* usr/share/man/*/scriptreplay.* usr/share/man/*/wall.*
util-linux bsdextrautils usr/bin/col usr/bin/colcrt usr/bin/colrm usr/bin/column usr/bin/hexdump usr/bin/hd usr/bin/look usr/bin/ul usr/bin/write usr/share/man/*/col.* usr/share/man/*/colcrt.* usr/share/man/*/colrm.* usr/share/man/*/column.* usr/share/man/*/hexdump.* usr/share/man/*/look.* usr/share/man/*/ul.*
util-linux uuid-runtime usr/bin/uuidgen usr/bin/uuidparse usr/share/man/*/uuidgen.* usr/share/man/*/uuidparse.*
util-linux util-linux   *
sysvinit  sysvinit-utils *
file      file          *
depends file libmagic-mgc
depends vim vim-common
alternative vim vim /usr/bin/vim /usr/bin/vim.basic 30
alternative vim vi /usr/bin/vi /usr/bin/vim.basic 30
alternative vim view /usr/bin/view /usr/bin/vim.basic 30
alternative vim ex /usr/bin/ex /usr/bin/vim.basic 30
alternative vim editor /usr/bin/editor /usr/bin/vim.basic 30
libonig   -             *
libevent  -             *
expat     -             *
make-dfsg make          *
lua5.4    lua5.4        *
lz4       lz4           *
mpdecimal -             *
python3.13 python3.13   *
# ours is the whole interpreter: what Debian splits it into (python3's
# version is its metapackage's, 3.13.5-1)
provides python3.13 python3 (= 3.13.5-1), python3-minimal (= 3.13.5-1), libpython3-stdlib (= 3.13.5-1), python3.13-minimal (= ${binary:Version}), libpython3.13-minimal (= ${binary:Version}), libpython3.13-stdlib (= ${binary:Version})
openssl   openssl       *
curl      curl          *
git       -             usr/lib/git-core/git-http-push usr/lib/git-core/git-imap-send usr/lib/git-core/git-http-fetch usr/lib/git-core/git-daemon usr/lib/git-core/git-http-backend usr/lib/git-core/scalar usr/bin/scalar usr/lib/git-core/git-shell usr/bin/git-shell
git       git           *
xxhash    -             *
dpkg      dpkg          usr/bin/* usr/sbin/* usr/share/dpkg/* etc/* var/* usr/share/man/*
dpkg      -             *
arch      dpkg          arm64
predepends dpkg         tar (>= 1.28-1)
apt       apt           *
arch      apt           arm64
depends   apt           base-passwd (>= 3.6.1) | adduser
depends   apt           gpgv
depends   apt           debian-archive-keyring
libgpg-error -          *
libgcrypt20 -           *
libassuan -             *
libksba   -             *
npth      -             *
gnupg2    gpgv          *
# gui: libraries static in the sysroot; fontconfig (its tools and /etc/fonts)
# and foot as packages, with Debian's fonts and keyboard data
wayland   -             *
wayland-protocols -     *
libxkbcommon -          *
pixman    -             *
freetype  -             *
utf8proc  -             *
tllist    -             *
fcft      -             *
fontconfig -            usr/lib/* usr/include/*
fontconfig fontconfig   *
depends   fontconfig    fonts-dejavu-core
foot      foot          *
depends   foot          xkb-data
depends   foot          fontconfig
depends   foot          libx11-data
# X11 clients and SDL: static libraries; the locale and compose data are
# Debian's libx11-data. Chocolate Doom's engine, on Debian's Freedoom WADs
xorgproto -             *
xtrans    -             *
xcb-proto -             *
libxau    -             *
libxdmcp  -             *
libxcb    -             *
libx11    -             *
libxext   -             *
libsdl2   -             *
libsdl2-net -           *
libsdl2-mixer -         *
chocolate-doom chocolate-doom usr/bin/chocolate-doom usr/bin/chocolate-doom-setup usr/share/applications/org.chocolate_doom.Doom* usr/share/icons/* usr/share/metainfo/org.chocolate_doom.Doom*
chocolate-doom -        *
depends   chocolate-doom freedoom
# gtk: the libraries static in the sysroot; GTK 3's demos as Debian's
# gtk-3-examples, its data (settings schemas, compiled here; themes, emoji)
# as libgtk-3-common. Icons: Debian's adwaita-icon-theme, whose SVGs need
# librsvg's loader (not built: Rust), so only its PNGs show.
libpng1.6 -             *
fribidi   -             *
glib2.0   -             *
harfbuzz  -             *
cairo     -             *
pango1.0  -             *
gdk-pixbuf -            *
at-spi2-core -          *
libglvnd  -             *
libepoxy  -             *
gtk+3.0   gtk-update-icon-cache usr/bin/gtk-update-icon-cache
gtk+3.0   gtk-3-examples usr/bin/gtk3-widget-factory usr/bin/gtk3-demo usr/share/applications/* usr/share/icons/*
gtk+3.0   libgtk-3-common usr/share/glib-2.0/schemas/* usr/share/gtk-3.0/* usr/share/themes/* etc/gtk-3.0/*
gtk+3.0   -             *
depends   gtk-3-examples libgtk-3-common, adwaita-icon-theme, hicolor-icon-theme, fontconfig, xkb-data
# perl (XS extensions static, no dynamic loading): labelled arm64 like dpkg,
# so ours is the perl-base, perl-modules-5.40, libperl5.40 and perl that
# Debian's arm64 packages depend on, split as Debian splits them: perl-base
# has Debian's perl-base modules (perl-base.list), perl-modules-5.40 the
# rest of privlib, libperl5.40 the rest of archlib, perl the tools. No
# perlapi-5.40.1: an arm64 XS module could not load into a wasm32 perl, so
# packages built against that API stay uninstallable instead of failing at
# `use`. Pure-Perl packages (/usr/share/perl5, vendorlib) work.
perl      -             usr/share/perl/5.40/pod/* *.pod usr/local/* usr/bin/perlbug usr/bin/perlthanks
perl      perl-base     usr/bin/perl usr/bin/perl5.40.1 @perl-base.list
perl      perl-modules-5.40 usr/share/perl/*
perl      libperl5.40   usr/lib/wasm32-linux-musl/*
perl      perl          usr/bin/*
perl      -             *
arch      perl-base     arm64
arch      perl-modules-5.40 arm64
arch      libperl5.40   arm64
arch      perl          arm64
multiarch perl          allowed
depends   perl-modules-5.40 perl-base (= ${binary:Version})
depends   libperl5.40   perl-base (= ${binary:Version})
depends   perl          perl-base (= ${binary:Version}), perl-modules-5.40 (= ${binary:Version}), libperl5.40 (= ${binary:Version})
# the rest of mkrootfs.py's alternatives, for the same packages installed by apt
alternative gawk awk /usr/bin/awk /usr/bin/gawk 10
alternative mawk awk /usr/bin/awk /usr/bin/mawk 5
alternative nano editor /usr/bin/editor /usr/bin/nano 40
alternative less pager /usr/bin/pager /usr/bin/less 77
alternative util-linux pager /usr/bin/pager /usr/bin/more 50
