Also remove workarounds for libgpg-error on Android < 7 as detailed
in https://github.com/termux/termux-packages/issues/933.
TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/
TERMUX_PKG_DESCRIPTION="Implementation of the OpenPGP standard for encrypting and signing data and communication"
TERMUX_PKG_HOMEPAGE=https://www.gnupg.org/
TERMUX_PKG_DESCRIPTION="Implementation of the OpenPGP standard for encrypting and signing data and communication"
-TERMUX_PKG_VERSION=2.1.20
+TERMUX_PKG_VERSION=2.1.21
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
-TERMUX_PKG_SHA256=24cf9a69369be64a9f6f8cc11a1be33ab7780ad77a6a1b93719438f49f69960d
+TERMUX_PKG_SHA256=7aead8a8ba75b69866f583b6c747d91414d523bfdfbe9a8e0fe026b16ba427dd
TERMUX_PKG_DEPENDS="libassuan,libbz2,libgcrypt,libksba,libnpth,readline,pinentry"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ldap --disable-sqlite"
# Remove non-english help files and man pages shipped with the gnupg (1) package:
TERMUX_PKG_DEPENDS="libassuan,libbz2,libgcrypt,libksba,libnpth,readline,pinentry"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-ldap --disable-sqlite"
# Remove non-english help files and man pages shipped with the gnupg (1) package:
+++ /dev/null
-diff -u -r ../gnupg-2.1.11/g10/gpg.c ./g10/gpg.c
---- ../gnupg-2.1.11/g10/gpg.c 2016-01-26 07:05:55.000000000 -0500
-+++ ./g10/gpg.c 2016-04-14 21:42:15.168898294 -0400
-@@ -4669,6 +4669,9 @@
- if (opt.debug)
- gcry_control (GCRYCTL_DUMP_SECMEM_STATS );
-
-+ /* XXX: Workaround for libgpg-error atexit()-callback not working. */
-+ es_fflush(NULL);
-+
- emergency_cleanup ();
-
- rc = rc? rc : log_get_errorcount(0)? 2 : g10_errors_seen? 1 : 0;
+++ /dev/null
-diff -u -r ../gnupg-2.1.11/tools/gpgconf.c ./tools/gpgconf.c
---- ../gnupg-2.1.11/tools/gpgconf.c 2016-01-18 02:14:56.000000000 -0500
-+++ ./tools/gpgconf.c 2016-04-14 20:06:56.058590579 -0400
-@@ -393,5 +395,8 @@
- if (es_fclose (outfp))
- gc_error (1, errno, "error closing '%s'", opt.outfile);
-
-+ /* XXX: Workaround for libgpg-error atexit()-callback not working. */
-+ es_fflush(NULL);
-+
- return 0;
- }