diff options
Diffstat (limited to 'net-im/profanity')
-rw-r--r-- | net-im/profanity/Makefile | 2 | ||||
-rw-r--r-- | net-im/profanity/files/patch-src_pgp_gpg.c | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/net-im/profanity/Makefile b/net-im/profanity/Makefile index 5055248561f9..01b2a2150527 100644 --- a/net-im/profanity/Makefile +++ b/net-im/profanity/Makefile @@ -1,6 +1,6 @@ PORTNAME= profanity DISTVERSION= 0.14.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-im MASTER_SITES= https://profanity-im.github.io/tarballs/ diff --git a/net-im/profanity/files/patch-src_pgp_gpg.c b/net-im/profanity/files/patch-src_pgp_gpg.c new file mode 100644 index 000000000000..6a7e79214fc9 --- /dev/null +++ b/net-im/profanity/files/patch-src_pgp_gpg.c @@ -0,0 +1,15 @@ +The gpgme_attr_t enums and their functions, which have been marked deprecated +since 2003, were removed in GpgME 2.0.0. The individual result structures +should be used instead. + +--- src/pgp/gpg.c.orig 2023-07-14 05:39:30 UTC ++++ src/pgp/gpg.c +@@ -683,7 +683,7 @@ p_gpg_decrypt(const char* const cipher) + error = gpgme_get_key(ctx, recipient->keyid, &key, 1); + + if (!error && key) { +- const char* addr = gpgme_key_get_string_attr(key, GPGME_ATTR_EMAIL, NULL, 0); ++ const char* addr = key->uids->email; + if (addr) { + g_string_append(recipients_str, addr); + } |