From eae8d3830c266d8e383cd29f44f6963e2c568ede Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 20 Oct 2008 15:59:19 +0000 Subject: [PATCH] Fix bug #818. Use gpgme.h.in instead of in-place editing gpgme.h. --- ChangeLog | 7 ++++++- configure.ac | 9 +++------ doc/ChangeLog | 5 +++++ doc/uiserver.texi | 5 ++++- gpgme/ChangeLog | 9 +++++++++ gpgme/Makefile.am | 2 +- gpgme/{gpgme.h => gpgme.h.in} | 10 +++++----- gpgme/posix-io.c | 3 +++ 8 files changed, 36 insertions(+), 14 deletions(-) rename gpgme/{gpgme.h => gpgme.h.in} (99%) diff --git a/ChangeLog b/ChangeLog index 893f171..24493ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-20 Werner Koch + + * configure.ac (AC_CONFIG_FILES): Add gpgme.h. + (GNUPG_FIX_HDR_VERSION): Remove. + 2008-10-17 Marcus Brinkmann Release GPGME 1.1.7. @@ -828,7 +833,7 @@ * autogen.sh: Added option --build-w32. - Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 g10 Code GmbH + Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 g10 Code GmbH This file is free software; as a special exception the author gives unlimited permission to copy and/or distribute it, with or without diff --git a/configure.ac b/configure.ac index aae75e4..34c7508 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,7 @@ BUILD_REVISION=svn_revision PACKAGE=$PACKAGE_NAME VERSION=$PACKAGE_VERSION -AC_CONFIG_SRCDIR(gpgme/gpgme.h) +AC_CONFIG_SRCDIR(gpgme/gpgme.h.in) dnl FIXME: Enable this with autoconf 2.59. dnl AC_CONFIG_MACRO_DIR(m4) AM_CONFIG_HEADER(config.h) @@ -695,10 +695,6 @@ fi AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+") -# Make the version number in gpgme/gpgme.h the same as the one here. -# (this is easier than to have a *.in file just for one substitution) -GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION) - # Generate values for the DLL version info if test "$have_w32_system" = yes; then BUILD_TIMESTAMP=`date --iso-8601=minutes` @@ -750,7 +746,8 @@ AC_SUBST(LTLIBOBJS) AC_CONFIG_FILES(Makefile assuan/Makefile gpgme/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile doc/Makefile complus/Makefile - gpgme/versioninfo.rc) + gpgme/versioninfo.rc + gpgme/gpgme.h) AC_CONFIG_FILES(gpgme/gpgme-config, chmod +x gpgme/gpgme-config) AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd]) AC_OUTPUT diff --git a/doc/ChangeLog b/doc/ChangeLog index 58fe8eb..c214412 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-15 Werner Koch + + * uiserver.texi (Miscellaneous UI Server Commands): Add option + --protocol to the SENDER command. + 2008-07-17 Werner Koch * module-overview.sk: New. diff --git a/doc/uiserver.texi b/doc/uiserver.texi index 14a249a..7c0a1e9 100644 --- a/doc/uiserver.texi +++ b/doc/uiserver.texi @@ -568,7 +568,7 @@ fully brought up). When doing an operation on a mail, it is useful to let the server know the address of the sender: -@deffn Command SENDER [-@w{}-info] @var{email} +@deffn Command SENDER [-@w{}-info] [-@w{}-protocol=@var{name}] @var{email} @var{email} is the plain ASCII encoded address ("addr-spec" as per RFC-2822) enclosed in angle brackets. The address set with this command is valid until a successful completion of the operation or until a @@ -580,6 +580,9 @@ If option @option{--info} is not given, the server shall also suggest a protocol to use for signing. The client may use this suggested protocol on its own discretion. The same status line as with PREP_ENCRYPT is used for this. + +The option @option{--protocol} may be used to give the server a hint on +which signing protocol should be preferred. @end deffn @noindent diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index b1ac869..2739952 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,12 @@ +2008-10-20 Werner Koch + + * Makefile.am (EXTRA_DIST): Add gpgme.h.in. + + * gpgme.h: Rename to gpgme.h.in. + * gpgme.h.in (GPGME_VERSION): Use autoconf substitution. + + * posix-io.c: Include sys/uio.h. Fixes bug #818. + 2008-10-18 Marcus Brinkmann * w32-util.c (find_program_in_registry): Don't define. diff --git a/gpgme/Makefile.am b/gpgme/Makefile.am index c3af79d..a3a1066 100644 --- a/gpgme/Makefile.am +++ b/gpgme/Makefile.am @@ -21,7 +21,7 @@ # Note: moc_kdpipeiodevice should actually be a dependcy below. EXTRA_DIST = gpgme-config.in gpgme.m4 mkstatus libgpgme.vers \ - versioninfo.rc.in gpgme.def moc_kdpipeiodevice.cpp + gpgme.h.in versioninfo.rc.in gpgme.def moc_kdpipeiodevice.cpp BUILT_SOURCES = status-table.h MOSTLYCLEANFILES = status-table.h bin_SCRIPTS = gpgme-config diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h.in similarity index 99% rename from gpgme/gpgme.h rename to gpgme/gpgme.h.in index de4f8bb..9dc230c 100644 --- a/gpgme/gpgme.h +++ b/gpgme/gpgme.h.in @@ -1,4 +1,4 @@ -/* gpgme.h - Public interface to GnuPG Made Easy. +/* gpgme.h - Public interface to GnuPG Made Easy. -*- c -*- Copyright (C) 2000 Werner Koch (dd9jn) Copyright (C) 2001, 2002, 2003, 2004, 2005, 2007 g10 Code GmbH @@ -16,7 +16,8 @@ You should have received a copy of the GNU Lesser General Public License along with this program; if not, see . - */ + + File: @configure_input@ */ #ifndef GPGME_H #define GPGME_H @@ -70,9 +71,8 @@ extern "C" { not use this symbol in your application, use gpgme_check_version instead. The purpose of this macro is to let autoconf (using the AM_PATH_GPGME macro) check that this header matches the installed - library. Warning: Do not edit the next line. configure will do - that for you! */ -#define GPGME_VERSION "1.1.7-svn1329" + library. */ +#define GPGME_VERSION "@PACKAGE_VERSION@" diff --git a/gpgme/posix-io.c b/gpgme/posix-io.c index e6a3c67..8c68882 100644 --- a/gpgme/posix-io.c +++ b/gpgme/posix-io.c @@ -33,6 +33,9 @@ #include #include #include +#ifdef HAVE_SYS_UIO_H +# include +#endif #include #include #include -- 2.26.2