Track de libs fundacionales (pivote tras gmp). Ambas static-musl, gcc: - pcre2 10.47 → libpcre2-8.a + libpcre2-posix.a (regex; dep de pcre2-sys, grep-variants) - libxml2 2.13.9 → libxml2.a (XML/HTML; dep de mucha cola C + crates -sys) FIX CLAVE de comportamiento del lab (causa de los fallos previos, gmp incluido): el lab tiene fases configure Y compile SEPARADAS; si configure se deja vacío, la heurística inyecta su propio ./configure minimal (defaults → python/probe) que corre ANTES y aborta. Solución: definir [build.phases].configure explícito. libxml2 con --without-python/lzma/zlib; configure-phase split lo desbloqueó. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
1.3 KiB
TOML
35 lines
1.3 KiB
TOML
# libxml2 2.13.9 — parser XML/HTML (C). Lib FUNDACIONAL: dep de muchísima cola C + crates *-sys.
|
|
# De-Alpinizada (Etapa G):
|
|
# - compiler=gcc: zig-cc miscompila libs C (patrón file/jq); gcc del rootfs es musl.
|
|
# - --disable-shared --enable-static: el lab linkea estático; queremos libxml2.a en /usr/lib.
|
|
# - core sin compresión/bindings: --without-lzma (no hay xz en corpus), --without-zlib,
|
|
# --without-python (el binding no aplica al userland estático). El parseo XML —el valor— no los pide.
|
|
# - patches CVE de Alpine conservados (seguridad).
|
|
name = "libxml2"
|
|
version = "2.13.9"
|
|
|
|
[source]
|
|
tarball = "https://download.gnome.org/sources/libxml2/2.13/libxml2-2.13.9.tar.xz"
|
|
sha256 = "a2c9ae7b770da34860050c309f903221c67830c86e4a7e760692b803df95143a"
|
|
patches = ["CVE-2026-6732.patch", "CVE-2026-6732-test.patch"]
|
|
|
|
[build]
|
|
compiler = "gcc"
|
|
target = "x86_64-linux-musl"
|
|
link = "static"
|
|
flags = []
|
|
|
|
# configure EXPLÍCITO: si se deja vacío, la heurística del lab inyecta su propio ./configure
|
|
# minimal (defaults → exige python-3.12) que corre antes y aborta. Definirlo lo desactiva.
|
|
[build.phases]
|
|
configure = '''
|
|
./configure \
|
|
--build=$CBUILD --host=$CHOST \
|
|
--prefix=/usr \
|
|
--disable-shared --enable-static \
|
|
--without-python --without-lzma --without-zlib \
|
|
--with-legacy
|
|
'''
|
|
compile = 'make'
|
|
install = 'make DESTDIR=/out install'
|