From af06960c8943e24fdeb59c1e56e828fb95fbef75 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 12:18:13 +0100 Subject: [PATCH] Use the target strip when packaging ncurses --- BOOTSTRAP.md | 2 ++ ncurses/PKGBUILD.vile | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index c3ca547..4df8fe2 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -54,6 +54,8 @@ The Ubuntu build worker runs one build or guest test at a time under its shared The aarch64 rebuilds of attr, ISL, libpng, libseccomp and Nettle require the 16 KiB musl SDK. Their clean signed install with musl, GMP and zlib audited eight package records, 514 owned paths and 25 target ELFs. The worker records exact versions and hashes in `arm/abi16/common-library-check-01`, receipt SHA-256 `71890d9f9aa07f33ea13f64dbb3caab5e45505d48779392afe92bc0d89c4f5a3`. +The aarch64 ncurses build uses the target `strip` for installed executables and the host `tic` for the terminfo database. The recipe ran its target `infocmp` against the staged xterm-256color entry. The worker checked the package's 16 KiB ELF segments in `arm/abi16/logs/ncurses-pages.tsv`, SHA-256 `48d777d8e44938601cf51d8a63a58b4243b492ed7a455b3ef1c0b0743db0fb06`. + ## Verified x86_64 bootstrap A fresh signed Git 2.47.3 installation pulled in 15 packages and passed the audit for 1,842 paths and 46 ELF files. In the isolated root, Git created a commit, read it back and passed `git fsck --full`. The installed OpenSSH 9.9p2 client and its five dependencies passed the audit for 4,319 paths and 34 ELFs. Its `ssh-keygen` generated an Ed25519 key, signed a file and verified it for the named principal. The worker retains those installed-package results in `foundation/signed-git-01` and `foundation/signed-ssh-01`, receipt SHA-256 `f43c1f53e159f97b6e5cfb8db542828f5ab055996e7885b2e4b89b044df9ed76` and `6e30b1d67ad5e9740ca28cf76317ef3f4dac4e75c82c78560785a2395ddb2e32` respectively. diff --git a/ncurses/PKGBUILD.vile b/ncurses/PKGBUILD.vile index c77984c..02307d9 100644 --- a/ncurses/PKGBUILD.vile +++ b/ncurses/PKGBUILD.vile @@ -1,9 +1,12 @@ ; Alpine 3.21 source snapshot. The host tic builds architecture-independent ; terminfo while the staged musl toolchain builds the guest executables. +cross-prefix := get-environment-variable("CROSS_COMPILE") +strip-program := if string?(cross-prefix) { string-append(cross-prefix, "strip") } else { "strip" } + defpkgbuild(ncurses, #:pkgname, "ncurses", #:pkgver, "6.5_p20241006", - #:pkgrel, 2, + #:pkgrel, 3, #:pkgdesc, "Wide-character terminal libraries, tools and terminfo database", #:arch, [#:x86-64, #:aarch64], #:license, "X11", @@ -17,6 +20,7 @@ defpkgbuild(ncurses, "--without-cxx", "--without-debug", "--disable-termcap", "--disable-root-access", "--disable-rpath-hack", "--disable-setuid-environ", "--with-build-cc=gcc", "--with-tic-path=/usr/bin/tic", "--with-shared", "--enable-widec", "--enable-overwrite", + string-append("--with-strip-program=", strip-program), "--with-pkg-config-libdir=/usr/lib/pkgconfig", "--enable-pc-files", "--enable-symlinks", "--with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo") run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "make") -- 2.56.1