2022-01-27  Werner Koch  <wk@gnupg.org>

	Release 1.44.
	+ commit 54eff9cb9ac86809f3217179eb1029058d4a7936
	* configure.ac: Bump LT version to C32/A32/R2.

2022-01-27  Emir SARI  <emir_sari@icloud.com>

	Add Turkish translations.
	+ commit 663b91fe91af0bb290fe18092896a8917bf51e14


2022-01-25  Werner Koch  <wk@gnupg.org>

	core: Fix returning of option attributes for options with args.
	+ commit 5ab088aba9f05b480c311e94d45a88728ac9320b
	* src/argparse.c (_gpgrt_argparse): Set attributes info flags

2022-01-18  Daniel Kahn Gillmor  <dkg@fifthhorseman.net>

	build: Detect more flexible musl variants of GNU.
	+ commit 0150919b6a8244be1055d01ad21d6fa47788ab0e
	* configure.ac: expand *-*-linux-musl to *-*-linux-musl*.

2022-01-18  NIIBE Yutaka  <gniibe@fsij.org>

	po,w32: Directly run msgfmt at install-data-hook.
	+ commit b26220f92fa668e185dbf2bcc5006c6e74b20073
	* Makefile.am (EXTRA_DIST): Remove potomo.
	[HAVE_W32_SYSTEM] (install-data-hook): Run msgfmt.

	po: Update files from gettext 0.21 to match m4/po.m4.
	+ commit b37c68f28a921d1c03507469f4af53e012ef7679
	* po/Makefile.in.in: Update.
	* po/Makevars: Update.
	* po/Rules-quot: Update.
	* po/insert-header.sin: Update.
	* po/remove-potcdate.sin: Update.

2021-12-22  NIIBE Yutaka  <gniibe@fsij.org>

	build: Recover and update *.m4.
	+ commit 973dbdbfc90136798cfa4001166a40b904fdad70
	* 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.

	build: Remove obsolete m4 files.
	+ commit 980e4410bb0a372a7bcce5f454915e6565a56b96
	* 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.

2021-12-17  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Fix gpg-error-config-test for PKG_CONFIG_LIBDIR.
	+ commit 8d2bd9a0d4bba9b820bc03a9275441c39182d5b7
	* src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_LIBDIR.

2021-12-15  NIIBE Yutaka  <gniibe@fsij.org>

	build: Update configure.ac for newer autoconf.
	+ commit f5e043ad271f431f2c35fc6b22fc51b448507b01
	* 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.

2021-12-13  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix have_lock_optimization code for 'guessing yes'.
	+ commit f15c06951bb91eb0a4ab54f6707b6e21448945f9
	* configure.ac: Support 'guessing yes' for gl_cv_have_weak.

	build: Detect a system with musl, as a variant of GNU System.
	+ commit e17cf023d894acc3932505f66fbd9c31ce56793f
	* configure.ac: Add *-*-linux-musl.

2021-12-07  Jakub Jelen  <jjelen@redhat.com>

	configure: Add missing check for logging.
	+ commit 7fac8e02d80d139f43fc5fd179618ab769512124
	* configure.ac: Add missing check for inet_pton to avoid using inet_addr
	  in modern systems.

2021-11-29  NIIBE Yutaka  <gniibe@fsij.org>

	tests,w32: Use CreatePipe and es_sysopen.
	+ commit 858bcd4343ac40566825cfa861ee60bcc54cb6c8
	* tests/t-poll.c (create_pipe): Use CreatePipe.

2021-11-25  NIIBE Yutaka  <gniibe@fsij.org>

	build,tests: Run t-lock-single-posix only on platforms supported.
	+ commit 50e0f32b19356fd7c64c799192379ff2204cd8a3
	* configure.ac (HAVE_LOCK_OPTIMIZATION): New.
	* tests/Makefile.am: Use HAVE_LOCK_OPTIMIZATION for
	t-lock-single-posix.

2021-11-19  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix dependency to gpg-error-config-test.sh.
	+ commit 0fcfca8e9ffa25836f391df75f5b3bb1b7dc1a69
	* src/Makefile.am (gpg-error-config): It depends on configure
	generated gpg-error-config-test.sh.

2021-11-12  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix for configure generated files.
	+ commit fd83c3e29744c8d7829df3de8c10f9c68f11e429
	* 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.

	configure: Escape includedir/libdir to defer interpretation of vars.
	+ commit 1e5b17f4284ea2904c65d08097735a1a4a8879a1
	configure.ac: Escape includedir for GPG_ERROR_CONFIG_CFLAGS.
	Escape libdir for GPG_ERROR_CONFIG_LIBS.

2021-11-04  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Only include sys/select.h when needed.
	+ commit 61843dace32f12475b1ade5423deaa0421cbbc0b
	* src/estream.c: The select function is only used when poll is not
	available.  So, let it include the header file only when needed.

2021-11-03  Werner Koch  <wk@gnupg.org>

	Release 1.43.
	+ commit d7fb04832a71a2c1509d45027798f184ca274f8d


2021-11-03  Ineiev  <ineiev@gnu.org>

	po: Update Russian translation.
	+ commit 983a1b491ea6dfa7bb1868a6ac41fb9222bbe301


