From e98ad09f5519437fa077cb9ce44e635468ff4e37 Mon Sep 17 00:00:00 2001 From: Pooya Moradi Date: Sun, 8 Aug 2021 20:35:41 +0430 Subject: [PATCH] Update mc to 4.8.26, Add a patch for tty-ncurses.h (#7288) --- packages/mc/build.sh | 5 ++--- packages/mc/lib-tty-tty_ncurses.patch | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 packages/mc/lib-tty-tty_ncurses.patch diff --git a/packages/mc/build.sh b/packages/mc/build.sh index 50d0a18ff..2a730f9bd 100644 --- a/packages/mc/build.sh +++ b/packages/mc/build.sh @@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/ TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=4.8.25 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_VERSION=4.8.26 TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz -TERMUX_PKG_SHA256=ffc19617f20ebb23330acd3998b7fd559a042d172fa55746d53d246697b2548a +TERMUX_PKG_SHA256=c6deadc50595f2d9a22dc6c299a9f28b393e358346ebf6ca444a8469dc166c27 TERMUX_PKG_DEPENDS="libandroid-support, libiconv, ncurses, glib, openssl, libssh2, zlib" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" ac_cv_lib_util_openpty=no diff --git a/packages/mc/lib-tty-tty_ncurses.patch b/packages/mc/lib-tty-tty_ncurses.patch new file mode 100644 index 000000000..2c16d57bf --- /dev/null +++ b/packages/mc/lib-tty-tty_ncurses.patch @@ -0,0 +1,16 @@ +diff --git a/lib/tty/tty-ncurses.h b/lib/tty/tty-ncurses.h +index 9962c7c41..db8e99101 100644 +--- a/lib/tty/tty-ncurses.h ++++ b/lib/tty/tty-ncurses.h +@@ -2,6 +2,11 @@ + #ifndef MC__TTY_NCURSES_H + #define MC__TTY_NCURSES_H + ++/* for cchar_t, getcchar(), setcchar() */ ++#ifndef _XOPEN_SOURCE_EXTENDED ++#define _XOPEN_SOURCE_EXTENDED ++#endif ++ + #ifdef USE_NCURSES + #ifdef HAVE_NCURSES_CURSES_H + #include