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…
granja: cargar cola base-system — 18 esenciales del userland foundational
1# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
2# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
3# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
4name = "tzdata"
5version = "2026b"
6
7[source]
8tarball = "https://www.iana.org/time-zones/repository/releases/tzcode2026b.tar.gz"
9# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
10# sha512 = "55b44d52a83c9db151be32c3d78376ea7f9d4311ef15ed6fe34b855b08fc546531e51309d178d9c175a6d5d7d0b058440e45a55d200ca8925e3798dac9bc739f"
11sha256 = "37e9ed8427f5d3521c22fc58e293cbfb043d70eedf1003870b33f363f61ca344"
12patches = ["0001-posixtz-ensure-the-file-offset-we-pass-to-lseek-is-o.patch", "0002-fix-implicit-declaration-warnings-by-including-strin.patch"]
13
14[build]
15compiler = "zig-cc"
16target = "x86_64-linux-musl"
17link = "static"
18flags = []
19
20[build.phases]
21# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
22compile = '''
23_abuild_phase() {
24make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1" \
25 TZDIR="/usr/share/zoneinfo"
26
27 make -C "$builddir"/posixtz-$_ptzver posixtz
28}
29_abuild_phase
30'''
31# de package() de Alpine (traducido $pkgdir→/out):
32install = '''
33_abuild_phase() {
34./zic -b fat -y ./yearistype -d "/out"/usr/share/zoneinfo $_timezones
35 ./zic -b fat -y ./yearistype -d "/out"/usr/share/zoneinfo/right -L leapseconds $_timezones
36 #./zic -b fat -y ./yearistype -d "/out"/usr/share/zoneinfo/posix $_timezones
37
38 ./zic -b fat -y ./yearistype -d "/out"/usr/share/zoneinfo -p America/New_York
39 install -m444 -t "/out"/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab
40
41 install -Dm755 -t "/out"/usr/sbin zic zdump
42
43 install -Dm644 -t "/out"/usr/share/man/man8 zic.8 zdump.8
44
45 rm -f "/out"/usr/share/zoneinfo/localtime
46 install -Dm755 -t "/out"/usr/bin "$srcdir"/posixtz-$_ptzver/posixtz
47
48 install -Dm644 -t "/out"/usr/share/zoneinfo "$srcdir"/leap-seconds.list
49}
50_abuild_phase
51'''