2021-11-03  Werner Koch  <wk@gnupg.org>

	argparse: Add more system variables.
	+ commit 62755bcd302eca755d52b80b62dc17ae0e683b75
	* 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.

2021-10-31  Werner Koch  <wk@gnupg.org>

	argparse: Add support to read values from the Windows Registry.
	+ commit b1790f4cc71f14422255bbfba78e91f037e035dd
	* 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.

2021-10-22  Werner Koch  <wk@gnupg.org>

	core: new internal function _gpgrt_w32_reg_get_string.
	+ commit 2a32501a561a5d70069bcb6e7e87fb949370520e
	* src/w32-reg.c (_gpgrt_w32_reg_query_string): Allow abbreviated root
	names.
	(_gpgrt_w32_reg_get_string): New.

2021-09-27  NIIBE Yutaka  <gniibe@fsij.org>

	libtool: Link without -flat_namespace for macOS.
	+ commit a3987e44970505a5540f9702c1e41292c22b69cf
	* 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.

2021-09-10  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="".
	+ commit 6b08dd09864e7fbb424296ad490f9fe65c9bc247
	* src/gpgrt-config.in: Correctly detect the case.

2021-08-26  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Add a test for locking when single thread.
	+ commit 2b476b3ebc1d13d681594c15505844766c0fbc4b
	* tests/Makefile.am (TESTS): Add t-lock-single-posix.
	* tests/t-lock-single-posix.c: New.

2021-08-06  NIIBE Yutaka  <gniibe@fsij.org>

	posix-lock: Support GNU C library 2.34 or later.
	+ commit 67595e8244ed67910f7372873cdbf674c2e85403
	* 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.

	m4: Merge our local change for threadlib.m4.
	+ commit 8538a83fd1b5e54d7dbe6dc9042cc74942e38e51
	* m4/threadlib.m4: Add THREADLIB_CPPFLAGS support.

	m4: Update m4/threadlib.m4 from gnulib.
	+ commit 7ad1ff9673e4589880170b9f84df93510b044814
	* m4/threadlib.m4: Update.

2021-08-05  NIIBE Yutaka  <gniibe@fsij.org>

	build: Simplify checking headers.
	+ commit f8fe24a792321483baa7415e06640fb5077fcb13
	* configure.ac (AC_HEADER_STDC): Remove stdlib.h.

	core: Minor clean up.
	+ commit b82b0d7a8d8f69aec928a2c604c1260b34a08449
	* src/stringutils.c: Remove inclusion of pwd.h.

2021-06-21  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix --disable-threads.
	+ commit 220a427b4f997ef6af1b2d4e82ef1dc96e0cd6ff
	* src/gen-lock-obj.sh: Fix generating '}}}'.

2021-06-08  NIIBE Yutaka  <gniibe@fsij.org>

	core: Avoid truncation of error message in the middle of a character.
	+ commit 6d19a40a8a23d9aa5d61ace247a5fea1bd103995
	* configure.ac (AM_LANGINFO_CODESET): Add.
	* src/strerror.c (_gpg_strerror_r): Check the boundary of character.

2021-05-21  NIIBE Yutaka  <gniibe@fsij.org>

	build: _DARWIN_C_SOURCE should be 1.
	+ commit f9b50dafc5d3cc9d463be17b1d9e66817d4cb41c
	* configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1.

2021-05-20  Werner Koch  <wk@gnupg.org>

	core: Make gpgrt_free robust against legacy free implementations.
	+ commit 448bf7b01cade87f45fb39f455f37a6aadeeceda
	* src/init.c (_gpgrt_free): Shortcut NULL and save ERRNO.

2021-04-12  Jakub Jelen  <jjelen@redhat.com>

	build,tests: Fix leaks of memory or file pointer.
	+ commit ad062b0a5b7d598081405ecfb71b51540281a1b7
	* 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.

2021-04-08  NIIBE Yutaka  <gniibe@fsij.org>

	core: Fix gpgrt_wait_processes, by skipping invalid PID.
	+ commit 956c40f106ead6d0191bc183805021e70c15e760
	* src/spawn-posix.c (_gpgrt_wait_processes): Skip invalid PID.

2021-04-07  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix gpgrt-config for handling 'Requires' field.
	+ commit 89a353f418f5e879ab5564ec0767a6cbdb19d51c
	* src/gpgrt-config.in (get_attr_l): Fix thinko for word split.

2021-03-31  NIIBE Yutaka  <gniibe@fsij.org>

	m4: Fix previous commit.
	+ commit 8536f82194ec21635cd017d7e0bd382106e196c6


	m4: Support cross-compiling better.
	+ commit 9b9c5dfa1020ce5a5a5e4954c58112d2707ec578
	* src/gpg-error.m4 (GPGRT_CONFIG): Prefer the one under $prefix.
	(sed expression): Better compatibility to POSIX sed.

2021-03-26  David Michael  <fedora.dm0@gmail.com>

	build: Fix generation of lock-obj-pub.native.h for cross build.
	+ commit 33593864cd54143db594c4237bba41e14179061c
	* src/gen-lock-obj.sh: Capture echo output with quotes.

