aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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
| | | | --
* Update to libtool 2.4.2.Werner Koch2012-11-165-2216/+4115
|
* Add new source id for Libassuan.Werner Koch2012-11-162-2/+5
| | | | * src/err-sources.h.in (GPG_ERR_SOURCE_ASSUAN): New.
* Improve parsing of the GIT revision number.Werner Koch2012-11-161-2/+2
| | | | * configure.ac (git_revision): Use git rev-parse.
* Fix non-portable use of chmod in autogen.sh.Werner Koch2012-11-161-1/+1
| | | | * autogen.sh: Remove option -c from chmod.
* Add a fuzzy entry to the translationsWerner Koch2012-08-0911-11/+33
| | | | --
* Update Italian translationWerner Koch2012-08-091-7/+19
|
* Run msgmerge on the translationsWerner Koch2012-08-0910-4/+102
| | | | --
* Remove the generated POT file for the repoWerner Koch2012-08-092-1107/+1
| | | | --
* Typo fix.Jordy Provost2012-08-091-1/+1
| | | | * src/err-codes.h.in: Unify uppercase.
* Update Dutch translation.Freek de Kruijf2012-08-091-183/+178
| | | | * po/nl.po: Update.
* Update Czech translation.Petr Pisar2012-08-091-28/+20
| | | | * po/cs.po: Update.
* Add Danish translation.Joe Hansen2012-08-092-0/+840
| | | | | * po/da.po: New. * po/LINGUAS: Add da.po.
* Update French translation.David Prévot2012-08-091-226/+201
| | | | * po/fr.po: Update, proofread by Jordy Provost
* Keep previous msgids of translated messagesDavid Prévot2012-08-091-2/+2
| | | | * po/Makefile.in.in: Add --previous option to msgmerge.
* Add Japanese translationWerner Koch2012-08-072-0/+869
| | | | | * po/ja.po: New. * po/LINGUAS: Add ja.po.
* Update German translation.Werner Koch2012-08-071-8/+11
| | | | * po/de.po: Update.
* Add the mailing list to AUTHORS.Werner Koch2012-06-201-1/+2
| | | | --
* Add more error code documentationWerner Koch2012-06-201-3/+18
| | | | --
* Use CPPFLAGS when generating mkerrcodes.hRafaël Carré2012-06-201-1/+1
| | | | | | * src/Makefile.am (mkerrcodes.h): Use CPPFLAGS. Signed-off-by: Rafaël Carré <[email protected]>