diff --git a/ports/nano/build.sh b/ports/nano/build.sh new file mode 100755 index 00000000..3a4acd5d --- /dev/null +++ b/ports/nano/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash ../install.sh + +NAME='nano' +VERSION='8.5' +DOWNLOAD_URL="https://www.nano-editor.org/dist/v8/nano-$VERSION.tar.xz#000b011d339c141af9646d43288f54325ff5c6e8d39d6e482b787bbc6654c26a" +DEPENDENCIES=('ncurses') +CONFIG_SUB=('config.sub') +CONFIGURE_OPTIONS=( + 'ac_cv_header_glob_h=no' +) + +pre_configure() { + echo '#include_next ' > lib/sys_types.in.h +} diff --git a/ports/nano/patches/0001-implement-getprogname.patch b/ports/nano/patches/0001-implement-getprogname.patch new file mode 100644 index 00000000..79596706 --- /dev/null +++ b/ports/nano/patches/0001-implement-getprogname.patch @@ -0,0 +1,21 @@ +diff -ruN nano-8.5/lib/getprogname.c nano-8.5-banan_os/lib/getprogname.c +--- nano-8.5/lib/getprogname.c 2025-06-12 10:29:39.000000000 +0300 ++++ nano-8.5-banan_os/lib/getprogname.c 2025-08-19 01:25:56.020428849 +0300 +@@ -50,7 +50,7 @@ + # include + #endif + +-#if defined __SCO_VERSION__ || defined __sysv5__ ++#if defined __SCO_VERSION__ || defined __sysv5__ || defined __banan_os__ + # include + # include + #endif +@@ -265,7 +265,7 @@ + } + } + return NULL; +-# elif defined __SCO_VERSION__ || defined __sysv5__ /* SCO OpenServer6/UnixWare */ ++# elif defined __SCO_VERSION__ || defined __sysv5__ || defined __banan_os__ /* SCO OpenServer6/UnixWare */ + char buf[80]; + int fd; + sprintf (buf, "/proc/%d/cmdline", getpid());