summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.30.libgpg-error-1.30Werner Koch2018-04-302-2/+6
| | | | | | * configure.ac: Bump LT version to C24/A/24/R1. Signed-off-by: Werner Koch <wk@gnupg.org>
* build: More release creation automation.Werner Koch2018-04-301-1/+59
| | | | | | * Makefile.am: Add release and sign-release targets. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Fix gpgrt_poll for Windows under nPth.Werner Koch2018-04-302-0/+4
| | | | | | * src/estream.c (_gpgrt_poll) [W32]: Use syscall clamp. Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: Add SPDX indentifier for the versioninfo template.Werner Koch2018-04-231-0/+1
| | | | --
* doc: Fix yat2m build for cross compilation.NIIBE Yutaka2018-04-131-1/+1
| | | | | | | | | | * doc/Makefile.am: Fix target of yat2m-for-build. -- GnuPG-bug-id: 3901 Fixes-commit: efc4769339d42a4a399c040c146cf4a29c02ea4f Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Check -lsocket -lnsl for Solaris.NIIBE Yutaka2018-04-121-0/+14
| | | | | | | | | | | | | * configure.ac: Check inet_addr for -lnsl, and socket for -lsocket. -- Once I used LIB_SOCKET_NSL for the variable name, but it is already used by AX_LIB_SOCKET_NSL in autoconf-archive as an alias of the macro. So, I changed the variable name. GnuPG-bug-id: 3869 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Make sure version.texi is generated in time.Damien Goutte-Gattat via Gnupg-devel2018-04-111-1/+1
| | | | | | | | | | | | | | | [[PGP Signed Part:Good signature from AA4373E6C82C78AD Damien Goutte-Gattat <dgouttegattat@incenp.org> (trust undefined) created at 2018-04-11T17:05:27+0200 using RSA]] [1. text/plain] * doc/Makefile.am (yat2m-stamp): Depend on version.texi. -- When building from a cloned Git repository and with `make -j 3` (or higher), the version.texi file may not have been generated yet when yat2m is called to generate the man page, resulting in a build failure. Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
* Post release updatesWerner Koch2018-04-112-1/+5
| | | | --
* Release 1.29libgpg-error-1.29gpgrt-1.29Werner Koch2018-04-113-10/+9
| | | | | | * configure.ac: Bump LT version to C24/A24/R0. Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: Beautify comments in gpg-error.h.Werner Koch2018-04-111-74/+84
| | | | | | -- Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Finalize the API for argparse.Werner Koch2018-04-112-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 <wk@gnupg.org>
* doc: Fix previous commit.NIIBE Yutaka2018-03-271-4/+4
| | | | | | | -- Fixes-commit: efc4769339d42a4a399c040c146cf4a29c02ea4f Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* doc: Support cross compilation for yat2m.NIIBE Yutaka2018-03-272-10/+22
| | | | | | | | | | | | * configure.ac (HAVE_YAT2M): New. * doc/Makefile.am [CROSS_COMPILING]: Supported. -- Makefile portability is also improved. Fixes-commit: 4dc6d4d2067c726cdb13593bf151637319ff65e6 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Okay travis, take thisWerner Koch2018-03-221-2/+2
| | | | --
* build: Another try on travis.ymlWerner Koch2018-03-221-2/+3
| | | | | | -- Why don't they return useful error messages????
* build: And even more travis.yml tweakingWerner Koch2018-03-221-8/+5
| | | | --
* build: And more travis.yml tweakingWerner Koch2018-03-221-9/+7
| | | | --
* build: More travis.yml tweakingWerner Koch2018-03-221-8/+22
| | | | --
* build: Update travis configuration.Werner Koch2018-03-221-0/+1
| | | | --
* build: Add option --git-build to autogen.shWerner Koch2018-03-221-1/+25
|
* build: Testing travis.Werner Koch2018-03-221-0/+7
| | | | --
* doc: Update NEWSWerner Koch2018-03-221-0/+9
| | | | --
* yat2m: Avoid compiler warningsWerner Koch2018-03-221-5/+10
| | | | | | | * doc/yat2m.c (evaluate_conditions): Mark args unused (proc_texi_cmd): Avoid shadowing warning. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Remove outdated comments.Werner Koch2018-03-222-43/+2
| | | | --
* core: Add Base-64 encoder.Werner Koch2018-03-2213-292/+567
| | | | | | | | | | | | | | | | | | | | | | | * 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 <wk@gnupg.org>
* core: Add file b64enc.c from gnupgWerner Koch2018-03-221-0/+422
| | | | | | | | | -- This is from GnuPG commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa with two tabs replaced by spaces. Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: Fix build and installation of yat2m.NIIBE Yutaka2018-03-222-23/+16
| | | | | | | | | | | | | * configure.ac (YAT2M): Require it when cross compiling. * doc/Makefile.am (bin_PROGRAMS): Add yat2m. -- Before 1.28, yat2m used to be an internal tool. Now, it's a standard tool. For native build, it is built and used for initial installation. For cross build, it is required on the build system. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* po: Update one fuzzy in all translations.Werner Koch2018-03-2119-159/+420
| | | | | | | | | | -- This was due to the removal of the "%s: " used for the prefix in a printf. It is now printed with log_error which prints the prefix on its own. Signed-off-by: Werner Koch <wk@gnupg.org>
* po: Merge GnuPG's strings from argparse.cWerner Koch2018-03-2117-0/+1007
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* tools: Use gpgrt_argparse for the gpg-error tool.Werner Koch2018-03-211-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 <wk@gnupg.org>
* core: Add public function gpgrt_usage.Werner Koch2018-03-217-5/+18
| | | | | | * src/visibility.c (gpgrt_usage): New. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Add the group of argparse functions.Werner Koch2018-03-2113-574/+686
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <wk@gnupg.org>
* core: Import argparse code from gnupg masterWerner Koch2018-03-212-0/+1867
| | | | --
* core: Fix regression on arm64 due to invalid use of va_list.Werner Koch2018-03-181-4/+14
| | | | | | | | | | | * src/logging.c (_gpgrt_log_printhex): Provide a dummy arg instead of NULL. -- Fix Suggested-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Fix building on W64Werner Koch2018-03-143-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 <wk@gnupg.org>
* Post release updatesWerner Koch2018-03-132-1/+5
| | | | --
* Release 1.28libgpg-error-1.28gpgrt-1.28Werner Koch2018-03-132-4/+8
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* build: Update copyright notices and remove gpgscm from the release.Werner Koch2018-03-137-16/+75
| | | | | | -- Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Fix regression due to not exporting the process API.Werner Koch2018-03-132-3/+4
| | | | | | | -- Fixes-commit: 0e503cae75cb1a6aa257228a65941b7630ff35d6 Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Remove accidently committed time function API.Werner Koch2018-03-121-31/+0
| | | | | | -- Fixes-commit: f9a33a7f7e44a644ff4e31f7e9f1c2c1ec1f8eee
* core: Do not export the process APIWerner Koch2018-03-125-19/+25
| | | | | | | | | -- We may need to change the API and thus we better wait before publishing this new interface. Signed-off-by: Werner Koch <wk@gnupg.org>
* syscfg: Add a riscv64 architecture.NIIBE Yutaka2018-02-282-0/+26
| | | | | | | | | | * src/syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h: New. * src/Makefile.am (lock_obj_pub): Add it. -- Debian-bug-id: 891663 Co-authored-by: Karsten Merker <merker@debian.org> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Document how to use git send-email.Werner Koch2018-02-213-4/+12
| | | | | | | | | | * autogen.rc: Add patches_to. * autogen.sh: Run git config sendemail.to. * doc/HACKING: Describe use of git send-email. -- Co-authored-by: Todd Zullinger Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: clarify patch submission workflowThorsten Behrens2018-02-211-0/+50
| | | | Signed-off-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* doc: Typo fixes.Werner Koch2018-02-212-2/+2
| | | | --
* build: let autogen.sh set a git PATCH prefixWerner Koch2018-02-213-2/+140
| | | | | | | | -- Also commit the missing commit-msg hook. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Avoid using estream_t in the public API.Werner Koch2017-12-111-4/+33
| | | | | | | | | | * src/gpg-error.h.in: Always use gpgrt_stream-t. -- estream_t can only be used if GPGRT_ENABLE_ES_MACROS is defined. Fixes-commit: 1865c0ba1769b407a3c504f1ab0a4278704a9fc1 Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Rename the gpgrt_log_levels enum values.Werner Koch2017-12-083-42/+44
| | | | | | | | | | | * src/gpg-error.h.in (gprt_log_levels): Rename to GPGRT_LOGLVL. -- Explicitly naming them and not distinguishing them from the other log constants is a Good Thing anyway. It also helps against the symbol name clash with the GPGRT enum values from gnupg's logging module. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Wrap blocking system calls of the spawn functions.Werner Koch2017-11-293-13/+48
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* core: Unify syscall_clamp functions.Werner Koch2017-11-2910-203/+138
| | | | | | | | | | | | | | | * src/estream.c (_gpgrt_set_syscall_clamp) (_gpgrt_get_syscall_clamp): Move to ... * src/syscall-clamp.c: new file. (_gpgrt_pre_syscall, _gpgrt_post_syscall): New. * src/Makefile.am (libgpg_error_la_SOURCES): Add that file. * src/estream.c: Replace the syscall wrapper with the new functions. * src/posix-lock.c: Ditto. * src/w32-lock.c: Ditto. * src/posix-thread.c: Ditto. * src/w32-thread.c: Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>