diff --git a/recipes/freetype.toml b/recipes/freetype.toml index 8017e400..ac97365f 100644 --- a/recipes/freetype.toml +++ b/recipes/freetype.toml @@ -15,7 +15,18 @@ link = "static" flags = [] [build.phases] -configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static --without-harfbuzz --without-brotli --with-zlib=yes --with-png=yes CPPFLAGS=-I/usr/include LDFLAGS=-L/usr/lib' +# `--with-bzip2=no` EXPLÍCITO, como ya lo están harfbuzz y brotli. Sin él freetype AUTODETECTA +# bzip2, y desde que el lab trae `bzip2-dev` (2026-08-12) lo encuentra y lo graba en su +# `freetype2.pc` como `Requires: zlib, bzip2, libpng`. A partir de ahí, TODA receta que enlace +# freetype con `-all-static` resuelve ese Requires vía pkg-config, pide `-lbz2` y muere: +# «unable to find static system library 'bz2'» — porque los `-dev` de Alpine traen `.so` pero NO `.a`. +# Se llevó por delante `fontconfig` y con él las 27 recetas del escritorio (KDE, GNOME y COSMIC +# dependen de fontconfig). +# +# Se arregla acá y no quitando `bzip2-dev` del lab porque esto mueve el hash de freetype y sus +# dependientes; lo otro re-hashearía el corpus ENTERO por tercera vez en un día. +# freetype no necesita bz2: sólo sirve para fuentes PCF comprimidas con bzip2. +configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static --without-harfbuzz --without-brotli --with-bzip2=no --with-zlib=yes --with-png=yes CPPFLAGS=-I/usr/include LDFLAGS=-L/usr/lib' compile = 'make' install = 'make DESTDIR=/out install'