me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Use the target strip when packaging ncurses

diviocity committed 5 days ago · af06960c8943e24fdeb59c1e56e828fb95fbef75 View patch
Unverified signature 2 files changed +7 -1
BOOTSTRAP.md +2 -0

@@ -54,6 +54,8 @@ The Ubuntu build worker runs one build or guest test at a time under its shared

5454

5555The 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`.

5656

57+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`.

58+

5759## Verified x86_64 bootstrap

5860

5961A 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.

ncurses/PKGBUILD.vile +5 -1

@@ -1,9 +1,12 @@

11; Alpine 3.21 source snapshot. The host tic builds architecture-independent

22; terminfo while the staged musl toolchain builds the guest executables.

3+cross-prefix := get-environment-variable("CROSS_COMPILE")

4+strip-program := if string?(cross-prefix) { string-append(cross-prefix, "strip") } else { "strip" }

5+

36defpkgbuild(ncurses,

47 #:pkgname, "ncurses",

58 #:pkgver, "6.5_p20241006",

6- #:pkgrel, 2,

9+ #:pkgrel, 3,

710 #:pkgdesc, "Wide-character terminal libraries, tools and terminfo database",

811 #:arch, [#:x86-64, #:aarch64],

912 #:license, "X11",

@@ -17,6 +20,7 @@ defpkgbuild(ncurses,

1720 "--without-cxx", "--without-debug", "--disable-termcap", "--disable-root-access",

1821 "--disable-rpath-hack", "--disable-setuid-environ", "--with-build-cc=gcc",

1922 "--with-tic-path=/usr/bin/tic", "--with-shared", "--enable-widec", "--enable-overwrite",

23+ string-append("--with-strip-program=", strip-program),

2024 "--with-pkg-config-libdir=/usr/lib/pkgconfig", "--enable-pc-files", "--enable-symlinks",

2125 "--with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo")

2226 run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", "make")