From 18169b6f52c40e68724ebbc2c77d02c25e71210c Mon Sep 17 00:00:00 2001 From: yumaokao Date: Mon, 15 May 2017 16:57:59 -0500 Subject: [PATCH] libgpg-error: workaround no stdout atexit with constructor prior to N (#1017) --- packages/libgpg-error/atexit.patch | 14 ++++++++++++++ packages/libgpg-error/build.sh | 1 + 2 files changed, 15 insertions(+) create mode 100644 packages/libgpg-error/atexit.patch diff --git a/packages/libgpg-error/atexit.patch b/packages/libgpg-error/atexit.patch new file mode 100644 index 00000000..f492409d --- /dev/null +++ b/packages/libgpg-error/atexit.patch @@ -0,0 +1,14 @@ +--- src/src/estream.c 2017-02-28 09:11:05.000000000 +0000 ++++ ./_patches/estream.c 2017-05-14 23:41:57.522426391 +0000 +@@ -510,7 +510,11 @@ + { + static int initialized; + ++#ifdef __ANDROID__ ++ if (initialized < 2) ++#else + if (!initialized) ++#endif + { + initialized = 1; + atexit (do_deinit); diff --git a/packages/libgpg-error/build.sh b/packages/libgpg-error/build.sh index 3b96f421..df12b04f 100755 --- a/packages/libgpg-error/build.sh +++ b/packages/libgpg-error/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/related_software/libgpg-error/ TERMUX_PKG_DESCRIPTION="Small library that defines common error values for all GnuPG components" TERMUX_PKG_VERSION=1.27 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=4f93aac6fecb7da2b92871bb9ee33032be6a87b174f54abf8ddf0911a22d29d2 TERMUX_PKG_RM_AFTER_INSTALL="share/common-lisp" -- 2.11.0