From d10b51ea0a54e0950f5881d1e4277056ee621d67 Mon Sep 17 00:00:00 2001 From: sergio Date: Wed, 24 Jun 2026 14:12:50 -0400 Subject: [PATCH] =?UTF-8?q?Etapa=20G:=20libs=20C=20base=20libssh2=20+=20li?= =?UTF-8?q?bpng=20+=20libyaml=20(corpus=20246=E2=86=92249)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libssh2 1.11.1 (libssh2.a, crypto openssl), libpng 1.6.58 (libpng16.a vs zlib), libyaml 0.2.5 (libyaml.a). GOTCHA: libpng usa AC_CHECK_LIB link-test para zlib (no pkg-config) ⇒ requiere CPPFLAGS=-I/usr/include LDFLAGS=-L/usr/lib explícitos. Co-Authored-By: Claude Opus 4.8 --- recipes/libpng.toml | 18 ++++++++++++++++++ recipes/libssh2.toml | 18 ++++++++++++++++++ recipes/libyaml.toml | 16 ++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 recipes/libpng.toml create mode 100644 recipes/libssh2.toml create mode 100644 recipes/libyaml.toml diff --git a/recipes/libpng.toml b/recipes/libpng.toml new file mode 100644 index 00000000..c265a20c --- /dev/null +++ b/recipes/libpng.toml @@ -0,0 +1,18 @@ +# libpng 1.6.58 → libpng16.a (C, autotools). Lib base imágenes: png crates, cola gráfica. +# De-Alpinizada: compiler=gcc, configure-split, contra zlib del corpus, estático. +name = "libpng" +version = "1.6.58" +[source] +tarball = "https://downloads.sourceforge.net/libpng/libpng-1.6.58.tar.gz" +sha256 = "8c9b05b675ca7301a458df2c2e46f26e1d41ff36b8863f8c33530bc58c2e6225" +[build] +compiler = "gcc" +target = "x86_64-linux-musl" +link = "static" +flags = [] +[build.phases] +configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static CPPFLAGS=-I/usr/include LDFLAGS=-L/usr/lib' +compile = 'make' +install = 'make DESTDIR=/out install' +[deps] +build = ["zlib"] diff --git a/recipes/libssh2.toml b/recipes/libssh2.toml new file mode 100644 index 00000000..23f89da7 --- /dev/null +++ b/recipes/libssh2.toml @@ -0,0 +1,18 @@ +# libssh2 1.11.1 → libssh2.a (C, autotools). Lib base SSH: ssh2-sys (git tools, scp/sftp). +# De-Alpinizada: compiler=gcc, configure-split, crypto vía openssl del corpus, estático. +name = "libssh2" +version = "1.11.1" +[source] +tarball = "https://www.libssh2.org/download/libssh2-1.11.1.tar.gz" +sha256 = "d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7" +[build] +compiler = "gcc" +target = "x86_64-linux-musl" +link = "static" +flags = [] +[build.phases] +configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static --with-crypto=openssl --disable-examples-build' +compile = 'make' +install = 'make DESTDIR=/out install' +[deps] +build = ["openssl", "zlib"] diff --git a/recipes/libyaml.toml b/recipes/libyaml.toml new file mode 100644 index 00000000..0376d5f8 --- /dev/null +++ b/recipes/libyaml.toml @@ -0,0 +1,16 @@ +# libyaml 0.2.5 → libyaml.a (C, autotools). Lib base YAML: yaml-sys, parsers. Tarball release +# (el repo git no trae configure). De-Alpinizada: compiler=gcc, configure-split, estático. +name = "libyaml" +version = "0.2.5" +[source] +tarball = "https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz" +sha256 = "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4" +[build] +compiler = "gcc" +target = "x86_64-linux-musl" +link = "static" +flags = [] +[build.phases] +configure = './configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-shared --enable-static' +compile = 'make' +install = 'make DESTDIR=/out install'