File gpgme-2_0.patch of Package MozillaThunderbird

From: Andreas Stieger <Andreas.Stieger@gmx.de>
Date: Wed, 19 Nov 2025 19:20:49 +0100
Subject: [PATCH] enable use of gpgme >= 2.0
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1253718

Index: thunderbird-140.5.0/comm/mail/extensions/openpgp/content/modules/GPGMELib.sys.mjs
===================================================================
--- thunderbird-140.5.0.orig/comm/mail/extensions/openpgp/content/modules/GPGMELib.sys.mjs
+++ thunderbird-140.5.0/comm/mail/extensions/openpgp/content/modules/GPGMELib.sys.mjs
@@ -78,6 +78,14 @@ function loadExternalGPGMELib() {
     }
 
     if (!libgpgme) {
+      tryLoadGPGME("gpgme", ".45");
+    }
+
+    if (!libgpgme) {
+      tryLoadGPGME("gpgme.45", "");
+    }
+
+    if (!libgpgme) {
       tryLoadGPGME("gpgme", ".11");
     }
 
openSUSE Build Service is sponsored by