recipes/mtools: GNU mtools 4.0.49 from-source estático (E5/#3 EFI, herramental)
Poblar una ESP FAT sin privilegios (ni loop-mount root) para el arranque UEFI exige mtools (mformat/mcopy/mmd), ausente en el host. Pieza simétrica a xorriso para la rama EFI. zig 0.13.0, estático musl, --without-x, sin deps (iconv built-in de musl). Sella d7892990. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Semantic delta
No definition changed: this change is text, documentation or data.
1 files · +32 −0
- recipes/mtools.toml +32 −0
diff --git a/recipes/mtools.toml b/recipes/mtools.toml
new file mode 100644
index 00000000..55a78516
--- /dev/null
+++ b/recipes/mtools.toml
@@ -0,0 +1,32 @@
+# GNU mtools 4.0.49 — manipular imágenes FAT sin montar (Etapa E5 / refinamiento #3 EFI, herramental).
+#
+# El arranque UEFI exige una ESP (EFI System Partition) FAT con `EFI/BOOT/BOOTX64.EFI`. Poblar una FAT
+# SIN privilegios (ni loop-mount root) requiere mtools (`mformat`/`mcopy`/`mmd`), que el host no trae.
+# Es la pieza simétrica a xorriso para la rama BIOS: herramental de release engineering que corre en el
+# builder para fabricar el medio EFI (`scripts/efi-image.sh`), no un input del 4/4 ni del userland.
+#
+# DE-ALPINIZADO: build vainilla del tarball GNU (ftp.gnu.org), sin parches de distro.
+#
+# SIN DEPS externas: musl trae iconv built-in (no -liconv). `--without-x` quita el toolkit X opcional.
+#
+# COMPILADOR: zig cc con zig 0.13.0 (NO 0.14+, regresión musl). Estático puro: igual que xorriso/openssh,
+# CC override con `-target x86_64-linux-musl` (el sandbox exporta zig nativo, que en -static enlazaría el
+# libc.so del sistema) + LDFLAGS=-static ⇒ binario autocontenido.
+
+name = "mtools"
+version = "4.0.49"
+
+[source]
+tarball = "https://ftp.gnu.org/gnu/mtools/mtools-4.0.49.tar.gz"
+sha256 = "10cd1111da87bf2400a380c1639a6cba8bfb937a24f9c51f5f88d393ae5f6f76"
+
+[build]
+compiler = "zig-cc"
+target = "x86_64-linux-musl"
+link = "static"
+zig_version = "0.13.0"
+
+[build.phases]
+configure = "./configure --prefix=/usr --without-x CC='zig cc -mcpu=baseline -target x86_64-linux-musl' LDFLAGS=-static"
+compile = "make -j\"$(nproc)\""
+install = "make install DESTDIR=/out"