summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* doc update.Werner Koch2014-06-301-2/+6
| | | | --
* Improve logging in a test module.Daniel Kahn Gillmor2014-06-301-1/+1
| | | | * tests/t-version.c (main): Print program name.
* Add missing prototype for build tool.Werner Koch2014-06-251-0/+1
| | | | | | | * src/gen-posix-lock-obj.c: Include string.h. -- string.h is required for strerror ().
* New error code GPG_ERR_KEY_DISABLED.Werner Koch2014-06-103-1/+8
|
* Post release updates.Werner Koch2014-04-152-1/+8
| | | | --
* Release 1.13.libgpg-error-1.13Werner Koch2014-04-152-3/+4
| | | | * configure.ac: Set LT version to C11/A11/R0.
* Update pl.po.Werner Koch2014-04-151-194/+173
|
* Auto-update of po files.Werner Koch2014-04-1513-0/+169
| | | | --
* Update de.po.Werner Koch2014-04-151-1/+7
| | | | --
* Add code GPG_ERR_KEY_ON_CARD.Werner Koch2014-04-152-3/+20
|
* Fix a syscfg/ file name.Werner Koch2014-01-292-2/+2
| | | | | | | | | | * src/syscfg/lock-obj.arm-unknown-linux-androideabi.h: Rename to ... * src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h: this. * src/Makefile.am (lock_obj_pub): Fix file name. -- Ooops. A wrong comment in a generated header can make a lot of trouble.
* Fix the name of the file in the comment of the output.Werner Koch2014-01-281-1/+1
| | | | * src/gen-posix-lock-obj.c (main): Chnage comment in created file.
* Add lock info for arm-unknown-linux-androideabi.Werner Koch2014-01-252-2/+23
| | | | | | * src/syscfg/lock-obj.arm-unknown-linux-androideabi.h: New. Provided by Hans-Christoph Steiner. * src/Makefile.am (lock_obj_pub): Add file.
* tests: Call srand for each thread under Windows.Werner Koch2014-01-241-0/+3
| | | | * tests/t-lock.c (accountant_thread) [W32]: Call srand.
* Do not use the threadlib macros for Windows.Werner Koch2014-01-241-27/+45
| | | | | | | * configure.ac: Move platform detection before gl_THREADLIB_EARLY. Do not use gl_THREADLIB for Windows. Signed-off-by: Werner Koch <wk@gnupg.org>
* Make multi-threading flags available via gpg-error-config.Werner Koch2014-01-245-9/+57
| | | | | | | | | | | | | | | | | * m4/threadlib.m4: Set THREADLIB_CPPFLAGS. * src/gpg-error-config.in: Add option --mt. * configure.ac: Add support for the --mt option. * src/gpg-error.m4: Add ac_subst GPG_ERROR_MT_CFLAGS and GPG_ERROR_MT_LIBS. -- Although, libgpg-error does not yet provide an API for multi-thread support, it is useful to add the already available detection to the config script. This allows the latest Libgcrypt to take advantage of this in its regression tests. In particular for the regression tests a gpgrt_thread functions would be useful and eventually added to libgpg-error. The new gpg-error.m4 script should already be used by other packages to be prepared for future updates.
* Allow using gpgrt_lock_init on an unitialized variable.Werner Koch2014-01-243-6/+33
| | | | | | | | | | | | | | | | | | | | | * src/posix-lock.c (gpgrt_lock_init): Detect unitialized lock var. * src/w32-lock.c (gpgrt_lock_init): Ditto. -- gpgrt_lock_init may be used for dynamically allocated locks. For example gpgrt_lock_t *lock = xcalloc (1, sizeof *lock); gpgrt_lock_init (lock); gpgrt_lock_lock (lock); foo (); gpgrt_lock_unlock (lock); gpgrt_lock_destroy (lock); free (lock); This patch actually allows for this. Signed-off-by: Werner Koch <wk@gnupg.org>
* Move version number first in the Posix lock-obj.Werner Koch2014-01-173-16/+20
| | | | | | | | | * src/posix-lock-obj.h (_gpgrt_lock_t): Swap VERS and MTX and put MTX into a union. * src/posix-lock.c (gpgrt_lock_lock): Adjust for this change. * src/gen-posix-lock-obj.c (main): Change output accordingly. Signed-off-by: Werner Koch <wk@gnupg.org>
* Extend the platform dependent build rules.Werner Koch2014-01-176-44/+162
| | | | | | | | | | | | | | | | | | | | * src/mkheader.c (mk_include_name): New. (include_file): Implement '&' substitution. (try_include_file): New. (write_special): Use try_include_file and syscfg/. (main): Add a new arg. * configure.ac (CROSS_COMPILING): New am_conditional. (HOST_TRIPLET_STRING): New ac_define. * src/gen-posix-lock-obj.c (main): Print the host triplet. * src/w32-lock-obj-pub.in: Move to ... * src/syscfg/lock-obj-pub.mingw32.h: here. * src/Makefile.am (lock_obj_pub): New. (pre_mkheader_cmds): New. (gpg-error.h): Run pre_mkheader_cmds. (parts_of_gpg_error_h, lock-obj-pub.native.h): Do not use when cross-compiling. Signed-off-by: Werner Koch <wk@gnupg.org>
* Fix linking for last change on non-ELF platforms.Werner Koch2014-01-161-1/+1
| | | | | | | | | | | | | * src/Makefile.am (libgpg_error_la_LIBADD): Add LIBTHREAD. -- If configure told us to link with -lpthread we need to pass that library to the libgpg-error.la build rule. Which is the right thing to do. Without that we may run into strange errors; for example on AIX pthread_mutex_lock is silently not resolved and thus any use of gpgrt_lock_lock will immediately lead to segv. Signed-off-by: Werner Koch <wk@gnupg.org>
* Add gpgrt_lock_ functions.Werner Koch2014-01-1624-298/+1665
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (GPGRT_LOCK_DEFINE): New. (gpgrt_lock_init): New. (gpgrt_lock_lock): New. (gpgrt_lock_unlock): New. (gpgrt_lock_destroy): New. (gpgrt_yield): New. * src/gpg-error.def.in: Add new functions. * m4/lock.m4, m4/threadlib.m4: New. Taken from current gnulib. * configure.ac: Call gl_LOCK. Check size of pthread_mutex_t. Add LIBTHREAD to GPG_ERROR_CONFIG_LIBS. * src/err-codes.h.in (GPG_ERR_INV_LOCK_OBJ): New. * src/gen-posix-lock-obj.c: New. * src/gen-w32-lock-obj.c: New. * src/lock.h, src/thread.h: New. * src/posix-lock-obj.h, src/w32-lock-obj.h: New. * src/posix-lock.c, src/w32-lock.c: New. * src/posix-thread.c, src/w32-thread.c: * src/w32-lock-obj-pub.in: New. * src/mkheader.c (include_file): Support build time include files. (write_special): Add keyword "include:lock-obj". * src/Makefile.am: (posix-lock-obj-pub.in): New rule. (noinst_PROGRAMS): Add gen-*-lock-obj helpers. * tests/t-common.h: New. * tests/t-lock.c: New. * tests/Makefile.am (t_lock_LDADD): Add new test. -- This patch introduces the gpgrt_ functions which will be extended over time to provide a library of commonly used code in GnuPG and Libgcrypt. Having them in a library named libgpg-error is a misnomer but this way we can achieve a smooth upgrade path. In contrasts to other GnuPG libraries, the gpgrt_ functions return a simple gpg_err_code_t and not gpg_error_t. The rationale for this is that a source of error identifier does not make sense here; it is better to use the source of error identifier of the caller. This can easily be achieved in a component by wrapping these function in a gpg_error macro/inline. There is no cross-compiling support for Posix platforms; the gen-posix-lock-obj tool must be run on the target system. Note that the gen-w32-lock-obj tool is not needed at build time but was used to figure out ABI definitions for Windows. Signed-off-by: Werner Koch <wk@gnupg.org>
* Improve maintainability by rewriting the mkheader helper.Werner Koch2014-01-145-261/+404
| | | | | | | | | | | | | | | | | * src/mkheader.c: New. Based on the mkheader from Libassuan. * src/mkheader.awk: Remove. * src/errnos.in: Add trailing linefeed. * src/gpg-error.h.in: Change meta include directives for use with mkheader.c. * src/Makefile.am (EXTRA_DIST): Replace mkheader.awk by mkheader.c (BUILT_SOURCES): Remove extra-h.in. (CLEANFILES): Remove extra-h.in. Add mkheader.c. (parts_of_gpg_error_h): New. (extra-h.in): Remove rule. (mkheader): Add rule. (gpg-error.h): Change rule to use mkheader. Signed-off-by: Werner Koch <wk@gnupg.org>
* po: Update de.po.Werner Koch2014-01-101-1/+4
|
* Use the generic autogen.sh script.Werner Koch2014-01-103-82/+210
| | | | | | | | | * Makefile.am (EXTRA_DIST): Add autogen.rc remove config.rpath. * autogen.rc: New. * autogen.sh: Update from current GnuPG. -- Note that config.rpath is automatically distributed by automake.
* Move helper scripts to build-aux.Werner Koch2014-01-109-1/+2
| | | | | | * compile, config.guess, config.rpath, config.sub * depcomp, install-sh, ltmain.sh, missing: Move to build-aux/. * configure.ac (AC_CONFIG_AUX_DIR): New.
* Add build support for ppc64le.Werner Koch2013-12-093-68/+113
| | | | | | | | | | | * config.guess, config.sub: Update to latest version (2013-11-29). * m4/libtool.m4: Add patches for ppc64le. -- We don't want to update libtool, thus we a simple libtool patch supplied by IBM. Signed-off-by: Werner Koch <wk@gnupg.org>
* Update libtool to support Android.David 'Digit' Turner2013-12-091-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | * m4/libtool.m4: Add "linux*android*" case. Taken from the libtool repository. -- The patch, which cleanly applies, is commit 8eeeb00daef8c4f720c9b79a0cdb89225d9909b6 Author: David 'Digit' Turner <digit@google.com> Date: Tue Oct 8 14:37:32 2013 -0700 This patch adds proper Android support to libtool. The main issues are the following: - Versioned libraries are not supported by the platform and its build/packaging tools. - The dynamic linker is not GNU ld, there is no support for DT_RUNPATH. - Similarly, there is no ldconfig. Signed-off-by: Werner Koch <wk@gnupg.org>
* Add GPG_ERR_MAC_ALGO.Werner Koch2013-11-173-2/+16
|
* w32: Fix corrupted string output.Werner Koch2013-07-151-4/+18
| | | | | | | | | * src/w32-gettext.c (get_string): Pass the nul of the utf-8 string to the conversion function but keep TRANSLEN without the nul. -- The bug first occurred on Windows 8 but it is a real thing. Assuming that a malloced buffer is zeroed out is not solid assumptions ;-)
* Remove trailing spaces from w32-gettext.c.Werner Koch2013-07-151-26/+26
| | | | --
* Post release version bump.Werner Koch2013-06-242-1/+4
| | | | --
* Release 1.12.libgpg-error-1.12Werner Koch2013-06-242-3/+7
| | | | * configure.ac: Set LT version to C10/A10/R0.
* Auto merge po files.Werner Koch2013-06-2413-0/+354
| | | | --
* Update German translation.Werner Koch2013-06-241-3/+19
|
* Add hack to have different names for 64 bit Windows DLLs.Werner Koch2013-06-171-0/+13
| | | | | | | | | | | | | | | | * ltmain.sh: Prefix the SO number for W64 with a "6". -- We need to stick to libtool 2.4.2 anyway, thus we take the easy way and hack libtool instead of adding "-release 6" to the Makefile. This also avoids an extra dash before the 6 and thus yields a prettier name than the one produced by the -release option. The header files and def files are supposed to be identical for w32 and w64 thus we don't need to do any special code for them. Having a different namespace for 64 bit DLLs is such a good idea that I hope this or a similar feature will be provided by future libtool versions.
* Support building for w64.Werner Koch2013-06-171-1/+4
|
* w32: Fix installing of .def file.Werner Koch2013-05-231-0/+1
| | | | | | | * src/Makefile.am (install-def-file): Create libdir first. -- Reported-by: LRN <lrn1986@gmail.com>
* Fix libtool 2.4.2 to correctly detect .def files.Werner Koch2013-05-232-5/+9
| | | | | | | | | | | | | | | | | | | * ltmain.sh (sed_uncomment_deffile): New. (orig_export_symbols): Uncomment def file before testing for EXPORTS. * m4/libtool.m4: Do the same for the generated code. -- The old code was not correct in that it only looked at the first line and puts an EXPORTS keyword in front if missing. Binutils 2.22 accepted a duplicated EXPORTS keyword but at least 2.23.2 is more stringent and bails out without this fix. There is no need to send this upstream. Upstream's git master has a lot of changes including a similar fix for this problems. There are no signs that a libtool 2.4.3 will be released to fix this problem and thus we need to stick to our copy of 2.4.2 along with this patch. Signed-off-by: Werner Koch <wk@gnupg.org>
* Add GPG_ERR_*CRYPT_CTX* and GPG_ERR_BROKEN_*KEY.Werner Koch2013-04-113-5/+72
| | | | | | | * src/err-codes.h.in (GPG_ERR_NO_CRYPT_CTX): New. (GPG_ERR_WRONG_CRYPT_CTX, GPG_ERR_BAD_CRYPT_CTX): New. (GPG_ERR_CRYPT_CTX_CONFLICT): New. (GPG_ERR_BROKEN_PUBKEY, GPG_ERR_BROKEN_SECKEY): New.
* Post release vesion bump.Werner Koch2013-02-252-1/+5
| | | | --
* Release 1.11.libgpg-error-1.11Werner Koch2013-02-256-371/+60
| | | | | | | | * configure.ac: Set LT version to C9/A9/R0. * Makefile.am (GITLOG_TO_CHANGELOG): New. (gen-ChangeLog): Use --tear-off. * build-aux/gitlog-to-changelog: Remove.
* Update helper scripts.Werner Koch2013-02-257-542/+1091
| | | | | | | | | * compile, config.guess, config.rpath, config.sub, depcomp, * install-sh, mkinstalldirs: Update to current versions from gnulib. -- Some of them have not been updated here in over 8 years, time to fix that.
* Add translation to Ukrainian.Werner Koch2013-02-232-0/+872
| | | | | * po/uk.po: New. * po/LINGUAS: Add uk.po
* Add translation to Esperanto.Werner Koch2013-02-232-0/+870
| | | | | * po/eo.po: New. * po/LINGUAS: Add eo.po.
* Add version macros and check function.Werner Koch2013-02-2310-44/+301
| | | | | | | | | | | | | | | | | | | * configure.ac (VERSION_NUMBER): New ac_subst. (BUILD_FILEVERSION): Build on all platforms (BUILD_TIMESTAMP): Try to use an ISO string. * src/Makefile.am (extra-h.in): Add new version numbers. * src/versioninfo.rc.in: Update copyright year. * src/version.c: New. (gpg_error_check_version): New API. * src/gpg-error.h.in: Add gpg_error_check_version prototype. * src/gpg-error.def.in: Add gpg_error_check_version * tests/t-version.c: New. * tests/Makefile.am (TESTS): Add t-version.c * src/gpg-error-config.in: s/VERSION/PACKAGE_VERSION/. -- All other GnuPG libraries do this, thus we do it here as well.
* Add string "Assuan" to all po files.Werner Koch2013-02-2312-31/+65
| | | | --
* Make i686-w64-mingw32 the primary W32 toolchain.Werner Koch2013-02-231-2/+3
| | | | --
* Fix the alias mechanism for --with-libgpg-error-prefix.Werner Koch2013-02-221-4/+5
| | | | | | | | * src/gpg-error.m4: Do not use the no-action branch in AC_ARG_WITH. -- This fixes commit aaa3f534. The bug was that --with-gpg-error-prefix always reset the value from --with-libgpg-error-prefix.
* Switch to the new automagic beta numbering scheme.Werner Koch2012-11-162-27/+35
| | | | | | * configure.ac: Change to a git only revision id setup. (BUILD_FILEVERSION): Use revision id for this. * src/versioninfo.rc.in (FileVersion): Use LT version.
* Support mingw64 toolchain.Werner Koch2012-11-161-1/+1
| | | | --