Post release updates.

--
New error code GPG_ERR_KEY_DISABLED.
Add missing prototype for build tool.

* src/gen-posix-lock-obj.c: Include string.h.
--

string.h is required for strerror ().
Improve logging in a test module.

* tests/t-version.c (main): Print program name.
doc update.

--
Add new lock-obj-pub.*.h from debian buildds.

* src/syscfg/lock-obj-pub.aarch64-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h: New.
* src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabihf.h: New.
* src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.i486-pc-gnu.h: New.
* src/syscfg/lock-obj-pub.i486-pc-kfreebsd-gnu.h: New.
* src/syscfg/lock-obj-pub.i486-pc-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.m68k-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.mips-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.mipsel-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.powerpc-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.powerpc64-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.sh4-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.sparc-unknown-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h: New.
* src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h: New.
* src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h: New.
* src/Makefile.am (lock_obj_pub): Add new files.
--

To generate these:

pull all the logs stored under the "install" links from:

   https://buildd.debian.org/status/package.php?p=libgpg-error&suite=unstable
   https://buildd.debian-ports.org/status/package.php?p=libgpg-error&suite=unstable

and then extract the headers via:

for x in fetch*; do
   awk '/^## lock-obj-pub\..*\.h$/{ X=2 } { if (X > 0) { print $0 } }  /^##$/{ X = X-1 } ' < "$x" >tmp
   mv -f tmp $( head -n1 < tmp | cut -f2 -d\ )
done
Use 16 byte alignment for hppa-unknown-linux-gnu.

* configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): New.
* src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Set for HPPA-Linux.
(main): Enforce alignment if needed.
* src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Use 16 byte
alignment.
--

Debian-bug-id: 757060
Update ja.po
tests: Fix compiler warning.

* tests/t-lock.c: Include header vor getpid.
(revision_thread): Init "i" to avoid compiler warning.
--
GnuPG-bug-id: 1681

Note that the non-initialization of I did not harm.
Update Danish translation

* po/da.po: Update.
--

Debian-bug-id: 754128
doc: Explain two error codes.

--
Add estream code from GnuPG.

* src/estream-printf.c, src/estream-printf.h: New.
* src/estream.c, src/estream.h: New.
* m4/estream.m4: New.
* src/Makefile.am (libgpg_error_la_SOURCES): Add new files.
* configure.ac (AH_BOTTOM): Define estream prefix.
<gcc>: Add useful gcc warning options.
(estream_INIT): Call.
--

This is the base line patch to move the estream code from GnuPG to
libgpg-error.  The code has been taken from the GnuPG repository at
commit cb680c5ea540738692a5c74951802b0fdc658e85.

Signed-off-by: Werner Koch <wk@gnupg.org>
Add missing redefine macros to cleanup the external symbols.
Fix some minor estream things.

* m4/estream.m4: Check for memrchr.
* src/estream.c (memrchr) [!HAVE_MEMRCHR]: New.
* src/init.c: Include estream.h
(real_init): Init estream.
First set of changes to include estream into the API.

* configure.ac (AH_BOTTOM): Define GPGRT_ENABLE_ES_MACROS.
* src/gpg-error.h.in: include stdio.h.  Include most of the estream
functions and rename structures and types.
* src/estream.h: Rewrite. Include only gpg-error.h and local
prototypes.
* src/estream.c: Rename types and macros.
* src/estream-printf.c (_gpgrt_estream_snprintf): Prefix public
functions with _gpgrt_.
Implement symbol visibility.

* configure.ac: New option --enable-ld-version-script.
(GPGRT_USE_VISIBILITY): New ac_define.
(HAVE_LD_VERSION_SCRIPT): New am_conditional.
* src/gpg-error.vers: New.
* src/gpgrt-int.h: New.
* src/visibility.c, src/visibility.h: New.  Lot of changes to symbold
names.
--

This is only doe for the old API.  The estream API needs to be added.
Finish inclusion of estream into the API.
Add gpgrt_snprintf and gpgrt_vsnprintf.
Add test for the estream printf functions

* tests/t-printf.c: New.
* configure.ac: Check for vasprintf.
--

These tests have been taken from Libestream and changed to be more
portable.  For example there is only va_start per function and the
test return an error only for _GLIBC_ based systems because that is
what we compare against.
Remove GnuPG specific code.

* src/estream.c (es_write_sanitized_utf8_buffer): Remove.