File: pgp-Allow-build-with-gpgme-2.0.0.patch

package info (click to toggle)
seahorse 47.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,364 kB
  • sloc: ansic: 16,763; xml: 249; python: 27; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Xi Ruoyao <xry111@xry111.site>
Date: Wed, 4 Jun 2025 19:17:00 +0800
Subject: pgp: Allow build with gpgme >= 2.0.0

Since gpgme-2.0.0, GPGME_EVENT_NEXT_TRUSTITEM is removed.

(cherry picked from commit aa68522cc696fa491ccfdff735b77bcf113168d0)

Origin: upstream, after 47.0.1
---
 pgp/seahorse-gpgme.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pgp/seahorse-gpgme.c b/pgp/seahorse-gpgme.c
index 4d47d8d..89641e0 100644
--- a/pgp/seahorse-gpgme.c
+++ b/pgp/seahorse-gpgme.c
@@ -484,7 +484,9 @@ on_gpgme_event (void *user_data,
 		break;
 
 	case GPGME_EVENT_NEXT_KEY:
+#if GPGME_VERSION_NUMBER < 0x020000
 	case GPGME_EVENT_NEXT_TRUSTITEM:
+#endif
 	default:
 		/* Ignore unsupported event types */
 		break;