aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-05gpg-error-config: Forward compatibility support.NIIBE Yutaka1-0/+10
* src/gpg-error-config.in: Support --variable=* option. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-09-05Forward compatibility support by gpg-error-config-old (--variable=*).NIIBE Yutaka3-1/+23
2018-09-04gpg-error-config: Determine output at configure time.NIIBE Yutaka1-15/+0
* src/gpg-error-config.in (isubdirafter): Remove. Also for --cflags and --libs. * configure.ac (GPG_ERROR_CONFIG_ISUBDIRAFTER): Remove. (GPG_ERROR_CONFIG_CFLAGS): Add -idirafter gpg-extra for W32CE. (GPG_ERROR_CONFIG_CFLAGS): Decide here if adding -I$includedir. (GPG_ERROR_CONFIG_LIBS): Decide here if adding -L$libdir. -- Don't do string substitution at the time of its command invocation, but let it determine at configure time.
2018-09-04Fix configure time check for includedir and libdir.NIIBE Yutaka1-5/+7
2018-09-04Add gpg-error-config to CLEANFILES.NIIBE Yutaka1-1/+1
2018-09-04Extend gpg-error-config-test.sh to test against pkg-config.NIIBE Yutaka2-22/+67
2018-09-03Not by "make check" but gpg-error-config is determined by the test.NIIBE Yutaka2-10/+17
2018-09-03Fix new gpg-error-config and add a test.NIIBE Yutaka3-6/+45
2018-09-03Fix old gpg-config-error with configure.ac substitution.NIIBE Yutaka1-9/+0
2018-09-03Change old gpg-error-config for isubdirafter.NIIBE Yutaka1-6/+0
2018-09-03Add back old gpg-error-config.NIIBE Yutaka2-488/+596
2018-09-03Support invocation like gpg-erro-config '>=' 1.32.NIIBE Yutaka1-47/+46
2018-08-31Support module dependency.NIIBE Yutaka1-29/+176
2018-08-30Remove AC_CONFIG_COMMANDS for gpg-error-config.NIIBE Yutaka4-160/+161
2018-08-30Fixes src/gpg-error-config-main.sh and src/pkgconf-funcs.sh.NIIBE Yutaka2-34/+48
2018-08-30Support invocation with module names.NIIBE Yutaka1-32/+39
2018-08-30Remove dupulicates.NIIBE Yutaka2-2/+41
2018-08-30Handle module dependency (Requires field).NIIBE Yutaka2-8/+76
2018-08-30PKG_CONFIG_PATH change.NIIBE Yutaka1-1/+1
2018-08-30New func read_config_from_stdin and cleanup_vars_attrs.NIIBE Yutaka2-16/+23
2018-08-30Add note for the compatibility.NIIBE Yutaka1-10/+30
* src/gpg-error-config-main.sh (--modversion): New. Add comments. -- Not supported by pkg-config: No such options: --prefix --exec-prefix --host Conditional flag which change the output: --mt Different semantics: --version which print the tool version We keep the backward compatibility for older gpg-error-config for --mt and other options for a while. New usage (pkg-config compatible way) is encouraged.
2018-08-30Fix test condition for pkg-conf-funcs.NIIBE Yutaka1-1/+1
* src/pkgconf-funcs.sh: Use -r (was: -e).
2018-08-30Simplify configure substitution.NIIBE Yutaka1-2/+2
* configure (GPG_ERROR_CONFIG_INCLUDEDIR): Remove. (GPG_ERROR_CONFIG_LIBDIR): Remove.
2018-08-30Fix the previous commit.NIIBE Yutaka1-0/+2
2018-08-29Fix gpg-error.m4 to use pkg-config compatible way.NIIBE Yutaka1-3/+3
* src/gpg-error.m4: Use --variable=xx. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-08-29More changes for new gpg-error-config.NIIBE Yutaka5-22/+26
* configure.ac: Change generating gpg-error-config. (GPG_ERROR_CONFIG_ISUBDIRAFTER): Remove. (GPG_ERROR_CONFIG_CFLAGS): Put -idirafter here. * src/Makefile.am (pkgconfig_DATA): Add. (EXTRA_DIST): Add gpg-error-config-head.in, pkgconf-funcs.sh, gpg-error-config-main.sh, gpg-error.pc.in. * src/gpg-error-config-head.in: New. * src/gpg-error-config-main.sh: Rename from src/gpg-error-config.in. * src/gpg-error.pc.in (isubdirafter): Remove. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-08-28pkg-config compatible .pc file support.NIIBE Yutaka3-38/+182
Signed-off-by: NIIBE Yutaka <[email protected]>
2018-07-17build: use EXEEXT_FOR_BUILD everywhere.Michael Haubenwallner1-13/+13
* src/Makefile.am: Use EXEEXT_FOR_BUILD with all build tools. Signed-off-by: Michael Haubenwallner <[email protected]>
2018-07-12estream: Always propagate flush event to cookie functions.Werner Koch1-3/+4
* src/estream.c (flush_stream): Always call cookie's flush func. Signed-off-by: Werner Koch <[email protected]>
2018-07-05Remove leftover debug output from gpg-error.Werner Koch3-4/+3
* src/gpg-error.c (main): Remove a log_debug. -- Also a few typo fixes. Signed-off-by: Werner Koch <[email protected]>
2018-07-05core: Initialize values in estream_formatAndre Heinecke1-1/+5
* src/estream-printf.c (_gpgrt_estream_format): Make sure valuetable.value is inialized even on stack. -- This makes the behavior more consistent with the calloc'ed codepath for more then 8 variables. It also fixes a potential crash if there were unmatched format args provided. GnuPG-Bug-Id: T4054
2018-05-30core: Fix problem with C11 and stdnoreturn.h.Werner Koch1-3/+3
* src/gpg-error.h.in (GPGRT_ATTR_NORETURN): Use gcc specific symbol name __noreturn__. -- GnuPG-bug-id: 4002 Signed-off-by: Werner Koch <[email protected]>
2018-05-01core,w32: Avoid recursive use of npth_unprotect.Werner Koch2-3/+15
* src/w32-estream.c (reader): Use standard free. (writer): Ditto. -- There are two errors: The minor one is that we allocated with calloc but released with _gpgrt_free. The major one is the recursive use of npth_unprotect due to the syscall_clamp mechanism: 1. Around the call to _gpgrt_w32_poll 2. By gpgrt_lock_lock on behalf of a the custom allocation handler in the worker threads at their _gpgrt_free. This problem was exhibited by GnuPG's dirmngr component. GnuPG-bug-id: 3937 Signed-off-by: Werner Koch <[email protected]>
2018-04-30core: Fix gpgrt_poll for Windows under nPth.Werner Koch2-0/+4
* src/estream.c (_gpgrt_poll) [W32]: Use syscall clamp. Signed-off-by: Werner Koch <[email protected]>
2018-04-23doc: Add SPDX indentifier for the versioninfo template.Werner Koch1-0/+1
--
2018-04-11doc: Beautify comments in gpg-error.h.Werner Koch1-74/+84
-- Signed-off-by: Werner Koch <[email protected]>
2018-04-11core: Finalize the API for argparse.Werner Koch2-161/+195
* src/gpg-error.h.in (ARGPARSE_end): Simplify. * src/argparse.c (_gpgrt_argparse_internal_s): Add field opts. (deinitialize): Release new field. (initialize): Add arg opts and create a copy of the option list. Add the internal options. (_gpgrt_argparse): Rename arg opts to opts_orig and set new local var opts. Adjust all references to opts. (find_long_option): Adjust for chnaged type of OPTS. Re-indent. (arg_parse): Remove internal option assignment. Rename arg opts to opts_orig and set new local var opts. Adjust all references to opts. (show_help): Adjust all references to opts. -- The old ARGPARSE_end maro was a bit cumbersome and does not allow to chnage the number of internal options. Thus this somewhat larger chnage to keep the internal options out of the API. Note that with this change the internal options now also work in a option file and not just on the command line; that does not make much sense but is probably less surprising. Signed-off-by: Werner Koch <[email protected]>
2018-03-22core: Remove outdated comments.Werner Koch1-42/+0
--
2018-03-22core: Add Base-64 encoder.Werner Koch9-162/+184
* src/b64enc.c: Change to fit into libgpg-error. * src/Makefile.am: Add b64enc.c * src/b64dec.c: Use xtrymalloc etc. Always use gpg_err_code_t. (_gpgrt_b64dec_start): Set decoder flag (_gpgrt_b64dec_finish): Check for conflict. (_gpgrt_b64state): Move to ... * src/gpgrt-int.h: here. Add new fields. * src/visibility.c (gpgrt_b64enc_start): New. (gpgrt_b64enc_write): New. (gpgrt_b64enc_finish): New. * src/gpg-error.vers, src/gpg-error.def.in: Add new functions. * src/gpg-error.h.in: Ditto. * src/visibility.h: Ditto. * tests/t-b64dec.c: Remove. * tests/t-b64.c: New. * tests/Makefile.am (TESTS): Replace t-b64dec by t-b64. -- Signed-off-by: Werner Koch <[email protected]>
2018-03-22core: Add file b64enc.c from gnupgWerner Koch1-0/+422
-- This is from GnuPG commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa with two tabs replaced by spaces. Signed-off-by: Werner Koch <[email protected]>
2018-03-21tools: Use gpgrt_argparse for the gpg-error tool.Werner Koch1-67/+60
* src/gpg-error.c (show_usage): Remove. (my_strusage): New. (main): Change to use argparse. Also use log_error. Signed-off-by: Werner Koch <[email protected]>
2018-03-21core: Add public function gpgrt_usage.Werner Koch6-5/+17
* src/visibility.c (gpgrt_usage): New. Signed-off-by: Werner Koch <[email protected]>
2018-03-21core: Add the group of argparse functions.Werner Koch9-573/+548
* src/visibility.c (gpgrt_argparse): New. (gpgrt_strusage): New. (gpgrt_set_strusage): New. (gpgrt_set_usage_outfnc): New. (gpgrt_set_fixed_string_mapper): New. * src/gpg-error.def.in, src/gpg-error.vers: Add new functions. * src/gpg-error.h.in: Add ARGPARSE macros from the former argparse.h. (gpgrt_argparse_t): New. (gpgrt_opt_t): New. * configure.ac (AH_BOTTOM): Request argparse macros. * src/Makefile.am (libgpg_error_la_SOURCES): Add argparse.c. * src/argparse.h: Remove. * src/argparse.c: Revamp to fit into libgpg-error. (_gpgrt_argparse): New. (_gpgrt_usage): Rename from usage. (_gpgrt_strusage): Rename from strusage. Define two new levels and templates for three common licenses. (_gpgrt_set_strusage): Rename from set_strusage. (_gpgrt_set_usage_outfnc): New. (_gpgrt_set_fixed_string_mapper): New. * tests/t-argparse.c: New. -- These functions are in use by GnuPG and other software for 20 years and it makes sense to have them always available instead of copying and maintaing the source in several projects. Note that there are minor changes in the API compared to GnuPG. Signed-off-by: Werner Koch <[email protected]>
2018-03-21core: Import argparse code from gnupg masterWerner Koch2-0/+1867
--
2018-03-18core: Fix regression on arm64 due to invalid use of va_list.Werner Koch1-4/+14
* src/logging.c (_gpgrt_log_printhex): Provide a dummy arg instead of NULL. -- Fix Suggested-by: Jakub Wilk <[email protected]> Signed-off-by: Werner Koch <[email protected]>
2018-03-14core: Fix building on W64Werner Koch3-6/+35
* src/w32-add.h: Remove hack to define pid_t. * src/gpg-error.h.in: Eval macro to define pid_t. * src/mkheader.c (have_sys_types_h, sys_types_h_included): New. (parse_config_h): Test for sys/types.h. (write_special): Protect inclusion of sys/types.h. Define new macro 'define:pid_t'. -- Regression-due-to: 1865c0ba1769b407a3c504f1ab0a4278704a9fc1 Signed-off-by: Werner Koch <[email protected]>
2018-03-13build: Update copyright notices and remove gpgscm from the release.Werner Koch2-3/+3
-- Signed-off-by: Werner Koch <[email protected]>
2018-03-13core: Fix regression due to not exporting the process API.Werner Koch2-3/+4
-- Fixes-commit: 0e503cae75cb1a6aa257228a65941b7630ff35d6 Signed-off-by: Werner Koch <[email protected]>
2018-03-12core: Remove accidently committed time function API.Werner Koch1-31/+0
-- Fixes-commit: f9a33a7f7e44a644ff4e31f7e9f1c2c1ec1f8eee
2018-03-12core: Do not export the process APIWerner Koch5-19/+25
-- We may need to change the API and thus we better wait before publishing this new interface. Signed-off-by: Werner Koch <[email protected]>