2021-03-22  Werner Koch  <wk@gnupg.org>

	Release 1.42.
	+ commit 303062bf9a383de67227ff942c5482f3a87c71ed


	core: Add GPG_ERR_SOURCE_TPM2D.
	+ commit 200bf2ed9d610219cc0b12a91dedb3bfd52d36b7
	* src/err-sources.h.in (GPG_ERR_SOURCE_TPM2D): New.

2021-03-05  Werner Koch  <wk@gnupg.org>

	w32: Allow Unicode paths for the gettext domain.
	+ commit 618ce381f9d70f3a94e87f58f667a6138411018e
	* src/w32-gettext.c: Remove remaining WindowsCE support
	(load_domain): Use CreateFileW.

2021-03-04  Werner Koch  <wk@gnupg.org>

	w32: Minor cleanup of w32-gettext.
	+ commit 3bf1de7b72be8e1d9fa78eb94730772d9cf61c44
	* src/w32-gettext.c: Include gpgrt.h instead gpg-error.h.
	(utf8_to_wchar): Use underscored function.
	(_gpg_w32_textdomain): Ditto.

2021-02-18  NIIBE Yutaka  <gniibe@fsij.org>

	build: Support --disable-threads by gen-lock-obj.sh.
	+ commit 1fb90a7da186ee2ee098a666f6f3a35bb1720e59
	* 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.

2021-02-16  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix gpgrt-config.
	+ commit ed3cd20de8d3eab92dd8fff02bcc214c55d08398
	* src/gpgrt-config.in: Remove delimiter variable.

	build: More fix for determining libdir for gpgrt-config.
	+ commit 28a21addc2e30b0756cdc6774c79f69070df8829
	* src/gpg-error.m4: Use CC -print-search-dirs for better support of
	GNU style cross prefix.

2021-02-15  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix the previous change.
	+ commit d7fd25bbfb83cd445bc81aa695b2c6127c22fa59
	* src/gpg-error.m4: Fix test condition for GPGRT_CONFIG.
	Fix behaviour when there is no GPG_ERROR_CONFIG.

2021-02-12  NIIBE Yutaka  <gniibe@fsij.org>

	build: Improve how to determine $libdir for gpgrt-config.
	+ commit 3cabbad4eec0e5bc6bdaa9f8626578934138adee
	* src/gpg-error.m4: Fix $gpgrt_libdir handling.

2021-02-09  NIIBE Yutaka  <gniibe@fsij.org>

	Support cross-compiling on more platforms.
	+ commit 99ae862a96a569724f49a604ebb7d3f6d2c2d374
	* src/gen-lock-obj.sh (ECHO_C, ECHO_N): Portability fix.

2020-12-21  Werner Koch  <wk@gnupg.org>

	Release 1.41.
	+ commit 98032624ae89a67ee6fe3b1db5d95032e681d163


	core: Yet another fix to the ignore meta command.
	+ commit 7021b58b0f2d95b94a2bac43e15ec97d89706b7f
	* src/argparse.c (_gpgrt_argparse): Entirely skip ignored sysconf
	commands.  Fix state transitions in the ignore case.

	Release 1.40.
	+ commit c1f4ed561e9d214be9fdc3005134b9d0ed87554f
	* configure.ac: Bump LT version to C31/A31/R0.

	w32: Allow Unicode for internal getusername function.
	+ commit 007cfe8a0ca4c03412f031878d6ce232612a90d8
	* src/sysutils.c (_gpgrt_getusername) [W32]: Use GetUserNameW.

2020-12-18  Werner Koch  <wk@gnupg.org>

	core: Fix the "ignore" meta command of the argparser.
	+ commit 4b09c8c2023d52b97be6069c20897ebfb25f9bca
	* src/argparse.c (_gpgrt_argparse): Factor some code out to ...
	(prepare_arg_return): new.
	(_gpgrt_argparse): No missing arg error in ignore sections.

2020-12-07  NIIBE Yutaka  <gniibe@fsij.org>
	    John Ericson

	build: Use AC_CHECK_TOOL to detect objdump for cross build.
	+ commit 9ee011259f819a3cf50fe7019fa4366dbc437e0e
	* configure.ac (CROSS_HOST_OBJDUMP): Remove, but use AC_CHECK_TOOL.

2020-11-17  NIIBE Yutaka  <gniibe@fsij.org>

	m4: Update with newer autoconf constructs.
	+ commit 8047ca99858a7ee812ef11ed3bd2868e920ac1b7
	* src/gpg-error.m4: Replace AC_HELP_STRING to AS_HELP_STRING.

	build: Update to new autoconf constructs.
	+ commit 41d753e21eaae3e4332e841de2f40e7055f2a68c
	* 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.

2020-10-19  Werner Koch  <wk@gnupg.org>

	New public function gpgrt_access.
	+ commit 4764c5a3a4d704b3b42bafc5eba3996579030703
	* 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.

2020-10-09  Werner Koch  <wk@gnupg.org>

	w32: Support utf8 also for getcwd.
	+ commit dbedf190969de1a796560cfa15fb4ea986bc79dc
	* 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.

