From 4a72e44163b7ec227513a03a8f8a91bcebb43e91 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 7 Aug 2020 16:00:06 +0300 Subject: [PATCH] rcs: add patch for Android 10 https://github.com/termux/termux-packages/issues/5595 --- packages/rcs/build.sh | 2 +- packages/rcs/lib-vasnprintf.c.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/rcs/lib-vasnprintf.c.patch diff --git a/packages/rcs/build.sh b/packages/rcs/build.sh index 372a1d2f6..ba548cfda 100644 --- a/packages/rcs/build.sh +++ b/packages/rcs/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/s/rcs TERMUX_PKG_DESCRIPTION="The GNU Revision Control System" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=5.9.4 -TERMUX_PKG_REVISION=4 +TERMUX_PKG_REVISION=5 TERMUX_PKG_SRCURL=http://gnu.uberglobalmirror.com/rcs/rcs-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_SHA256=063d5a0d7da1821754b80c639cdae2c82b535c8ff4131f75dc7bbf0cd63a5dff TERMUX_PKG_DEPENDS="diffutils" diff --git a/packages/rcs/lib-vasnprintf.c.patch b/packages/rcs/lib-vasnprintf.c.patch new file mode 100644 index 000000000..095184b5b --- /dev/null +++ b/packages/rcs/lib-vasnprintf.c.patch @@ -0,0 +1,12 @@ +diff -u -r ../m4-1.4.18/lib/vasnprintf.c ./lib/vasnprintf.c +--- ../m4-1.4.18/lib/vasnprintf.c 2016-12-31 13:54:42.000000000 +0000 ++++ ./lib/vasnprintf.c 2019-10-02 19:32:13.576211922 +0000 +@@ -4858,7 +4858,7 @@ + #endif + *fbp = dp->conversion; + #if USE_SNPRINTF +-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) ++# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined(__ANDROID__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0';