From 73a95bd72552aa6b369bd3c27ff61e94a0d33b54 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 9 Jul 2026 08:42:01 +0300 Subject: [PATCH] ports/lynx: Update 2.9.2->2.9.3 and fix compilation --- ports/lynx/build.sh | 11 ++++------- ports/lynx/patches/0001-fix-termios-include.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 ports/lynx/patches/0001-fix-termios-include.patch diff --git a/ports/lynx/build.sh b/ports/lynx/build.sh index 47227866..b8817ac9 100755 --- a/ports/lynx/build.sh +++ b/ports/lynx/build.sh @@ -1,14 +1,11 @@ #!/bin/bash ../install.sh NAME='lynx' -VERSION='2.9.2' -DOWNLOAD_URL="https://invisible-island.net/archives/lynx/tarballs/lynx$VERSION.tar.gz#99f8f28f860094c533100d1cedf058c27fb242ce25e991e2d5f30ece4457a3bf" +VERSION='2.9.3' +DOWNLOAD_URL="https://invisible-island.net/archives/lynx/tarballs/lynx$VERSION.tar.gz#6e99e46980974a6d89eceefbb26ca8c7aa7702b78ecb5bad383b859af225d052" TAR_CONTENT="lynx$VERSION" -DEPENDENCIES=('ncurses' 'openssl' 'zlib') -CONFIG_SUB=('config.sub') +DEPENDENCIES=('ncurses' 'openssl' 'libiconv' 'bzip2' 'zlib' 'zstd') CONFIGURE_OPTIONS=( - '--without-system-type' - '--with-sceen=ncurses' + '--with-screen=ncurses' '--with-ssl' - '--with-zlib' ) diff --git a/ports/lynx/patches/0001-fix-termios-include.patch b/ports/lynx/patches/0001-fix-termios-include.patch new file mode 100644 index 00000000..48bec3fc --- /dev/null +++ b/ports/lynx/patches/0001-fix-termios-include.patch @@ -0,0 +1,12 @@ +diff -ruN lynx-2.9.3/src/LYUtils.c lynx-2.9.3-banan_os/src/LYUtils.c +--- lynx-2.9.3/src/LYUtils.c 2026-05-25 03:27:54.000000000 +0300 ++++ lynx-2.9.3-banan_os/src/LYUtils.c 2026-07-09 02:54:54.881373038 +0300 +@@ -42,7 +42,7 @@ + #if !defined(kbhit) && defined(_WCONIO_DEFINED) + #define kbhit() _kbhit() /* reasonably recent conio.h */ + #endif +-#elif defined(__minix) ++#elif defined(__minix) || defined(__banan_os__) + #include /* for struct winsize */ + + #endif /* __MINGW32__ */