summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: Detect more flexible musl variants of GNUdkg/expand-muslDaniel Kahn Gillmor2022-01-171-1/+1
| | | | | | | * configure.ac: expand *-*-linux-musl to *-*-linux-musl*. Reported-by: Helmut Grohne <helmut@subdivi.de> Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* build: Recover and update *.m4.NIIBE Yutaka2021-12-229-97/+2629
| | | | | | | | | | | | | * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: Copied from gnulib. * m4/po.m4, m4/nls.m4, m4/progtest.m4: Likewise. * m4/gettext.m4, m4/iconv.m4: Update from gnulib. * m4/host-cpu-c-abi.m4: New from gnulib. -- Fixes-commit: 980e4410bb0a372a7bcce5f454915e6565a56b96 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Remove obsolete m4 files.NIIBE Yutaka2021-12-2228-2375/+0
| | | | | | | | | | | | | | | | * m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intmax.m4: Remove. * m4/inttypes-h.m4, m4/inttypes-pri.m4, m4/inttypes.m4: Remove. * m4/inttypes_h.m4, m4/isc-posix.m4, m4/lcmessage.m4: Remove. * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: Remove. * m4/longdouble.m4, m4/longlong.m4, m4/nls.m4, m4/po.m4: Remove. * m4/printf-posix.m4, m4/progtest.m4, m4/signed.m4: Remove. * m4/size_max.m4, m4/stdint_h.m4, m4/uintmax_t.m4: Remove. * m4/ulonglong.m4, m4/visibility.m4, m4/wchar_t.m4: Remove. * m4/wint_t.m4, m4/xsize.m4: Remove. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* tests: Fix gpg-error-config-test for PKG_CONFIG_LIBDIR.NIIBE Yutaka2021-12-171-0/+4
| | | | | | | | | * src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_LIBDIR. -- GnuPG-bug-id: 5740 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Update configure.ac for newer autoconf.NIIBE Yutaka2021-12-152-11/+13
| | | | | | | | | | | * configure.ac (AC_PREREQ): Require 2.69 or later. (AC_CONFIG_HEADERS): Replace AC_CONFIG_HEADER. (AC_HEADER_STDC): Remove. * m4/codeset.m4: Update from gnulib. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix have_lock_optimization code for 'guessing yes'.NIIBE Yutaka2021-12-131-2/+6
| | | | | | | | * configure.ac: Support 'guessing yes' for gl_cv_have_weak. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Detect a system with musl, as a variant of GNU System.NIIBE Yutaka2021-12-131-1/+1
| | | | | | | | | * configure.ac: Add *-*-linux-musl. -- Reported-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* configure: Add missing check for loggingJakub Jelen2021-12-071-1/+1
| | | | | | | | * configure.ac: Add missing check for inet_pton to avoid using inet_addr in modern systems. -- Signed-off-by: Jakub Jelen <jjelen@redhat.com>
* tests,w32: Use CreatePipe and es_sysopen.NIIBE Yutaka2021-11-291-4/+21
| | | | | | | | | | | * tests/t-poll.c (create_pipe): Use CreatePipe. -- Since POSIX pipe with file descriptor is not supported on Windows as pollable, use Win32 Pipe instead. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build,tests: Run t-lock-single-posix only on platforms supported.NIIBE Yutaka2021-11-252-2/+10
| | | | | | | | | | | * configure.ac (HAVE_LOCK_OPTIMIZATION): New. * tests/Makefile.am: Use HAVE_LOCK_OPTIMIZATION for t-lock-single-posix. -- GnuPG-bug-id: 5699 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix dependency to gpg-error-config-test.sh.NIIBE Yutaka2021-11-191-1/+1
| | | | | | | | | | * src/Makefile.am (gpg-error-config): It depends on configure generated gpg-error-config-test.sh. -- GnuPG-bug-id: 5696 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix for configure generated files.NIIBE Yutaka2021-11-121-3/+3
| | | | | | | | | | | * src/Makefile.am (bin_SCRIPTS): Add gpgrt-config. (EXTRA_DIST): Add gpgrt-config.in and gpg-error-config-test.sh.in. (CLEANFILES): Add configure generated files. -- Fixes-commit: 7a7caf4ba1c460c9c36f754fcd0ebfeb4aa5cc6a Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* configure: Escape includedir/libdir to defer interpretation of vars.NIIBE Yutaka2021-11-121-7/+7
| | | | | | | | | | | configure.ac: Escape includedir for GPG_ERROR_CONFIG_CFLAGS. Escape libdir for GPG_ERROR_CONFIG_LIBS. -- This can offer nice-looking gpg-error.pc. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* estream: Only include sys/select.h when needed.NIIBE Yutaka2021-11-041-3/+4
| | | | | | | | | * src/estream.c: The select function is only used when poll is not available. So, let it include the header file only when needed. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Post-release updatesWerner Koch2021-11-032-1/+7
| | | | --
* Release 1.43libgpg-error-1.43gpgrt-1.43Werner Koch2021-11-034-4/+28
|
* po: Auto-updateWerner Koch2021-11-032-1/+137
| | | | --
* po: Update Czech translationPetr Pisar2021-11-031-374/+179
| | | | --
* po: Update Russian translation.Ineiev2021-11-031-158/+11
|
* argparse: Add more system variables.Werner Koch2021-11-032-7/+39
| | | | | | | * src/argparse.c (get_var): Fix "_windows", add "_gpgrtversion" and "strusageN". (handle_meta_if): Avoid evaluating inactive branches. * tests/t-argparse.conf: Add a few other outputs.
* argparse: Add support to read values from the Windows Registry.Werner Koch2021-10-314-61/+685
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/argparse.c (struct variable_s): New. (struct _gpgrt_argparse_internal_s): New fields expand, if_cond, if_active and vartbl. (deinitialize): Free vartbl. (initialize): Clear new vars. (get_var): New. (substitute_vars): New. (set_variable): New. (handle_meta_if): New. (handle_meta_let): New. (handle_meta_getenv): New. (handle_meta_echo): Re-implement in terms of variabale substitution. (handle_meta_expand): New. (handle_metacmd): Add new meta commands. (_gpgrt_argparse): Expand values if enabled. (_gpgrt_argparse): Take care of conditions. (_gpgrt_argparser): Reset some state at the end of a file. * tests/etc/t-argparse.conf: Adjust for changed system variables. * tests/t-argparse.c (my_strusage): Add a value for a version test. (main): Add new option "street". * tests/t-argparse.conf: A couple if additions for the new conditions. -- The whole thing is actually only for here for doing this [let tkey HKLM\Foo\Bar\GnuPG:trusted-key-1] [if $tkey] trusted-key $tkey [fi] But we are hackers and tend to make things more complicated^Wflexible. Documentation will be done eventually. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: new internal function _gpgrt_w32_reg_get_string.Werner Koch2021-10-222-6/+56
| | | | | | | | | | * src/w32-reg.c (_gpgrt_w32_reg_query_string): Allow abbreviated root names. (_gpgrt_w32_reg_get_string): New. -- This should eventually be made public. Noet that we have a copy in gnupg.
* libtool: Link without -flat_namespace for macOS.NIIBE Yutaka2021-09-271-9/+4
| | | | | | | | | | | | | | | | | | * m4/libtool.m4: Not setting 10.0 to MACOSX_DEPLOYMENT_TARGET when not defined. Only specify -flat_namespace to linker for specific (older) versions and hosts. -- Original patch was by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> in https://lists.gnu.org/archive/html/libtool-patches/ 2020-06/msg00001.html Reported-by: Aleix Conchillo Flaque GnuPG-bug-id: 5610 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="".NIIBE Yutaka2021-09-101-1/+1
| | | | | | | | | * src/gpgrt-config.in: Correctly detect the case. -- GnuPG-bug-id: 5595 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* tests: Add a test for locking when single thread.NIIBE Yutaka2021-08-262-0/+170
| | | | | | | | | | * tests/Makefile.am (TESTS): Add t-lock-single-posix. * tests/t-lock-single-posix.c: New. -- GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* posix-lock: Support GNU C library 2.34 or later.NIIBE Yutaka2021-08-062-2/+6
| | | | | | | | | | | * configure.ac: Add check for sys/single_threaded.h. * src/posix-lock.c [USE_POSIX_THREADS_FROM_LIBC]: Use __libc_single_threaded to detect if it's single threaded. -- GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Merge our local change for threadlib.m4.NIIBE Yutaka2021-08-061-9/+16
| | | | | | | | | * m4/threadlib.m4: Add THREADLIB_CPPFLAGS support. -- GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Update m4/threadlib.m4 from gnulib.NIIBE Yutaka2021-08-061-164/+469
| | | | | | | | | | | | | | | | | | | | | | | * m4/threadlib.m4: Update. -- Copied from gnulib commit of 12b5b00f93, so that we can support build with GNU C library 2.34 or later. Parts of our local changes are not needed any more: - Fix comment for "http" to "https" - Update to AS_HELP_STRING for newer autoconf One of our local change is canceled by this commit: - CPPFLAGS handling by THREADLIB_CPPFLAGS And it will be merged by following commit. GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Simplify checking headers.NIIBE Yutaka2021-08-051-1/+1
| | | | | | | | | | * configure.ac (AC_HEADER_STDC): Remove stdlib.h. -- It is supported by AC_HEADER_STDC. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Minor clean up.NIIBE Yutaka2021-08-051-3/+0
| | | | | | * src/stringutils.c: Remove inclusion of pwd.h. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix --disable-threads.NIIBE Yutaka2021-06-211-1/+1
| | | | | | | | | | | * src/gen-lock-obj.sh: Fix generating '}}}'. -- GnuPG-bug-id: 5495 Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Fixes-commit: 1fb90a7da186ee2ee098a666f6f3a35bb1720e59 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Avoid truncation of error message in the middle of a character.NIIBE Yutaka2021-06-082-0/+26
| | | | | | | | | | * configure.ac (AM_LANGINFO_CODESET): Add. * src/strerror.c (_gpg_strerror_r): Check the boundary of character. -- GnuPG-bug-id: 5048 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: _DARWIN_C_SOURCE should be 1.NIIBE Yutaka2021-05-211-1/+1
| | | | | | | | | | * configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1. -- GnuPG-bug-id: 5440 Reported-by: Jay Freeman Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Make gpgrt_free robust against legacy free implementations.Werner Koch2021-05-201-0/+12
| | | | | | * src/init.c (_gpgrt_free): Shortcut NULL and save ERRNO. Signed-off-by: Werner Koch <wk@gnupg.org>
* build,tests: Fix leaks of memory or file pointer.Jakub Jelen2021-04-123-0/+4
| | | | | | | | | | | | * src/mkheader.c (parse_config_h): Close FP. * tests/t-b64.c (test_b64enc_string): Free STATE. (test_b64dec_string): Free BUFFER. * tests/t-syserror.c (main): Close FP. -- GnuPG-bug-id: 5381 Signed-off-by: Jakub Jelen <jjelen@redhat.com>
* core: Fix gpgrt_wait_processes, by skipping invalid PID.NIIBE Yutaka2021-04-081-1/+6
| | | | | | | | | | | | | * src/spawn-posix.c (_gpgrt_wait_processes): Skip invalid PID. -- The API itself is not good to handle multiple processes. Given the API, skipping invalid PID is better for usefulness. GnuPG-bug-id: 5381 Reported-by: Jakub Jelen <jjelen@redhat.com> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix gpgrt-config for handling 'Requires' field.NIIBE Yutaka2021-04-071-1/+2
| | | | | | | | | | * src/gpgrt-config.in (get_attr_l): Fix thinko for word split. -- GnuPG-bug-id: 5381 Reported-by: Jakub Jelen <jjelen@redhat.com> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Fix previous commit.NIIBE Yutaka2021-03-311-1/+1
| | | | Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Support cross-compiling better.NIIBE Yutaka2021-03-311-3/+4
| | | | | | | | | | | * src/gpg-error.m4 (GPGRT_CONFIG): Prefer the one under $prefix. (sed expression): Better compatibility to POSIX sed. -- GnuPG-bug-id: 5365 Reported-by: Jay Freeman (saurik) Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix generation of lock-obj-pub.native.h for cross build.David Michael2021-03-261-1/+1
| | | | | | | | | * src/gen-lock-obj.sh: Capture echo output with quotes. -- Fixes-commit: 99ae862a96a569724f49a604ebb7d3f6d2c2d374 Signed-off-by: David Michael <fedora.dm0@gmail.com>
* Post release updatesWerner Koch2021-03-222-1/+7
| | | | --
* Release 1.42libgpg-error-1.42gpgrt-1.42Werner Koch2021-03-222-5/+12
|
* po: Update all translations for TPM2d.Werner Koch2021-03-2220-36/+91
| | | | | | | | -- Actually not needed because we use the term verbatim in all languages. But this avoids untranslated notices in the PO editor. In case an i18n term is required, the individual translators may do that.
* core: Add GPG_ERR_SOURCE_TPM2D.Werner Koch2021-03-222-2/+7
| | | | * src/err-sources.h.in (GPG_ERR_SOURCE_TPM2D): New.
* w32: Allow Unicode paths for the gettext domain.Werner Koch2021-03-051-45/+12
| | | | | * src/w32-gettext.c: Remove remaining WindowsCE support (load_domain): Use CreateFileW.
* w32: Minor cleanup of w32-gettextWerner Koch2021-03-042-3/+6
| | | | | | | * src/w32-gettext.c: Include gpgrt.h instead gpg-error.h. (utf8_to_wchar): Use underscored function. (_gpg_w32_textdomain): Ditto. --
* build: Support --disable-threads by gen-lock-obj.sh.NIIBE Yutaka2021-02-182-3/+25
| | | | | | | | | | | * configure.ac: Supply --disable-threads to gen-lock-obj.sh. Tighten the condition of using gen-lock-obj.sh for GNU/Linux. * src/gen-lock-obj.sh: Support --disable-threads. -- GnuPG-bug-id: 5296 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix gpgrt-config.NIIBE Yutaka2021-02-161-6/+1
| | | | | | | | | * src/gpgrt-config.in: Remove delimiter variable. -- Fixes-commit: 7b81ec272b0c54ac893c09be4715b76e84c27b23 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: More fix for determining libdir for gpgrt-config.NIIBE Yutaka2021-02-161-11/+33
| | | | | | | | | | * src/gpg-error.m4: Use CC -print-search-dirs for better support of GNU style cross prefix. -- GnuPG-bug-id: 5293 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix the previous change.NIIBE Yutaka2021-02-151-6/+6
| | | | | | | | | * src/gpg-error.m4: Fix test condition for GPGRT_CONFIG. Fix behaviour when there is no GPG_ERROR_CONFIG. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>