2020-08-24  Werner Koch  <wk@gnupg.org>

	Release 1.39.
	+ commit 59d9f8106db3a23cb5d51d01dc6b719413d3f760


2020-08-21  Werner Koch  <wk@gnupg.org>

	core,w32: Add UTF-8 support to gpgrt_fopen, gpgrt_mkdir and gpgrt_chdir.
	+ commit a68c1975bda47b0698b48761a62e95b371095e9a
	* src/protos.h: New.
	* src/Makefile.am (libgpg_error_la_SOURCES): Add file.
	* src/gpgrt-int.h: Include protos.h.
	* src/sysutils.c (_gpgrt_mkdir) [W32]: Make UTF-8 aware.
	(_gpgrt_chdir) [W32]: Ditto.
	* src/w32-gettext.c: Include protos.h.
	(utf8_to_wchar): Allow for strings.
	(_gpgrt_utf8_to_wchar): New.
	(_gpgrt_free_wchar): New.
	* src/estream.c (map_w32_to_errno): Add more error codes.
	(_gpgrt_w32_set_errno): New.
	(any8bitchar) [W32]: New helper.
	(func_file_create) [W32]: Convert file name and use _wopen.

2020-08-21  NIIBE Yutaka  <gniibe@fsij.org>

	argparse: Handle a corner case of wrong ARGC.
	+ commit 87a6b28c0f3b6c5b38e0f8a8533df39d3f0c0f03
	* src/argparse.c (arg_parse): Avoid null dereference when ARGC is wrong.

2020-08-17  Werner Koch  <wk@gnupg.org>

	Fix a current gcc's -fsanitize warning.
	+ commit c5fcdd9a58a2508a20327226c52d155c29ddd5f3
	* src/argparse.c (ARGPARSE_FLAG__INITIALIZED): Make sure it is an
	unsigned int.

2020-08-11  Werner Koch  <wk@gnupg.org>

	core,w32: Use timeout in es_poll even if there are no FDs.
	+ commit fd1340085bc6879436dd2882dc5178c133434675
	* src/w32-estream.c (_gpgrt_w32_poll): Sleep if there are no handles
	to wait for.

2020-08-05  Werner Koch  <wk@gnupg.org>

	Make --lib-version work again.
	+ commit e0dab4843ded8af172c2566b4d7313a1a13e7e26
	* src/gpg-error.c (main): Add printing code.

2020-08-03  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Fix handling 'Requires' field.
	+ commit 4192cbc3c58589055de1fb5ccbe42f3d33adb0af
	* src/gpgrt-config.in (get_attr_l): New.
	(all_required_config_files): Use get_attr_l.

2020-07-15  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Add gpgrt_fcancel to the definition.
	+ commit c564d8c5a0e7c1aba9103cb4b6561b61074c60f1
	* src/gpg-error.def.in (gpgrt_fcancel): Add.

2020-06-26  Werner Koch  <wk@gnupg.org>

	estream: Add gpgrt_fcancel.
	+ commit 3413489d25577e3fe7f529b8e610a45d2bd1857c
	* src/estream.c (do_close): Add arg 'cancel_mode' and chnage all
	callers.
	(_gpgrt_fcancel): New.
	* src/gpg-error.def.in, src/gpg-error.vers: Add function.
	* src/visibility.c (gpgrt_fcancel): New.
	* src/gpg-error.h.in (gpgrt_fcancel): New.

2020-06-15  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix the gpg-error-config test for cross build.
	+ commit 1a4c1f37a1c95a4cfcaab6df3364ee3515a1ea1b
	* src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_SYSROOT_DIR.

2020-06-12  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix command-line to make 'src 'dir.
	+ commit 159e394920f6be822d771fe003498de4d93b07c3
	* configure.ac: Mistake, then, fix it.

2020-06-11  NIIBE Yutaka  <gniibe@fsij.org>

	build: On cross build, detect host's objdump.
	+ commit ce97528fa3dcc58d86e18d4d8820f210a624f63d
	* configure.ac [*-*-linux*] (CROSS_HOST_OBJDUMP): New.

2020-06-03  David Michael  <fedora.dm0@gmail.com>

	build: Fix cross-compiling into a separate build dir.
	+ commit 013720333c6ec1d38791689bc49ba039d98e16b3
	* configure.ac: Create the src directory before writing into it.
	* src/Makefile.am (EXTRA_DIST): Add gen-lock-obj.sh.

2020-05-29  Werner Koch  <wk@gnupg.org>

	Release 1.38.
	+ commit 71d278824c5fe61865f7927a2ed1aa3115f9e439


2020-05-29  Yuri Chornoivan  <yurchor@ukr.net>

	po: Update Ukrainian translation.
	+ commit 1143b2d3619939a60f47af75be2123f3b225b32b


2020-05-29  Ineiev  <ineiev@gnu.org>

	po: Update and proofread Russian translation.
	+ commit a6104a9ab717499d405ff2af61a928a08774466a


2020-05-19  Daniel Kahn Gillmor  <dkg@fifthhorseman.net>

	syscfg: add 64-bit big-endian MIPS architecture.
	+ commit 0db8c768843db3e85935b972f1ed9d1b98159c46
	* src/syscfg/lock-obj-pub.mips64-unknown-linux-gnuabi64.h: new.
	* src/Makefile.am (lock_obj_pub): Add it.

