diff options
author | wiz <wiz@pkgsrc.org> | 2017-08-29 11:26:19 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2017-08-29 11:26:19 +0000 |
commit | f531138103f2d8a86b833c2fb91ab81ab4f1196d (patch) | |
tree | 6d257bc91817a8571907a911e3f9b0bdd0157ac4 /security/gpgme | |
parent | cc9e170c218a4d68e5549ba2dd621c9765ea7296 (diff) | |
download | pkgsrc-f531138103f2d8a86b833c2fb91ab81ab4f1196d.tar.gz |
Updated gpgme to 1.9.0.
Drop historic patches; adapt one to upstream changes
and add bug report URL.
Noteworthy changes in version 1.9.0 (2017-03-28)
------------------------------------------------
* Clarified meaning of the 'expire' parameter of gpgme_op_createkey
and gpgme_op_createsubkey. New flag to force a key without an
expiration date.
* New function gpgme_op_keylist_from_data_start to list keys from
data objects without importing them.
* New function gpgme_op_set_uid_flag to flag a key as primary.
* New function gpgme_op_decrypt_ext to run decryption with special
flags. This can for example be used to unwrap keys (remove only
the encryption layer).
* New encryption flags to wrap a key (adding an encryption layer to
an OpenPGP message) or to create anonymously encrypted messages.
* Support for adduid and revuid operations in the C++ bindings.
* Support for smartcard key generation in the C++ bindings.
* Several new functions for the Python binding.
* Many smaller bug fixes.
* Interface changes relative to the 1.8.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme_op_createkey CHANGED: Meaning of 'expire' parameter.
gpgme_op_createsubkey CHANGED: Meaning of 'expire' parameter.
GPGME_CREATE_NOEXPIRE NEW.
gpgme_key_t EXTENDED: New field 'origin'.
gpgme_key_t EXTENDED: New field 'last_update'.
gpgme_subkey_t EXTENDED: New field 'is_de_vs'.
gpgme_user_id_t EXTENDED: New field 'origin'.
gpgme_user_id_t EXTENDED: New field 'last_update'.
gpgme_op_keylist_from_data_start NEW.
gpgme_op_set_uid_flag_start NEW.
gpgme_op_set_uid_flag NEW.
gpgme_op_decrypt_ext_start NEW.
gpgme_op_decrypt_ext NEW.
GPGME_ENCRYPT_THROW_KEYIDS NEW.
GPGME_ENCRYPT_WRAP NEW.
GPGME_DECRYPT_VERIFY NEW.
GPGME_DECRYPT_UNWRAP NEW.
gpgme_data_rewind UN-DEPRECATE.
cpp: Context::revUid(const Key&, const char*) NEW.
cpp: Context::startRevUid(const Key&, const char*) NEW.
cpp: Context::addUid(const Key&, const char*) NEW.
cpp: Context::startAddUid(const Key&, const char*) NEW.
cpp: Key::UserID::revoke() NEW.
cpp: Key::addUid() NEW.
cpp: Key::isDeVs NEW.
cpp: GpgGenCardKeyInteractor NEW.
cpp: Subkey::keyGrip NEW.
cpp: Subkey::isDeVs NEW.
cpp: Data::toKeys NEW.
cpp: Context::setDecryptFlags NEW.
cpp: Context::decrypt EXTENDED: Flags added.
cpp: Context::startDecrypt EXTENDED: Flags added.
cpp: Context::decryptAndVerify EXTENDED: Flags added.
cpp: Context::startCombinedDecryptionAndVerification EXTENDED: Flags.
cpp: Context::encryptFlags EXTENDED: New flags.
qt: CryptoConfig::stringValueList() NEW.
py: Context.__init__ EXTENDED: New keyword arg home_dir.
py: Context.home_dir NEW.
py: Context.keylist EXTENDED: New keyword arg mode.
py: Context.keylist EXTENDED: New keyword arg source.
py: Context.create_key NEW.
py: Context.create_subkey NEW.
py: Context.key_add_uid NEW.
py: Context.key_revoke_uid NEW.
py: Context.key_sign NEW.
py: Context.key_tofu_policy NEW.
py: core.pubkey_algo_string NEW.
py: core.addrspec_from_uid NEW.
[c=C29/A18/R0 cpp=C10/A4/R0 qt=C9/A2/R0]
Diffstat (limited to 'security/gpgme')
-rw-r--r-- | security/gpgme/Makefile | 33 | ||||
-rw-r--r-- | security/gpgme/PLIST | 3 | ||||
-rw-r--r-- | security/gpgme/distinfo | 16 | ||||
-rw-r--r-- | security/gpgme/patches/patch-ac | 21 | ||||
-rw-r--r-- | security/gpgme/patches/patch-ae | 14 | ||||
-rw-r--r-- | security/gpgme/patches/patch-af | 23 | ||||
-rw-r--r-- | security/gpgme/patches/patch-ag | 14 | ||||
-rw-r--r-- | security/gpgme/patches/patch-ah | 24 |
8 files changed, 21 insertions, 127 deletions
diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile index dca44d37703..8ebfed15bfb 100644 --- a/security/gpgme/Makefile +++ b/security/gpgme/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.83 2017/08/10 18:49:17 tron Exp $ +# $NetBSD: Makefile,v 1.84 2017/08/29 11:26:19 wiz Exp $ -DISTNAME= gpgme-1.8.0 -PKGREVISION= 1 +DISTNAME= gpgme-1.9.0 CATEGORIES= security MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/ EXTRACT_SUFX= .tar.bz2 @@ -18,10 +17,6 @@ GNU_CONFIGURE= yes PTHREAD_OPTS+= require INFO_FILES= yes -# turn off swig/python detection; there is no configure flag as of 1.8.0 -# https://dev.gnupg.org/T3057 -CONFIGURE_ENV+= ac_cv_path_SWIG= - SUBST_CLASSES+= pthread SUBST_FILES.pthread= src/gpgme-config.in SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g' @@ -31,34 +26,16 @@ SUBST_STAGE.pthread= post-patch CPPFLAGS.Darwin= -D_POSIX_C_SOURCE=200809L LIBS.SunOS+= -lnsl -lsocket -# getenv_r is not detected correctly. It will be found -# in either base system or librfuncs -CONFIGURE_ENV+= ac_cv_func_getenv_r=yes - -# 17 errors as of 1.8.0 +# 18 errors as of 1.9.0 # https://dev.gnupg.org/T3056 TEST_TARGET= check -.include "../../mk/pthread.buildlink3.mk" - .include "options.mk" -CONFIGURE_ENV.HPUX+= ac_cv_lib_pthread_pthread_create=yes - -.include "../../mk/bsd.prefs.mk" - -# TLS is unsupported on NetBSD<=5, but causes crashes on -current too -#.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*) -.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) -CONFIGURE_ENV+= gpgme_cv_tls_works=no -.endif - -# we want the getenv_r() semantics of NetBSD-current -BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1 -.include "../../devel/librfuncs/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" BUILDLINK_API_DEPENDS.libassuan+= libassuan>=2.0.2 .include "../../security/libassuan2/buildlink3.mk" BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.17 .include "../../security/libgpg-error/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -_UNWRAP_FILES= +#_UNWRAP_FILES= diff --git a/security/gpgme/PLIST b/security/gpgme/PLIST index d41f69588c7..a2a61c53d21 100644 --- a/security/gpgme/PLIST +++ b/security/gpgme/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.19 2017/08/01 11:48:20 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.20 2017/08/29 11:26:19 wiz Exp $ bin/gpgme-config bin/gpgme-tool include/gpgme++/configuration.h @@ -15,6 +15,7 @@ include/gpgme++/exception.h include/gpgme++/global.h include/gpgme++/gpgadduserideditinteractor.h include/gpgme++/gpgagentgetinfoassuantransaction.h +include/gpgme++/gpggencardkeyinteractor.h include/gpgme++/gpgmefw.h include/gpgme++/gpgmepp_export.h include/gpgme++/gpgmepp_version.h diff --git a/security/gpgme/distinfo b/security/gpgme/distinfo index 9ff4414140a..b029ced7976 100644 --- a/security/gpgme/distinfo +++ b/security/gpgme/distinfo @@ -1,12 +1,8 @@ -$NetBSD: distinfo,v 1.37 2017/03/31 10:31:57 wiz Exp $ +$NetBSD: distinfo,v 1.38 2017/08/29 11:26:19 wiz Exp $ -SHA1 (gpgme-1.8.0.tar.bz2) = efa043064dbf675fd713228c6fcfcc4116feb221 -RMD160 (gpgme-1.8.0.tar.bz2) = b21a322ddbaf160538267cf201aeec207b8287f6 -SHA512 (gpgme-1.8.0.tar.bz2) = 9f214a44ddc4d602c2a0befc66aa6be9f2c90a24e153b873475867e30eec30e074826b98c11d20b0a2e4cd04e2625ce2545220481225fceb6ca9c51d3208e3de -Size (gpgme-1.8.0.tar.bz2) = 1298407 bytes +SHA1 (gpgme-1.9.0.tar.bz2) = 870719cd3d2ef6a7fcb1d6af9ce5446edba7bfc3 +RMD160 (gpgme-1.9.0.tar.bz2) = 55719b4a7263ae8d0ef79205e26409ff5693ea27 +SHA512 (gpgme-1.9.0.tar.bz2) = 2a33343e907d9d70cc57dc1ef4e1c01995e1030bb0db937f44435643d6abfbb1bd55d52ba241701fa702783ebf035c09941131604fd8a811474b8bee41afccc8 +Size (gpgme-1.9.0.tar.bz2) = 1344222 bytes SHA1 (patch-aa) = 6b81bc9b6b17f14329e0dbf1917d1352c142c072 -SHA1 (patch-ac) = 4862ec21f1d5f4fc6e58d761b0514a28af19346b -SHA1 (patch-ae) = 1259739c4690db656bc5b6113842b1d5c4623616 -SHA1 (patch-af) = 99787938b677f291a84eae57fa29be60890f444b -SHA1 (patch-ag) = e41a315f9b3fa4a80bcc439f6be21ded0bc0b063 -SHA1 (patch-ah) = 84c9ad8c0c0e16584261cbb9c92e3073ce94da48 +SHA1 (patch-af) = 972982cd34315b2163d14919982f5d5b8fff1000 diff --git a/security/gpgme/patches/patch-ac b/security/gpgme/patches/patch-ac deleted file mode 100644 index 1d6957fd7be..00000000000 --- a/security/gpgme/patches/patch-ac +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-ac,v 1.12 2017/03/31 10:31:57 wiz Exp $ - ---- configure.orig 2016-11-16 12:46:37.000000000 +0000 -+++ configure -@@ -2784,6 +2784,7 @@ $as_echo "$as_me: creating cache $cache_ - fi - - as_fn_append ac_header_list " locale.h" -+as_fn_append ac_header_list " rfuncs.h" - as_fn_append ac_header_list " sys/select.h" - as_fn_append ac_header_list " sys/uio.h" - as_fn_append ac_header_list " argp.h" -@@ -21175,7 +21176,7 @@ main () - return 0; - } - _ACEOF --if ac_fn_c_try_compile "$LINENO"; then : -+if ac_fn_c_try_link "$LINENO"; then : - gpgme_cv_tls_works=yes - else - gpgme_cv_tls_works=no diff --git a/security/gpgme/patches/patch-ae b/security/gpgme/patches/patch-ae deleted file mode 100644 index 120f6583ffd..00000000000 --- a/security/gpgme/patches/patch-ae +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-ae,v 1.6 2011/08/11 11:15:00 adam Exp $ - ---- src/engine-gpgsm.c.orig 2011-01-19 11:37:44.000000000 +0000 -+++ src/engine-gpgsm.c -@@ -33,6 +33,9 @@ - #ifdef HAVE_UNISTD_H - # include <unistd.h> - #endif -+#if HAVE_RFUNCS_H -+# include <rfuncs.h> -+#endif - #ifdef HAVE_LOCALE_H - #include <locale.h> - #endif diff --git a/security/gpgme/patches/patch-af b/security/gpgme/patches/patch-af index 74192f83bf7..719ad585c5b 100644 --- a/security/gpgme/patches/patch-af +++ b/security/gpgme/patches/patch-af @@ -1,18 +1,11 @@ -$NetBSD: patch-af,v 1.6 2009/11/15 18:41:55 drochner Exp $ +$NetBSD: patch-af,v 1.7 2017/08/29 11:26:20 wiz Exp $ ---- src/get-env.c.orig 2004-12-07 21:47:40.000000000 +0100 +Add missing getenv_r() support. +https://dev.gnupg.org/T3376 + +--- src/get-env.c.orig 2016-11-16 12:22:41.000000000 +0000 +++ src/get-env.c -@@ -22,6 +22,9 @@ - #include <config.h> - #endif - #include <stdlib.h> -+#if HAVE_RFUNCS_H -+#include <rfuncs.h> -+#endif - #include <errno.h> - #include <string.h> - -@@ -53,7 +56,25 @@ _gpgme_getenv (const char *name, char ** +@@ -53,7 +53,25 @@ _gpgme_getenv (const char *name, char ** #else @@ -34,9 +27,9 @@ $NetBSD: patch-af,v 1.6 2009/11/15 18:41:55 drochner Exp $ + errno = ENOMEM; + } + if (!*value && errno != ENOENT) -+ return gpg_error_from_errno (errno); ++ return gpg_error_from_syserror (); + else -+ return (0); ++ return 0; +} #endif diff --git a/security/gpgme/patches/patch-ag b/security/gpgme/patches/patch-ag deleted file mode 100644 index 7d129c1308e..00000000000 --- a/security/gpgme/patches/patch-ag +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-ag,v 1.5 2017/03/31 10:31:57 wiz Exp $ - ---- config.h.in.orig 2016-11-16 12:29:36.000000000 +0000 -+++ config.h.in -@@ -77,6 +77,9 @@ - /* If available, contains the Python version number currently in use. */ - #undef HAVE_PYTHON - -+/* Define to 1 if you have the <rfuncs.h> header file. */ -+#undef HAVE_RFUNCS_H -+ - /* Define to 1 if you have the `setenv' function. */ - #undef HAVE_SETENV - diff --git a/security/gpgme/patches/patch-ah b/security/gpgme/patches/patch-ah deleted file mode 100644 index 436d23e688f..00000000000 --- a/security/gpgme/patches/patch-ah +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ah,v 1.3 2009/11/15 18:41:55 drochner Exp $ - ---- src/error.c.orig 2005-09-08 14:42:31.000000000 +0000 -+++ src/error.c -@@ -22,6 +22,10 @@ - #include <config.h> - #endif - -+#if HAVE_RFUNCS_H -+#include <rfuncs.h> -+#endif -+ - #include <gpgme.h> - - /* Return a pointer to a string containing a description of the error -@@ -43,7 +47,7 @@ gpgme_strerror (gpgme_error_t err) - int - gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen) - { -- return gpg_strerror_r (err, buf, buflen); -+ return strerror_r (err, buf, buflen); - } - - |