From 8458602687ad0f4eebd56b5fd239f5302cf144b6 Mon Sep 17 00:00:00 2001 From: sergio Date: Sun, 21 Jun 2026 12:07:50 -0400 Subject: [PATCH] =?UTF-8?q?Etapa=20G:=20nano=20=E2=80=94=20editor=20de=20t?= =?UTF-8?q?exto=20al=20userland=20(65=E2=86=9266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nano 9.0: editor de terminal real, segundo consumidor de ncurses tras htop/less (API curses widec). deps.build=[ncurses, linux-headers]; gueto gcc; sale static-pie y corre. Redondea el userland con un editor de verdad. --disable-libmagic/-nls (libmagic/gettext no en corpus, sólo autodetección/i18n). Publicado al repo (66). --- recipes/nano.toml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 recipes/nano.toml diff --git a/recipes/nano.toml b/recipes/nano.toml new file mode 100644 index 00000000..1ff44286 --- /dev/null +++ b/recipes/nano.toml @@ -0,0 +1,31 @@ +# nano 9.0 — editor de texto de terminal. Etapa G, tier-2 C. Consumidor de ncurses (TUI real); rendondea +# el userland con un editor de verdad. Destrabado por recipes/ncurses.toml. +# +# Importada de Alpine aports; ajustes: URL fija (`v9/nano-9.0.tar.xz`; el import dejó `${pkgver%%.*}` +# sin expandir) + sha256 oficial. El tarball trae `configure`. +# +# deps.build = ["ncurses", "linux-headers"]: nano usa la API curses widec (-lncursesw) + headers de +# Linux. --disable-libmagic (no tenemos libmagic como lib; sólo afecta autodetección de tipo de +# fichero) + --disable-nls (sin gettext). gueto gcc (zig-cc miscompila estos C; ver file/jq). link= +# static + nano enlaza el binario sin libtool ⇒ LDFLAGS=-static del lab basta (static-pie). +# $CBUILD/$CHOST los da el lab (build==host ⇒ nativo). + +name = "nano" +version = "9.0" + +[source] +tarball = "https://www.nano-editor.org/dist/v9/nano-9.0.tar.xz" +sha256 = "9f384374b496110a25b73ad5a5febb384783c6e3188b37063f677ac908013fde" + +[build] +compiler = "gcc" +target = "x86_64-linux-musl" +link = "static" + +[build.phases] +configure = "./configure --build=$CBUILD --host=$CHOST --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-libmagic --disable-nls" +compile = "make -j\"$(nproc)\"" +install = "make DESTDIR=/out install" + +[deps] +build = ["ncurses", "linux-headers"]