2020-04-09  NIIBE Yutaka  <gniibe@fsij.org>

	build: Use gen-lock-obj.sh script when possible.
	+ commit 988211d3d4c1f3d5cfa6b460210f65ab636763b5
	* configure.ac (HAVE_GENERATED_LOCK_OBJ_H): New.
	* src/Makefile.am: Support HAVE_GENERATED_LOCK_OBJ_H.

	build: Add a shell script to generate lock-obj-pub.h.
	+ commit 50e62b36ea01ed25d12c443088b85d4f41a2b3e1
	* src/gen-lock-obj.sh: New.

2020-04-03  Werner Koch  <wk@gnupg.org>

	core: Improve the echo and info meta commands of the arg parser.
	+ commit 98d11eff669c042d381ee4f18a42d32bcab256ef
	* src/argparse.c (handle_meta_echo): Substitue some vars.
	(handle_meta_user): Factor some code out to ...
	(assure_username): new.

	core: Implement meta command [user] also for Windows.
	+ commit ef07aedc70992742fcef92811345670777a3047b
	* src/argparse.c (initialize): Clear username.
	* src/sysutils.c (_gpgrt_getusername): Implement for Windows.

	core: Implement meta command [user] for the arg parser.
	+ commit d843d260f5502ba90a2a35dfe202439f32b0e9aa
	* src/sysutils.c (_gpgrt_getusername): New.
	* src/argparse.c (struct _gpgrt_argparse_internal_s): New flags user_*
	and store the current user.
	(initialize): Free new malloced field.  Clear new flags.
	(handle_meta_user): Implement.
	(handle_metacmd): Implement user sections.  Remove "group" meta
	command.
	(_gpgrt_argparse): Implement user sections.
	(finish_read_sys): Reset new vars.

2020-03-06  Werner Koch  <wk@gnupg.org>

	core: Tweak the printing of headers in the --help output.
	+ commit 85b5006d01fc64763a6e1f0d6cbda91c5cb709c1
	* src/argparse.c (show_help): Do not print empty sections between
	headers.

	core: Add features for pretty printing the help.
	+ commit c59bf5824aafe938d5ab0d69079b9d93debc19fe
	* src/gpg-error.h.in (ARGPARSE_OPT_HEADER): New.
	(ARGPARSE_OPT_VERBATIM): New.
	(ARGPARSE_verbatim): New.
	(ARGPARSE_header): New.
	* src/argparse.c (show_help): Implement them.

2020-03-03  Werner Koch  <wk@gnupg.org>

	core: New function gpgrt_reallocarray.
	+ commit 969abd302211262562df93ae5412ee319aae69e6
	* src/init.c (_gpgrt_reallocarray): New.
	* src/visibility.c (gpgrt_reallocarray): New.
	* src/gpg-error.vers, src/gpg-error.def.in: Add new function.
	* src/gpg-error.h.in: Add new interface.
	* tests/t-malloc.c: New.
	* tests/Makefile.am (TESTS): Add new test.

	core: Fix allocation bug introduced with last commit.
	+ commit 72a15bad8f27303475498ce44e34d29b4c2c4593
	* src/argparse.c (initialize): Increase number of extra slots.

2020-03-02  Werner Koch  <wk@gnupg.org>

	core: New internal option --dump-option-table for argparser.
	+ commit db95feab16e32309a4bfb382827c495c2c49920c
	* src/argparse.c (initialize): Add new internal option.
	(arg_parse): Implement that option.
	(dump_option_table): New.
	(show_help): Remove exit and let the caller call my_exit.

	core: Replace fputs by es_fputs in argparser.
	+ commit f816797c87340a6130dea1e4f8f0e130511dfe3f
	* src/argparse.c (writestrings): Use that function to match what we
	are doing in flushstrings.

	core: Allow returning of attributes from gpgrt_argparser.
	+ commit d3661d81e9aafae75680164ede7322cf3d7b6804
	* src/gpg-error.h.in (ARGPARSE_FLAG_WITHATTR): New.
	(ARGPARSE_ATTR_FORCE): New.
	(ARGPARSE_ATTR_IGNORE): New.
	(ARGPARSE_TYPE_MASK): Moved from argparse.c to here.
	* src/argparse.c: Always use macros for constants.
	(_gpgrt_argparse): Handle ARGPARSE_FLAG_WITHATTR.
	(arg_parse): Ditto.
	* tests/t-argparse.c (main): Add commented test case.

