summaryrefslogtreecommitdiff
path: root/external/gpgmepp
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-11-06 20:56:11 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-11-08 22:49:42 +0100
commit96fb0457f49975a7e9a90eb92442e678b5d279ba (patch)
tree9024674f7c8922574856163b8d63393c04a0180a /external/gpgmepp
parent383067b41647e70e0a304bddf529aacfe015099f (diff)
gpgme: Upgrade to 1.24.0
* external/gpgmepp/gettid.patch fixes /opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: ./.libs/libgpgme.so: undefined reference to `gettid' * external/gpgmepp/strcasecmp.patch fixes libgpgme.lib(key.obj) : error LNK2019: unresolved external symbol _strcasecmp referenced in function __gpgme_key_append_name Downloaded from https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.24.0.tar.bz2 Change-Id: I2f2587f5157db7610d6ffaa84b49f9677ba1cc4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176160 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'external/gpgmepp')
-rw-r--r--external/gpgmepp/ExternalPackage_gpgmepp.mk4
-rw-r--r--external/gpgmepp/UnpackedTarball_gpgmepp.mk2
-rw-r--r--external/gpgmepp/gettid.patch14
-rw-r--r--external/gpgmepp/strcasecmp.patch14
-rw-r--r--external/gpgmepp/w32-fix-win32-macro.patch.111
-rw-r--r--external/gpgmepp/w32-include.patch20
6 files changed, 32 insertions, 33 deletions
diff --git a/external/gpgmepp/ExternalPackage_gpgmepp.mk b/external/gpgmepp/ExternalPackage_gpgmepp.mk
index be32afd6b324..098df90cefd8 100644
--- a/external/gpgmepp/ExternalPackage_gpgmepp.mk
+++ b/external/gpgmepp/ExternalPackage_gpgmepp.mk
@@ -15,8 +15,8 @@ ifneq ($(DISABLE_DYNLOADING),TRUE)
ifeq ($(OS),LINUX)
-$(eval $(call gb_ExternalPackage_add_file,gpgmepp,$(LIBO_LIB_FOLDER)/libgpgmepp.so.6,lang/cpp/src/.libs/libgpgmepp.so.6.20.1))
-$(eval $(call gb_ExternalPackage_add_file,gpgmepp,$(LIBO_LIB_FOLDER)/libgpgme.so.11,src/.libs/libgpgme.so.11.32.1))
+$(eval $(call gb_ExternalPackage_add_file,gpgmepp,$(LIBO_LIB_FOLDER)/libgpgmepp.so.6,lang/cpp/src/.libs/libgpgmepp.so.6.21.0))
+$(eval $(call gb_ExternalPackage_add_file,gpgmepp,$(LIBO_LIB_FOLDER)/libgpgme.so.11,src/.libs/libgpgme.so.11.33.0))
else ifeq ($(OS),MACOSX)
diff --git a/external/gpgmepp/UnpackedTarball_gpgmepp.mk b/external/gpgmepp/UnpackedTarball_gpgmepp.mk
index dcbda38d591d..58126ba4a29d 100644
--- a/external/gpgmepp/UnpackedTarball_gpgmepp.mk
+++ b/external/gpgmepp/UnpackedTarball_gpgmepp.mk
@@ -24,9 +24,11 @@ $(eval $(call gb_UnpackedTarball_add_patches,gpgmepp, \
$(if $(filter MSC,$(COM)),external/gpgmepp/w32-fix-win32-macro.patch.1) \
$(if $(filter MSC,$(COM)),external/gpgmepp/w32-fix-libtool.patch.1) \
$(if $(filter MSC,$(COM)),external/gpgmepp/w32-add-initializer.patch.1) \
+ $(if $(filter MSC,$(COM)),external/gpgmepp/strcasecmp.patch) \
external/gpgmepp/w32-build-fixes-2.patch \
$(if $(filter LINUX,$(OS)),external/gpgmepp/asan.patch) \
$(if $(filter LINUX,$(OS)),external/gpgmepp/rpath.patch) \
+ $(if $(filter LINUX,$(OS)),external/gpgmepp/gettid.patch) \
external/gpgmepp/ubsan.patch \
external/gpgmepp/c++20.patch \
external/gpgmepp/clang-cl.patch \
diff --git a/external/gpgmepp/gettid.patch b/external/gpgmepp/gettid.patch
new file mode 100644
index 000000000000..292cc4a4baa7
--- /dev/null
+++ b/external/gpgmepp/gettid.patch
@@ -0,0 +1,14 @@
+--- src/debug.c 2024-11-08 13:08:06.174085089 +0100
++++ src/debug.c 2024-11-08 13:11:43.133601548 +0100
+@@ -152,8 +152,10 @@
+ #ifdef HAVE_W32_SYSTEM
+ thread = (uintptr_t)GetCurrentThreadId ();
+ #elif defined(__linux)
++#ifdef SYS_gettid
+ thread = (uintptr_t)gettid ();
+ #endif
++#endif
+ if (sizeof (thread) < len)
+ {
+ int zerolen = len;
+
diff --git a/external/gpgmepp/strcasecmp.patch b/external/gpgmepp/strcasecmp.patch
new file mode 100644
index 000000000000..4dc382a07b03
--- /dev/null
+++ b/external/gpgmepp/strcasecmp.patch
@@ -0,0 +1,14 @@
+--- src/key.c 2024-11-08 20:45:01.826019597 +0100
++++ src/key.c 2024-11-08 20:46:15.369716357 +0100
+@@ -19,6 +19,10 @@
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
++#ifdef _MSC_VER
++# define strcasecmp _stricmp
++#endif
++
+ #if HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+
diff --git a/external/gpgmepp/w32-fix-win32-macro.patch.1 b/external/gpgmepp/w32-fix-win32-macro.patch.1
index 8ab7b0fab089..7041385f7962 100644
--- a/external/gpgmepp/w32-fix-win32-macro.patch.1
+++ b/external/gpgmepp/w32-fix-win32-macro.patch.1
@@ -121,17 +121,6 @@ diff -ur gpgmepp.org/lang/cpp/src/key.cpp gpgmepp/lang/cpp/src/key.cpp
const GpgME::Key::Null GpgME::Key::null;
namespace GpgME
-diff -ur gpgmepp.org/lang/cpp/src/key.h gpgmepp/lang/cpp/src/key.h
---- gpgmepp.org/lang/cpp/src/key.h 2017-03-20 20:10:15.000000000 +0100
-+++ gpgmepp/lang/cpp/src/key.h 2017-11-20 17:07:51.551632000 +0100
-@@ -30,7 +30,6 @@
- #include "gpgmefw.h"
-
- #include <memory>
--#include <sys/time.h>
-
- #include <vector>
- #include <algorithm>
diff -ur gpgmepp.org/lang/qt/src/qgpgme_export.h gpgmepp/lang/qt/src/qgpgme_export.h
--- gpgmepp.org/lang/qt/src/qgpgme_export.h 2016-11-03 17:32:30.000000000 +0100
+++ gpgmepp/lang/qt/src/qgpgme_export.h 2017-11-20 16:58:27.395388000 +0100
diff --git a/external/gpgmepp/w32-include.patch b/external/gpgmepp/w32-include.patch
index 0fda72c2b072..30fdba5f8f26 100644
--- a/external/gpgmepp/w32-include.patch
+++ b/external/gpgmepp/w32-include.patch
@@ -20,23 +20,3 @@
#include <process.h>
#include "priv-io.h"
---- lang/cpp/src/gpgaddexistingsubkeyeditinteractor.h
-+++ lang/cpp/src/gpgaddexistingsubkeyeditinteractor.h
-@@ -27,6 +27,7 @@
- #include "editinteractor.h"
-
- #include <memory>
-+#include <string>
-
- namespace GpgME
- {
---- lang/cpp/src/gpgrevokekeyeditinteractor.h
-+++ lang/cpp/src/gpgrevokekeyeditinteractor.h
-@@ -28,6 +28,7 @@
- #include "global.h"
-
- #include <memory>
-+#include <string>
- #include <vector>
-
- namespace GpgME