diff options
author | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-12-28 21:45:45 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-01-05 09:52:35 +0100 |
commit | 7d50d74d0a10b4811b82f66dc5ac5a696c2974c7 (patch) | |
tree | c9a624a95d059102e4b721dd6ab5cfe476e6fb60 | |
parent | 44c37c4af2d23d1469cdeeb56f2f5a2bef493986 (diff) |
Update libgpg-error to 1.43
Change-Id: Iecd4a131f9c5b43bb03c5f9c4b6c7efe36e443aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127663
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r-- | download.lst | 4 | ||||
-rw-r--r-- | external/libgpg-error/ExternalPackage_libgpg-error.mk | 2 | ||||
-rw-r--r-- | external/libgpg-error/w32-build-fixes-5.patch | 64 |
3 files changed, 35 insertions, 35 deletions
diff --git a/download.lst b/download.lst index 92aa9dd07dc8..1ae0c34178ba 100644 --- a/download.lst +++ b/download.lst @@ -152,8 +152,8 @@ export LIBEXTTEXTCAT_SHA256SUM := 6d77eace20e9ea106c1330e268ede70c9a4a89744ddc25 export LIBEXTTEXTCAT_TARBALL := libexttextcat-3.4.6.tar.xz export LIBFFI_SHA256SUM := 72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056 export LIBFFI_TARBALL := libffi-3.3.tar.gz -export LIBGPGERROR_SHA256SUM := b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763 -export LIBGPGERROR_TARBALL := libgpg-error-1.37.tar.bz2 +export LIBGPGERROR_SHA256SUM := a9ab83ca7acc442a5bd846a75b920285ff79bdb4e3d34aa382be88ed2c3aebaf +export LIBGPGERROR_TARBALL := libgpg-error-1.43.tar.bz2 export LIBLANGTAG_SHA256SUM := 1f12a20a02ec3a8d22e54dedb8b683a43c9c160bda1ba337bf1060607ae733bd export LIBLANGTAG_TARBALL := liblangtag-0.6.3.tar.bz2 export LIBNUMBERTEXT_SHA256SUM := db9060d208501bd7bc06300a55d8489d29dd560ee0fbbd0f41b78af56816680c diff --git a/external/libgpg-error/ExternalPackage_libgpg-error.mk b/external/libgpg-error/ExternalPackage_libgpg-error.mk index 1d9c016e09df..7ee849d2369c 100644 --- a/external/libgpg-error/ExternalPackage_libgpg-error.mk +++ b/external/libgpg-error/ExternalPackage_libgpg-error.mk @@ -15,7 +15,7 @@ ifneq ($(DISABLE_DYNLOADING),TRUE) ifeq ($(OS),LINUX) -$(eval $(call gb_ExternalPackage_add_file,libgpg-error,$(LIBO_LIB_FOLDER)/libgpg-error-lo.so.0,src/.libs/libgpg-error-lo.so.0.28.0)) +$(eval $(call gb_ExternalPackage_add_file,libgpg-error,$(LIBO_LIB_FOLDER)/libgpg-error-lo.so.0,src/.libs/libgpg-error-lo.so.0.32.1)) else ifeq ($(OS),MACOSX) diff --git a/external/libgpg-error/w32-build-fixes-5.patch b/external/libgpg-error/w32-build-fixes-5.patch index 2633df9ee6c9..8a65cedea2da 100644 --- a/external/libgpg-error/w32-build-fixes-5.patch +++ b/external/libgpg-error/w32-build-fixes-5.patch @@ -1,3 +1,19 @@ +--- src/argparse.c 2021-11-03 13:44:56.000000000 +0100 ++++ src/argparse.c~ 2022-01-03 17:05:23.418077200 +0100 +@@ -33,8 +33,12 @@ + #include <stdarg.h> + #include <limits.h> + #include <errno.h> +-#include <unistd.h> + #include <time.h> ++#ifdef _WIN32 ++# define R_OK 04 ++# define strncasecmp _strnicmp ++# define strcasecmp _stricmp ++#endif + + #include "gpgrt-int.h" + --- src/gpg-error.c 2020-06-06 00:18:40.199791000 +0200 +++ src/gpg-error.c~ 2020-06-05 18:44:14.223182300 +0200 @@ -61,6 +61,11 @@ @@ -12,6 +28,19 @@ static void i18n_init (void) { + +--- src/spawn-w32.c~ 2022-01-03 16:33:24.000000000 +0100 ++++ src/spawn-w32.c 2022-01-03 16:46:57.173841200 +0100 +@@ -56,7 +56,7 @@ + * Previous versions interpreted X_OK as F_OK anyway, so we'll just + * use F_OK directly. */ + #undef X_OK ++#define X_OK 0 +-#define X_OK F_OK + + /* For HANDLE and the internal file descriptor (fd) of this module: + * HANDLE can be represented by an intptr_t which should be true for + --- src/logging.c 2020-06-05 18:58:59.254413200 +0200 +++ src/logging.c~ 2019-12-12 15:23:37.000000000 +0100 @@ -44,7 +44,11 @@ @@ -65,20 +94,6 @@ gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c gpg_error_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \ -DLOCALEDIR=\"$(localedir)\" $(extra_cppflags) ---- src/spawn-w32.c 2020-06-05 18:47:05.807099200 +0200 -+++ src/spawn-w32.c~ 2020-06-05 18:44:14.114035900 +0200 -@@ -834,7 +834,11 @@ - /* We don't use ENVP. */ - (void)envp; - -+#ifdef _WIN32 -+ if (_access (pgmname, 04)) -+#else - if (access (pgmname, X_OK)) -+#endif - return _gpg_err_code_from_syserror (); - - /* Prepare security attributes. */ --- src/sysutils.c 2020-06-06 00:23:52.457265500 +0200 +++ src/sysutils.c~ 2019-12-12 15:23:37.000000000 +0100 @@ -22,7 +22,11 @@ @@ -94,21 +109,6 @@ #include <errno.h> #ifdef HAVE_W32_SYSTEM # include <windows.h> -@@ -274,11 +270,12 @@ - gpg_err_code_t - _gpgrt_mkdir (const char *name, const char *modestr) - { -+#ifdef _WIN32 --#ifdef HAVE_W32CE_SYSTEM - wchar_t *wname; - (void)modestr; - -+ size_t size; -+ wname = utf8_to_wchar (name, -1, &size); -- wname = utf8_to_wchar (name); - if (!wname) - return _gpg_err_code_from_syserror (); - if (!CreateDirectoryW (wname, NULL)) --- src/visibility.c 2020-06-05 18:54:56.410442900 +0200 +++ src/visibility.c~ 2019-01-04 12:56:54.000000000 +0100 @@ -1067,11 +1067,7 @@ @@ -134,9 +134,9 @@ --- src/w32-gettext.c 2020-06-06 00:33:24.680341900 +0200 +++ src/w32-gettext.c~ 2020-06-05 18:44:14.254481700 +0200 @@ -1355,7 +1355,7 @@ - string STRING. Caller must free this value. On failure returns - NULL. The result of calling this function with STRING set to NULL - is not defined. */ + is not defined. If LENGTH is zero and RETLEN NULL the fucntion + assumes that STRING is a nul-terminated string and returns a + (wchar_t)0-terminated string. */ +wchar_t * -static wchar_t * utf8_to_wchar (const char *string, size_t length, size_t *retlen) |