[Pkg-gnupg-commit] [gnupg2] 49/102: w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jun 17 00:14:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 79b7a8a9e0d41b743ceaee20dc47294359fe0d44
Author: Werner Koch <wk at gnupg.org>
Date:   Sat Jun 4 18:45:37 2016 +0200

    w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.
    
    * configure.ac (BUILD_HOSTNAME): Set to "<anon>" bey default.
    * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Add
      --enable-build-timestamp.
    --
    
    Debian-bug-id: 826309
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 build-aux/speedo.mk | 4 +++-
 configure.ac        | 7 ++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk
index d286655..67ccbb4 100644
--- a/build-aux/speedo.mk
+++ b/build-aux/speedo.mk
@@ -448,7 +448,9 @@ speedo_pkg_libgcrypt_configure = --disable-static
 speedo_pkg_libksba_configure = --disable-static
 
 ifeq ($(TARGETOS),w32)
-speedo_pkg_gnupg_configure = --enable-gpg2-is-gpg --disable-g13 --disable-ntbtls
+speedo_pkg_gnupg_configure = \
+        --enable-gpg2-is-gpg --disable-g13 --disable-ntbtls \
+        --enable-build-timestamp
 else
 speedo_pkg_gnupg_configure = --disable-g13
 endif
diff --git a/configure.ac b/configure.ac
index 07d728a..1b8a6fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1776,12 +1776,13 @@ AC_ARG_ENABLE([build-timestamp],
         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
       else
         BUILD_TIMESTAMP="$enableval"
-      fi],
-     [BUILD_TIMESTAMP="<none>"])
+      fi
+      BUILD_HOSTNAME="$ac_hostname"],
+     [BUILD_TIMESTAMP="<none>"
+      BUILD_HOSTNAME="<anon>"])
 AC_SUBST(BUILD_TIMESTAMP)
 AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
                    [The time this package was configured for a build])
-BUILD_HOSTNAME="$ac_hostname"
 AC_SUBST(BUILD_HOSTNAME)
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list