2020-02-27  Werner Koch  <wk@gnupg.org>

	core: Implement meta commands for the argparser.
	+ commit 2d1969ab465bad62f73a7c24ddc8bb490ff9fd40
	* src/argparse.c (opttable_t): Add new flags forced, ignore, and
	explicit_ignore.
	(struct _gpgrt_argparse_internal_s): Change flags to bitflags.  Add
	several flags to support meta commands.
	(initialize): Clear them.
	(handle_meta_user): Use the new verbose flag.
	(handle_meta_force): Implement.
	(handle_meta_ignore): Implement.
	(handle_meta_echo): Support "-echo".
	(handle_meta_verbose): New.
	(handle_metacmd): New meta command verbose.  Add always flag and move
	the detection of unexpected meta commands to here.
	(_gpgrt_argparse): Make use of the ignore and forced meta commands.
	(finish_read_sys): New.
	(_gpgrt_argparser): Support the verbose flag.  Call finish_read_sys.
	(arg_parse): Ignore non-explicit ignored and all forced options.

	* tests/t-argparse.c (main): Fix printing of the ARGPARSE_CONFFILE
	case.  New option 'M'.
	* tests/t-argparse.conf, tests/etc/t-argparse.conf: Various changes to
	test the new meta commands.

	indent: Fix indentation in an argparse.c function.
	+ commit ffa21bf5b7066f7fa437119ce6b508b324ea2611
	* src/argparse.c (arg_parse): Fix it here.

2020-02-26  Werner Koch  <wk@gnupg.org>

	core: Add meta command handler stubs to argparse.c.
	+ commit 2f169b341e410924c5d7ee7d76ac67f85f26ed6a
	* src/argparse.c (handle_meta_user): New stub.
	(handle_meta_force): New stub.
	(handle_meta_ignore): New stub.
	(handle_meta_echo): New.
	(handle_metacmd): New.
	(_gpgrt_argparse): Call meta command handler.

	core: Prepare argparse.c to track additional info for options.
	+ commit 9d268891dae6093e5346710a38ba8cd978f24f09
	* src/argparse.c (opttable_t): New.
	(struct _gpgrt_argparse_internal_s): Use this instead of a ppointer to
	gpgrt_opt_t.
	(initialize): Copy options to the new tableand keep an original ordinal.
	(_gpgrt_argparse): Adjust for changes.
	(any_opt_conffile): Ditto.
	(find_long_option): Ditto.
	(arg_parse): Ditto.
	(long_opt_strlen): Adjust args.
	(cmp_ordtbl): New.
	(show_help): Print using the ordinal numbers.

2020-02-25  Werner Koch  <wk@gnupg.org>

	core: Add parser for meta commands to gpgrt_argparser.
	+ commit 6fc2d7cb8ce9e08cb189608466803ee7c8eb6930
	* src/gpg-error.h.in (ARGPARSE_INVALID_META): New
	(ARGPARSE_UNKNOWN_META, ARGPARSE_UNEXPECTED_META): New.
	* src/argparse.c (struct _gpgrt_argparse_internal_s): Add flag
	insysconfig.
	(initialize): Init flag.  Add error strings.
	(_gpgrt_argparser): Set that flag.
	(_gpgrt_argparse): Add parsing of meta commands.

	* tests/etc/t-argparse.conf: Add some test cases.
	* tests/t-argparse.conf: Ditto.
	* tests/t-argparse.c (main): Die only after printing all warnings.

	core: Fold duplicated code from _gpgrt_argparse.
	+ commit ca79d5edee8c6d93575708643ec825f81107e624
	* src/argparse.c (_gpgrt_argparse): Fold common code.

	core: Improve readability of _gpgrt_argparse.
	+ commit 8c185e719860aaa93cc37c0ec91c7bd5e3c2a5ce
	* src/argparse.c (_gpgrt_argparse): Use enum for the states and
	replace continue and break.

	core: New flag ARGPARSE_FLAG_USERVERS to try versioned config files.
	+ commit e9f36cabe157aa046b32dfc0b9f5c175b9808722
	* src/gpg-error.h.in (ARGPARSE_FLAG_USERVERS): New.
	* src/argparse.c: Include unistd.h.
	(try_versioned_conffile): New.
	(_gpgrt_argparser): Use it.

	core: New pseudo option ARGPARSE_PERMISSION_ERROR.
	+ commit f25555aed0da7f0492b68efb789dbe3e03ec7fe8
	* src/gpg-error.h.in (ARGPARSE_PERMISSION_ERROR): New.
	* src/argparse.c (initialize): Add code to print this error.

2020-02-25  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix exporting gpgrt_argparser.
	+ commit 732ac9c681a0b6afdee2e8eb6937500850f74986
	* src/gpg-error.def.in (gpgrt_argparser): Fix typo.

2020-02-22  Werner Koch  <wk@gnupg.org>

	core: Extend the way a config file can be specified,
	+ commit b79b2a7fb3ad3ada45d17e8632f1ee4212ce0764
	* src/argparse.c (PATHSEP_C, DIRSEP_C): New.
	(is_absfname, is_twopartfname): New.
	(_gpgrt_argparser): Allow for a two-part config name.

2020-02-20  Werner Koch  <wk@gnupg.org>

	core: Skip cmdline parsing for no or an empty argv.
	+ commit 44258227f7dfb12b3c0faa8ab417a9dc2be46eed
	* src/argparse.c (_gpgrt_argparser): Allow for empty argv.  Also fix
	memory leak.

