1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# abuild bootstrap recipe
Pinned upstream abuild with the same minimal shell patch used by
`~/Projects/foundationpkgs-binaries`: Debian's `/bin/busybox ash` replaces Alpine's
`/bin/ash -e`, preserving `set -e`. There is no maintained abuild fork.
Build on the Debian host after provisioning native `apk-tools`, BusyBox,
fakeroot, scanelf, `bc`, getcap, OpenSSL/zlib development files, pkgconf, and scdoc:
```sh
scripts/build.sh -f tar.gz stage0/abuild/APKBUILD
```
That explicit legacy-format invocation produces a tarball. Linux now defaults
to real APK output through upstream abuild; use `-f apk` and an explicit target
for that path. `stage0/` is not a default recipe-discovery bucket, so use the
explicit recipe path. Debian bootstrap `.deb` files live in `foundationpkgs-binaries`.
The recipe is also usable by real upstream abuild, with its normal package and
index signing. When running on Debian, `abuild -d` leaves build dependencies to
the host/toolchain. Real abuild's ELF dependency tracing expects a matching APK
package database; a Debian dpkg database is not a substitute. Provision target
libraries/database or explicitly manage tracing and runtime dependencies for
your build. No toolchain or glibc-to-musl conversion is imposed here.
Upstream installation is retained, including man pages (compressed here), but
`abuild-sudo` is deliberately not setuid. The installed configuration adds the
standard sbin directories to PATH so Debian's getcap is available.
Verification on Debian 13 amd64: targeted foundationpkgs build passed. Native
upstream abuild also constructed and signature-verified an abuild APK as a
regular user, with an explicit **test-only `!tracedeps`** override because the
Debian host has no target APK database. That checks packaging, not Alpine binary
compatibility; the override is not baked into this recipe.