libarchive 3.8.1: receta mínima (bsdtar estático, sólo zlib) + tanda para el worker — plan-freebsd T3.1, sha256 verificado

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 22:16:02 -04:00
co-authored by Claude Fable 5
parent 6ef9f2b4a8
commit 4aa436ceb8
2 changed files with 44 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
# libarchive 3.8.1 (bsdtar/bsdcpio) — plan-freebsd T3.1: el único export de código real de
# FreeBSD. Dos usos: (1) extractor de REFERENCIA CRUZADA del formato — donde hammer serializa
# árboles, extraer con bsdtar y comparar = consenso de implementación aplicado al contenedor
# (T3.2, espíritu del cierre §1 sobre el formato, no sobre el build); (2) dep de build opcional
# para tarballs exóticos donde busybox tar se queda corto (T3.3).
#
# Mínima a propósito: sólo zlib (gzip). xz/zstd/bz2 tienen receta en el catálogo y se activan
# cuando el uso T3.2 lo pida — cada `--with-*` es una línea en [deps] y un re-sellado, no un
# framework. iconv va embebido en musl ⇒ --without-iconv. --disable-shared ⇒ bsdtar enlaza
# libarchive.a (contrato link=static, mismo patrón que zlib/tar).
#
# PENDIENTE construir en el WORKER (el laptop no compila recetas C). sha256 verificado del
# tarball de GitHub releases 2026-07-16.
name = "libarchive"
version = "3.8.1"
[source]
tarball = "https://github.com/libarchive/libarchive/releases/download/v3.8.1/libarchive-3.8.1.tar.xz"
sha256 = "19f917d42d530f98815ac824d90c7eaf648e9d9a50e4f309c812457ffa5496b5"
[build]
compiler = "zig-cc"
target = "x86_64-linux-musl"
link = "static"
[deps]
build = ["busybox", "make", "zlib"]
[build.phases]
# -fno-sanitize=undefined: mismo motivo que zlib — sin él, zig cc emite llamadas UBSan que el
# libarchive.a estático arrastraría a todo consumidor.
configure = """
CFLAGS='-O2 -fno-sanitize=undefined' ./configure --prefix=/usr \
--enable-static --disable-shared --enable-bsdtar --enable-bsdcpio \
--with-zlib --without-bz2lib --without-lzma --without-zstd --without-lz4 \
--without-lzo2 --without-libb2 --without-iconv --without-xml2 --without-expat \
--without-openssl --without-nettle --without-cng --disable-acl --disable-xattr
"""
compile = "make -j\"$(nproc)\""
install = "make DESTDIR=/out install"
+3
View File
@@ -0,0 +1,3 @@
# planes-freebsd-1 — cola worker de los planes 2026-07-16 (plan-freebsd T3.1)
# libarchive: receta lista en recipes/libarchive.toml, sha256 verificado; sólo falta construir.
libarchive