2020-02-19  Werner Koch  <wk@gnupg.org>

	core: More fixes for the new option/argument parser.
	+ commit 46b3749997da84c41f583b22cda812dd5e42bde0
	* src/argparse.c (arg_parse): Always set opt_flags.  New flag no_init.
	(_gpgrt_argparse): Clear opt_flags at start.
	(_gpgrt_argparser): Call arg_parse directly.  Call arg_parse with
	no_init set.

	core: Some fixes for the new option/argument parser.
	+ commit a264fe9c55251458df558718fae0845928bf225e
	* src/argparse.c (ARGPARSE_FLAG__INITIALIZED): New.
	(initialize): Use a flag bit to track the initialization state.
	(_gpgrt_argparser): Clear some state on switching files.

2020-02-18  Werner Koch  <wk@gnupg.org>

	core: Add a high level option/argument parser.
	+ commit 933eb9346a84c87f83f77d990be2f66e2f7b62e7
	* gpg-error.h.in (GPGRT_CONFDIR_USER, GPGRT_CONFDIR_SYS): New consts.
	(ARGPARSE_FLAG_SYS, ARGPARSE_FLAG_USER, ARGPARSE_FLAG_VERBOSE)
	(ARGPARSE_NO_CONFFILE, ARGPARSE_CONFFILE, ARGPARSE_OPT_CONFFILE): New
	consts.
	(ARGPARSE_conffile, ARGPARSE_noconffile): New macros.
	(gpgrt_set_confdir): New func.
	(gpgrt_argparser): New func.
	* src/argparse.c (confdir): New var.
	(enum argparser_states): New.
	(struct _gpgrt_argparse_internal_s): Add a couple of new fields.
	(initialize): Init them.
	(any_opt_conffile): New.
	(_gpgrt_argparser): New.
	(_gpgrt_set_confdir): New.
	* src/visibility.c (gpgrt_argparser): New.
	(gpgrt_set_confdir): New.
	* src/gpg-error.def.in, src/gpg-error.vers: Add those functions.
	* tests/t-argparse.c (main): Reworked.
	* tests/etc/t-argparse.conf: New file.
	* tests/t-argparse.conf: New file.

	core: Add gpgrt_fnameconcat and gpgrt_absfnameconcat.
	+ commit 5742b8eaf3fa9cda3dfb6b3ad0fea7485fff1a12
	* src/gpg-error.h.in (gpgrt_fnameconcat): New.
	(gpgrt_absfnameconcat): New.
	* src/visibility.c (gpgrt_fnameconcat, gpgrt_absfnameconcat): New.
	* src/stringutils.c: New file.
	(_gpgrt_vfnameconcat): New.
	(_gpgrt_fnameconcat, _gpgrt_absfnameconcat): New.
	* src/gpg-error.def.in: Add new functions.
	* src/gpg-error.vers: Ditto.
	* src/sysutils.c: Include pwd.h.
	(_gpgrt_getpwdir): New.
	* configure.ac: Test for pwd.h, getpwnam, getpwuid, and their _r
	variants.
	* src/Makefile.am (libgpg_error_la_SOURCES): Add new file.

	* tests/t-stringutils.c: New.
	* tests/t-common.h (xmalloc, xstrdup, xfree): New.
	(die): Kludge to avoid compiler warnings.

2020-02-18  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Support static link with -lws2_32.
	+ commit a6ab8e3a710b899ecfb2ff518725314a1e0e64ff
	* configure.ac (GPG_ERROR_CONFIG_LIBS_PRIVATE): New.
	* src/Makefile.am (socklibs): Use GPG_ERROR_CONFIG_LIBS_PRIVATE.
	* src/gpg-error.pc.in: Require @GPG_ERROR_CONFIG_LIBS_PRIVATE@.

2020-02-10  Werner Koch  <wk@gnupg.org>

	logging: Also protect gpgrt_inc_errorcount against counter overflow.
	+ commit d72c1ddfde09ffa69745ec2439c5a16d15e2202f
	* src/logging.c (_gpgrt_inc_errorcount): Protect against counter
	overflow.
	(_gpgrt_logv_internal): Use that function here so that we have only
	one check for counter overflow.

2020-02-07  Werner Koch  <wk@gnupg.org>

	Release 1.37.
	+ commit 36b9924b483198f896c7ca3db233978978141b60


2020-02-06  Werner Koch  <wk@gnupg.org>

	tools: Allow error symbol lookup w/o the GPG_ERR_ prefix.
	+ commit 796b66a9449c442991cc205f8a618dffab54d8a3
	* src/gpg-error.c (get_err_from_codesymbol): New.
	(main): Use it here.

	build: Always pass -no-undefined to libtool.
	+ commit 6e4b5ca624cb7f771c8dd1f12cbad851a5f0d782
	* src/Makefile.am: Remove no_undefined macro.

2020-01-23  NIIBE Yutaka  <gniibe@fsij.org>

	po: Update Japanese Translation.
	+ commit d1e4b4b001b3fd34b91403f880a42c4a474cdb83


2020-01-07  NIIBE Yutaka  <gniibe@fsij.org>

	build: Don't use -O0 which is not portable.
	+ commit a2674207f7fef6d0f96b80838303a2e6a55e7785
	* src/Makefile.am (mkheader): Remove -O0 option.

