From 4aa436ceb80ab53388cec4c9c0736ac148322d49 Mon Sep 17 00:00:00 2001 From: sergio Date: Thu, 16 Jul 2026 22:16:02 -0400 Subject: [PATCH] =?UTF-8?q?libarchive=203.8.1:=20receta=20m=C3=ADnima=20(b?= =?UTF-8?q?sdtar=20est=C3=A1tico,=20s=C3=B3lo=20zlib)=20+=20tanda=20para?= =?UTF-8?q?=20el=20worker=20=E2=80=94=20plan-freebsd=20T3.1,=20sha256=20ve?= =?UTF-8?q?rificado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- recipes/libarchive.toml | 41 +++++++++++++++++++++++++++++++++++++ tandas/planes-freebsd-1.txt | 3 +++ 2 files changed, 44 insertions(+) create mode 100644 recipes/libarchive.toml create mode 100644 tandas/planes-freebsd-1.txt diff --git a/recipes/libarchive.toml b/recipes/libarchive.toml new file mode 100644 index 00000000..b368adee --- /dev/null +++ b/recipes/libarchive.toml @@ -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" diff --git a/tandas/planes-freebsd-1.txt b/tandas/planes-freebsd-1.txt new file mode 100644 index 00000000..bcb16115 --- /dev/null +++ b/tandas/planes-freebsd-1.txt @@ -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