gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

⎇ main tandas/staged-fallidos/gettext.toml TOML · 54 líneas · 1.9 KB Historia crudo

Etapa G: zstd ✓ (Makefile no-asm); difiere gdk-pixbuf/libepoxy/gettext (bloqueados: shared-mime-info/mesa-EGL/gettext-roto) 60c813cf0 · sergio ·

1# DIFERIDA (frontera): gettext import quedó en versión basura "1.0"; en static-musl se evita con -Dnls=disabled. Reimportar bien si hace falta libintl real.
2# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
3# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
4# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
5name    = "gettext"
6version = "1.0"
7
8[source]
9tarball = "https://ftp.gnu.org/gnu/gettext/gettext-1.0.tar.xz"
10# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
11# sha512 = "fa657faf5685dae7121a9b0293d3308a3910a72b90943a7a493b88cf88e95f29c5758e1573320169fe9beac6f101ef76f4165a279a7f3294155d7a773e2fa09f"
12sha256  = "71132a3fb71e68245b8f2ac4e9e97137d3e5c02f415636eb508ae607bc01add7"
13patches = ["cwd.patch", "skip-tests-musl.patch", "skip-meaningless-pthread-rwlock-test.patch", "skip-unicode-16-tests.patch"]
14
15[build]
16compiler = "zig-cc"
17target   = "x86_64-linux-musl"
18link     = "static"
19flags    = []
20
21[build.phases]
22# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
23compile = '''
24_abuild_phase() {
25# force using system posix complaint printf
26	# the test is broken and fails with ash
27	gt_cv_func_printf_posix=yes \
28	./configure \
29		--disable-shared --enable-static \
30		--build=$CBUILD \
31		--host=$CHOST \
32		--prefix=/usr \
33		--enable-threads=posix \
34		--disable-java \
35		--enable-static
36	make
37}
38_abuild_phase
39'''
40# de package() de Alpine (traducido $pkgdir→/out):
41install = '''
42_abuild_phase() {
43depends="gettext-envsubst=1.0-r$pkgrel"
44	make -j1 DESTDIR="/out" install
45
46	# nothing in here is particularly useful, mostly just hello world examples in
47	# every single programming language for using gettext
48	rm -r "/out"/usr/share/doc
49}
50_abuild_phase
51'''
52
53[deps]
54build = ["perl", "ncurses", "libxml2-dev~2.13", "libunistring", "linux-headers"]