2019-12-13  Werner Koch  <wk@gnupg.org>

	New error codes for SQLite.
	+ commit 308574372055662c76d27f1681b182afddce9166
	* src/err-codes.h.in: Add GPG_ERR_SQL_ codes.
	* src/gpg-error.h.in (gpg_err_code_from_sqlite): New.

2019-09-24  NIIBE Yutaka  <gniibe@fsij.org>

	Fix gpg-error.c for preprocessor use.
	+ commit f73605e039493ca875f992a45730a6c99430fb14
	* src/gpg-error.c (main): Fix conditional compilation.

2019-09-18  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Fix deallocation of buffer in t-b64.c.
	+ commit 46bb7eb8c5541d62cd90227bde205f663ef0e6d5
	* tests/t-b64.c (test_b64dec_string): De-allocate.

	gpgrt_setenv: Define behavior when value=NULL.
	+ commit 4b8e8ba9f60cb6eb644be5f86b9c19ebf4332763
	* src/sysutils.c (_gpgrt_setenv): Avoid call with value=NULL.

	logging: Fix the case of using socket_dir_cb which may return NULL.
	+ commit 521aeecf1e41e8e34bb354cf51bfd37ff7a900c6
	* src/logging.c (fun_writer): Fix for socket_dir_cb.

	estream: Care about erroneous case for stream close.
	+ commit f41991480aaa79db55e75363dfbb4f278cb8ea21
	* src/estream.c (do_list_remove): Only access ITEM->NEXT when it's not
	null.

2019-09-10  Werner Koch  <wk@gnupg.org>

	core: Fix broken strings (first letter missing)
	+ commit c1e80f6e8e368c271bbf413d9eaea772ef2062d1
	src/err-codes.h.in (GPG_ERR_KEYBOXD): Add missing tabs.

2019-09-08  Werner Koch  <wk@gnupg.org>

	estream: Fix dead assigniment.
	+ commit f7c24427329075adc98eb93d2abb12c087e0f9d2
	* src/estream-printf.c (pr_string): Here.

2019-09-04  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Support Libs.private and Requires.private.
	+ commit cb877252c4dc787755fb4e1ffc36757453af12eb
	* src/gpgrt-config.in: Support Libs.private and Requires.private.

2019-08-23  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Fix gpgrt_poll at EOF.
	+ commit 157b9f6fafb6905fd94c21aaa9e2c103d954a9fc
	* src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Catch POLLHUP event
	for want_read.

	estream: Fix gpgrt_poll to prevent waiting indefinitely for others.
	+ commit ab87480fc201ad687153429aee043ab454fed0a3
	* src/estream.c (_gpgrt_poll): Go to leave, when something is ready.

2019-08-22  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Fix poll condition.
	+ commit fc1a7591bdcd64a3df1d2db29afca8e224f64c0a
	* src/estream.c (_gpgrt_poll): Fix for want_oob.

2019-07-25  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix cast to internal fd.
	+ commit f93a0358dc82886db12c91180dc82e8bb1258ef0
	* src/estream.c (tmpfd): Use intptr_t.

	estream: Fix IS_INVALID_FD.
	+ commit 5f9f2c32b038848212bec9d9a95858c18b9a0eee
	* src/estream.c (IS_INVALID_FD): Simply compare to -1.

2019-07-24  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix HANDLE to internal fd conversion.
	+ commit 655ed9d83889bbb61d4b96755a2bd676622064c8
	* src/spawn-w32.c (handle_to_fd): Use intptr_t type.

2019-07-18  Daniel Kahn Gillmor  <dkg@fifthhorseman.net>

	build: Use {CFLAGS,CPPFLAGS, LDFLAGS}_FOR_BUILD for helper programs.
	+ commit 732855a483709345a5c0f49504f45cb8da3f883a
	* doc/Makefile.am: add CPPFLAGS_FOR_BUILD for yat2m-for-build (other
	flags were already present).
	* src/Makefile.am: add {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for
	mkhelper, mkw32errmap, and mkerrcodes.

2019-07-11  NIIBE Yutaka  <gniibe@fsij.org>

	Fix signedness for a single-bit field.
	+ commit 7ffab1750fdec31d6f6f62c3ff50f1a33eacda5c
	* src/gpgrt-int.h (struct _gpgrt_b64state): Use unsigned for bit flags.

2019-06-27  Werner Koch  <wk@gnupg.org>

	estream: Add missing malloc check.
	+ commit 382fddc151fd42cd6d1d02dbedb7b5031cc68958
	* src/estream.c (_gpgrt_poll): Check for malloc error.

2019-06-27  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Don't use variable length array.
	+ commit 70a5ea407c71cf094794d3d3375aab7fc2c4eca6
	* src/estream.c [HAVE_POLL_H] (_gpgrt_poll): No VLA.

2019-06-26  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Use poll(2) when available.
	+ commit a21a7de8c2cf986235382e7e04805744f6df116e
	* configure.ac: Detect poll.h.
	* src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Use poll.

2019-06-18  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Skip the test when pkg-config is too old.
	+ commit 6c2fc52d72b4dbd9dac44d9c3105dc3e8a4d5605
	* src/gpg-error-config-test.sh.in: Check pkg-config version.

