swm_version: 1 base: distro_version: dev pins: {} mutations: - type: source_patch tarball: https://ftp.gnu.org/gnu/ncurses/ncurses-6.5.tar.gz sha256: 136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6 build: compiler: zig-cc target: x86_64-linux-musl link: dynamic flags: [] phases: configure: | set -e ./configure --prefix=/usr --with-shared --without-normal --enable-widec --without-debug --without-ada --without-tests --enable-pc-files --with-pkg-config-libdir=/usr/lib/pkgconfig --with-fallbacks=linux,vt100,vt220,xterm,xterm-256color,screen,tmux,tmux-256color,ansi # Ver la cabecera: la cola `,-stats,-lc` del token `-Wl,...` la rechaza el driver de zig entera. grep -q ',-stats,-lc' ncurses/Makefile || { echo "ERROR: no aparece ',-stats,-lc' — ¿cambió el configure de ncurses?" >&2; exit 1; } find . -name Makefile -exec sed -i 's/,-stats,-lc//g' {} + compile: make install: | set -e make install.libs install.includes DESTDIR=/out # La receta EXISTE para publicar este SONAME: si no está, el artefacto no sirve para nada y hay que # enterarse acá, no en la imagen. test -e /out/usr/lib/libncursesw.so.6 || { echo "ERROR: no se generó libncursesw.so.6 — ¿--with-shared no tomó?" >&2 ls -l /out/usr/lib >&2; exit 1 } target_bin: /usr/bin/ncurses-shared expected_hash: b3:05cc7afa98796a42298b95fa932996d9d34678b99cfa545c3e3918e5a2613593 deps: build: - binutils runtime: []