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…

TOML 1532Shell 196Rust 108Markdown 993686 Definiciones

⎇ e568f7714b93f40a6468e6701b65b280cdd6bfe6 recipes/curl.toml TOML · 39 líneas · 1.8 KB Historia crudo

static: curl cumple link=static — el binario sellado NO corría en el host 340f8eb5b · sergio ·

1# curl 8.20.0 → libcurl (C). Lib FUNDACIONAL: dep del crate `curl`/curl-sys (hurl y muchos tools),
2# y de cola C de red. De-Alpinizada (Etapa G):
3# - compiler=zig-cc (migrado de gcc, matar-gcc 2026-07-16), configure-split explícito, --disable-shared --enable-static.
4# - TLS vía openssl del corpus (--with-openssl); compresión vía zlib del corpus.
5# - drop de deps ausentes: --disable-ares, --without-{libidn2,nghttp2,libpsl,libssh2}. HTTP/HTTPS ok.
6name    = "curl"
7version = "8.20.0"
8
9[source]
10tarball = "https://curl.se/download/curl-8.20.0.tar.xz"
11sha256  = "63fe2dc148ba0ceae89922ef838f7e5c946272c2e78b7c59fab4b79d3ce2b896"
12
13[build]
14compiler = "zig-cc"
15target   = "x86_64-linux-musl"
16link     = "static"
17flags    = []
18
19[build.phases]
20configure = '''
21./configure --build=$CBUILD --host=$CHOST --prefix=/usr \
22	--disable-shared --enable-static \
23	--with-openssl --with-zlib \
24	--disable-ares --without-libidn2 --without-nghttp2 --without-libpsl --without-libssh2 \
25	--disable-ldap --enable-ipv6 --enable-unix-sockets \
26	--with-ca-path=/etc/ssl/certs
27'''
28# -all-static (patrón de jq/parted/shadow/procps-ng): curl linka CON LIBTOOL, que lee el `-static`
29# del lab como "preferí mis .a", NO como flag al linker ⇒ `link = "static"` se ignoraba EN SILENCIO
30# y el binario salía dinámico (`NEEDED: libz.so.1, libc.so`). `libc.so` es el soname de la musl que
31# zig bundlea; en el host son 255B de linker script ⇒ el curl sellado NO CORRÍA fuera del sandbox
32# ("Error relocating /lib/libz.so.1: __snprintf_chk"). Medido con scripts/static-audit.sh.
33# Va SÓLO en compile e install: en configure rompería los link-tests (no pasan por libtool), y en
34# install porque libtool RELINKEA el binario al instalar.
35compile = 'make LDFLAGS="-all-static -no-pie" -j"$(nproc)"'
36install = 'make DESTDIR=/out install LDFLAGS="-all-static -no-pie"'
37
38[deps]
39build = ["openssl", "zlib", "perl"]