aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* core: Minor clean up.NIIBE Yutaka2021-08-051-3/+0
| | | | | | * src/stringutils.c: Remove inclusion of pwd.h. Signed-off-by: NIIBE Yutaka <[email protected]>
* 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 <[email protected]> Fixes-commit: 1fb90a7da186ee2ee098a666f6f3a35bb1720e59 Signed-off-by: NIIBE Yutaka <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* 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 <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Fix previous commit.NIIBE Yutaka2021-03-311-1/+1
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* build: Improve how to determine $libdir for gpgrt-configNIIBE Yutaka2021-02-121-46/+42
| | | | | | | | | * src/gpg-error.m4: Fix $gpgrt_libdir handling. -- GnuPG-bug-id: 5293 Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Document another interface change in 1.37Werner Koch2021-02-101-0/+1
| | | | | | | -- The new inline function gpg_err_code_from_sqlite was missing in the NEWS file.
* Support cross-compiling on more platforms.NIIBE Yutaka2021-02-091-4/+12
| | | | | | | | | * src/gen-lock-obj.sh (ECHO_C, ECHO_N): Portability fix. -- GnuPG-bug-id: 5289 Signed-off-by: NIIBE Yutaka <[email protected]>
* yat2m: New option --html and some basic html rendering.Werner Koch2021-01-071-43/+272
| | | | | | -- Not yet finished.
* doc: Add a description for GPG_ERR_USE_CONDITIONS.Werner Koch2021-01-051-0/+8
| | | | --
* po: Update Traditional Chinese Translation.bobwxc2020-12-281-366/+175
| | | | | | | | -- GnuPG-bug-id: 5189 Co-authored-by: Chih-Hsuan Yen Signed-off-by: bobwxc <[email protected]>
* po: Update Simplified Chinese Translation.bobwxc2020-12-241-600/+367
| | | | | | -- Signed-off-by: bobwxc <[email protected]>
* Post release updatesWerner Koch2020-12-212-1/+7
| | | | --
* Release 1.41libgpg-error-1.41gpgrt-1.41Werner Koch2020-12-212-2/+5
|
* core: Yet another fix to the ignore meta command.Werner Koch2020-12-211-1/+18
| | | | | * src/argparse.c (_gpgrt_argparse): Entirely skip ignored sysconf commands. Fix state transitions in the ignore case.
* po: Fix two typos in the German translationWerner Koch2020-12-211-3/+3
| | | | --
* Post release updatesWerner Koch2020-12-213-2/+9
| | | | --
* Release 1.40libgpg-error-1.40gpgrt-1.40Werner Koch2020-12-213-4/+15
| | | | * configure.ac: Bump LT version to C31/A31/R0.
* po: Auto-updateWerner Koch2020-12-211-2/+4
| | | | --
* po: Update German translationWerner Koch2020-12-211-18/+11
| | | | --
* po: Update Polish translation.Jakub Bogusz2020-12-211-71/+46
| | | | --
* w32: Allow Unicode for internal getusername function.Werner Koch2020-12-211-9/+19
| | | | | | | | | | * src/sysutils.c (_gpgrt_getusername) [W32]: Use GetUserNameW. -- This is used by argparse for user specific parts. Tested using the echo meta-command. Signed-off-by: Werner Koch <[email protected]>
* core: Fix the "ignore" meta command of the argparser.Werner Koch2020-12-183-37/+60
| | | | | | | | | | | | | * src/argparse.c (_gpgrt_argparse): Factor some code out to ... (prepare_arg_return): new. (_gpgrt_argparse): No missing arg error in ignore sections. -- Options in an [ignore] section do not anymore lead to an error if an argument is missing. However, if the option is also in a force section the error is thrown. Signed-off-by: Werner Koch <[email protected]>
* build: Use AC_CHECK_TOOL to detect objdump for cross build.NIIBE Yutaka2020-12-071-3/+3
| | | | | | | | | * configure.ac (CROSS_HOST_OBJDUMP): Remove, but use AC_CHECK_TOOL. -- Co-authored-by: John Ericson Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Update with newer autoconf constructs.NIIBE Yutaka2020-11-171-3/+3
| | | | | | * src/gpg-error.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update to new autoconf constructs.NIIBE Yutaka2020-11-176-25/+31
| | | | | | | | | | | | | | * configure.ac Replace AC_GNU_SOURCE to Use AC_USE_SYSTEM_EXTENSIONS. Replace AC_HELP_STRING to AS_HELP_STRING. * m4/estream.m4: Replace AC_TRY_LINK to AC_LINK_IFELSE. * m4/gnupg-misc.m4: Replace AC_TRY_COMPILE to AC_COMPILE_IFELSE. * m4/libtool.m4: Use AC_LANG_PUSH/AC_LANG_POP instead of AC_LANG_SAVE/AC_LANG_RESTORE. * m4/readline.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Fix quote for _combo. * m4/threadlib.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
* New public function gpgrt_access.Werner Koch2020-10-1911-3/+90
| | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_access): New. * src/gpg-error.vers. src/gpg-error.def.in: Add new function. * src/sysutils.c (any8bitchar): New. (_gpgrt_access): New. * src/visibility.c (gpgrt_access): New. * src/spawn-w32.c (_gpgrt_spawn_process_detached): Use it. * src/argparse.c (try_versioned_conffile): Use it. * tests/t-stringutils.c (check_access): New simple test. -- This is basically a wrapper to allow handling of utf8 encoded file names on Windows. This also fixes the case for versioned config files in directories with non-ascii characters. The new test needs to be run manually on Windows using a directory with Unicode characters. GnuPG-bug-id: 5098
* w32: Support utf8 also for getcwd.Werner Koch2020-10-095-23/+172
| | | | | | | | | | | | * src/sysutils.c (_gpgrt_getcwd) [W32]: Implement utf-8 support. * src/w32-gettext.c (wchar_to_native): Factor some code out to .. (wchar_to_cp): new. (_gpgrt_wchar_to_utf8): New. * tests/t-stringutils.c: Include windows.h. (utf8_to_wchar): New. (wchar_to_utf8): New. (mygetcwd): Use wchar version for Windows. (main): New option --pwd.
* doc: Fix typos in commentsWerner Koch2020-10-082-5/+4
| | | | --
* po: Update Japanese Translation.NIIBE Yutaka2020-08-251-18/+10
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>