From 6dd6d3d0f38cb451b801e9679340c4bce508be5b Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 18 Mar 2018 21:25:12 +0100 Subject: [PATCH] weechat: Update from 2.0.1 to 2.1 --- packages/weechat/build.sh | 4 ++-- .../weechat/src-gui-curses-headless-main.c.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 packages/weechat/src-gui-curses-headless-main.c.patch diff --git a/packages/weechat/build.sh b/packages/weechat/build.sh index 16ac872b8..4dd1e4ba6 100755 --- a/packages/weechat/build.sh +++ b/packages/weechat/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://weechat.org/ TERMUX_PKG_DESCRIPTION="Fast, light and extensible IRC chat client" -TERMUX_PKG_VERSION=2.0.1 -TERMUX_PKG_SHA256=425f3268fc9cb2a70610554380f1d5711bb8471178ef97159ec85918bea77b4b +TERMUX_PKG_VERSION=2.1 +TERMUX_PKG_SHA256=a83977ba0ecc9d4cf3aac5977266ce9e584a3e05f1d797c2184c6ceb1f47063b TERMUX_PKG_SRCURL=https://www.weechat.org/files/src/weechat-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="ncurses, libgcrypt, libcurl, libgnutls, libandroid-support" # weechat-curses is a symlink to weechat, so remove it: diff --git a/packages/weechat/src-gui-curses-headless-main.c.patch b/packages/weechat/src-gui-curses-headless-main.c.patch new file mode 100644 index 000000000..2e4fcdbf5 --- /dev/null +++ b/packages/weechat/src-gui-curses-headless-main.c.patch @@ -0,0 +1,14 @@ +Submitted upstream at https://github.com/weechat/weechat/pull/1163 + +diff -u -r ../weechat-2.1/src/gui/curses/headless/main.c ./src/gui/curses/headless/main.c +--- ../weechat-2.1/src/gui/curses/headless/main.c 2018-03-18 07:41:40.000000000 +0100 ++++ ./src/gui/curses/headless/main.c 2018-03-18 21:08:49.664939605 +0100 +@@ -72,7 +72,7 @@ + setsid (); + + /* close all file descriptors */ +- for (i = getdtablesize(); i >= 0; --i) ++ for (i = sysconf(_SC_OPEN_MAX); i >= 0; --i) + { + close (i); + }