Your message dated Wed, 30 Sep 2015 16:19:20 +0000
with message-id <[email protected]>
and subject line Bug#794892: fixed in autogen 1:5.18.6-1
has caused the Debian Bug report #794892,
regarding autogen: please make the build reproducible (cpu, locale, timestamps)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
794892: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794892
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: autogen
Version: 1:5.18.6~pre3-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: cpu locale timestamps
X-Debbugs-Cc: [email protected]
Hi!
While working on the “reproducible builds” effort [1], we have noticed
that autogen could not be built reproducibly.
The attached patch fixes the following issues:
* run time of ./configure affects a preprocessor constant
* locale-dependant sort
* timezone-dependant date
Once applied, and after pdftex is fixed [2], autogen will be buildable
reproducibly in our current experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
[2]:
https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
Regards,
Valentin
diff -ru autogen-5.18.6~pre3.orig/autoopts/tpl/agman-cmd.tpl autogen-5.18.6~pre3/autoopts/tpl/agman-cmd.tpl
--- autogen-5.18.6~pre3.orig/autoopts/tpl/agman-cmd.tpl 2015-08-05 09:18:53.539284309 +0000
+++ autogen-5.18.6~pre3/autoopts/tpl/agman-cmd.tpl 2015-08-07 18:05:30.000000000 +0000
@@ -33,7 +33,7 @@
(define head-line (lambda()
(sprintf ".TH %s %s \"%s\" \"%s\" \"%s\"\n.\\\"\n"
(get "prog-name") man-sect
- (shell "date '+%d %b %Y'") package-text section-name) ))
+ (shell "LC_ALL=C date -u '+%d %b %Y' -d @$SOURCE_DATE_EPOCH ") package-text section-name) ))
(define man-page #t)
(out-push-new) :+][+:
diff -ru autogen-5.18.6~pre3.orig/autoopts/tpl/agman-file.tpl autogen-5.18.6~pre3/autoopts/tpl/agman-file.tpl
--- autogen-5.18.6~pre3.orig/autoopts/tpl/agman-file.tpl 2015-08-05 09:18:53.539284309 +0000
+++ autogen-5.18.6~pre3/autoopts/tpl/agman-file.tpl 2015-08-07 18:05:30.000000000 +0000
@@ -31,7 +31,7 @@
(define head-line (lambda()
(sprintf ".TH %s %s \"%s\" \"%s\" \"%s\"\n.\\\"\n"
(get "prog-name") man-sect
- (shell "date '+%d %b %Y'") package-text section-name) ))
+ (shell "LC_ALL=C date -u '+%d %b %Y' -d @$SOURCE_DATE_EPOCH ") package-text section-name) ))
(define man-page #t)
diff -ru autogen-5.18.6~pre3.orig/configure.ac autogen-5.18.6~pre3/configure.ac
--- autogen-5.18.6~pre3.orig/configure.ac 2015-08-05 09:18:53.555284310 +0000
+++ autogen-5.18.6~pre3/configure.ac 2015-08-07 16:34:39.000000000 +0000
@@ -33,7 +33,6 @@
AC_LIBTOOL_WIN32_DLL m4_define(AC_PROVIDE_AC_LIBTOOL_WIN32_DLL)
AC_PROG_LIBTOOL
ifdef([AC_REVISION],AC_REVISION($Revision: 4.34 $),)dnl
-[config_start_time=`date +%s 2>/dev/null`]
# ----------------------------------------------------------------------
# Substitute VERSION vars here, so that they can be used by the Makefile
# ----------------------------------------------------------------------
@@ -178,17 +177,11 @@
fi
M4_SRC=`cd $srcdir/config ; echo [a-z]*.m4`
ENABLE_STATIC=${enable_static}
-config_end_time=`date +%s 2>/dev/null`
-time_delta=`expr ${config_end_time} - ${config_start_time} 2>/dev/null`
-if test -z "${time_delta}"
-then time_delta=10
-elif test ${time_delta} -lt 5
-then time_delta=5 ; fi
-
-AG_TIMEOUT=${time_delta}
+ag_timeout=10
+AG_TIMEOUT=${ag_timeout}
]
-AC_DEFINE_UNQUOTED(AG_DEFAULT_TIMEOUT, ${time_delta},
+AC_DEFINE_UNQUOTED(AG_DEFAULT_TIMEOUT, ${ag_timeout},
[define to suitable timeout limit for shell command])
AC_SUBST(M4_SRC)
AC_SUBST(AGnam)
diff -ru autogen-5.18.6~pre3.orig/debian/rules autogen-5.18.6~pre3/debian/rules
--- autogen-5.18.6~pre3.orig/debian/rules 2015-08-05 09:18:53.527284309 +0000
+++ autogen-5.18.6~pre3/debian/rules 2015-08-07 18:14:15.654037956 +0000
@@ -3,8 +3,10 @@
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND := -Wall -Wno-format-contains-nul
# Used by 10_libopts_tarball_perms.diff
+export LC_COLLATE=C
+export LC_ALL=C
export BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
-DATECHLOG := $(shell date -d '$(BUILD_DATE)' +%Y-%m-%d)
+DATECHLOG := $(shell date -u -d '$(BUILD_DATE)' +%Y-%m-%d)
override_dh_auto_configure:
dh_auto_configure --verbose -- \
--- End Message ---
--- Begin Message ---
Source: autogen
Source-Version: 1:5.18.6-1
We believe that the bug you reported is fixed in the latest version of
autogen, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <[email protected]> (supplier of updated autogen package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 30 Sep 2015 17:49:10 +0200
Source: autogen
Binary: autogen autogen-doc libopts25 libopts25-dev
Architecture: all source
Version: 1:5.18.6-1
Distribution: experimental
Urgency: medium
Maintainer: Andreas Metzler <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Closes: 794892
Description:
autogen - automated text file generator
autogen-doc - automated text file generator - documentation
libopts25 - automated option processing library based on autogen
libopts25-dev - automated option processing library based on autogen
Changes:
autogen (1:5.18.6-1) experimental; urgency=medium
.
* New upstream version.
+ Drop 20_nosetlocale.diff.
* Reproducible build changes:
+ Use newly supported upstream MAN_PAGE_DATE environment variable instead
of editing the manpage after build. Specify -u in the respective date(1)
invocation.
+ configure with --enable-timeout=78 (This is the maximum value found in
buildlogs, on mipsel.)
+ export LC_COLLATE=C in debian/rules.
Closes: #794892 (Thanks, Valentin Lorentz)
+ Also update 10_libopts_tarball_perms.diff to use tar --sort=name and add
the Build-Dependency on tar >= 1.28.
Checksums-Sha1:
aee252e7b19d90142dfded97250ac510a6b18e8c 2168 autogen_5.18.6-1.dsc
044b40cf06db7da1159bafbeeeb5b0449fff1bed 1018680 autogen_5.18.6.orig.tar.xz
119656d7babb30fd1ec9f7ae8bb807ab5257281e 18076 autogen_5.18.6-1.debian.tar.xz
4da3d84de3f780ed18029f6a653453d9a3c725a9 1023092 autogen-doc_5.18.6-1_all.deb
Checksums-Sha256:
5de41b8ba467dd881216777f6ea8b10af8c63e7a713f434864faf50c56846612 2168
autogen_5.18.6-1.dsc
1a8320073222767afdffa56d060231661927a999dea171dc90e0a79982afd569 1018680
autogen_5.18.6.orig.tar.xz
d67e3af5a841eb0c508cb2ffd1543f40f1782fb0903f4fd0e8e3d96fb31ff246 18076
autogen_5.18.6-1.debian.tar.xz
36b4e5b89dc196e80fff684710aaf25fb6dc096db5ba4f5fbb381ccda5003e85 1023092
autogen-doc_5.18.6-1_all.deb
Files:
dcaa8bcac2aab81fe2f5ec37145323fb 2168 devel optional autogen_5.18.6-1.dsc
db0a9594979200a99d286aa85d492d21 1018680 devel optional
autogen_5.18.6.orig.tar.xz
732b8011958823bbf0e5cc5526edf8c4 18076 devel optional
autogen_5.18.6-1.debian.tar.xz
acca9225d89dba326da825c7e3c9582f 1023092 doc optional
autogen-doc_5.18.6-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJWDAmCAAoJEKVPAYVDghSEDv0P/2vq2Vb7ojp4EzZ85AE5qH/C
naIJNoedPtKqx85jKnwD107WbOe8rn4WwGyOodCnpUsCgIkhUvDLM+S3sDD7qp3Z
iIoIolOP1/T7JoE1PfEvfPeBYlgB3uOHA91oY87u6pVONPOisN1r4Jti7P3I37Ps
qufgf/D/ND4rPL4EFeVsHr2gH2boznvHY7NXgvM4FrLpld23y7sViGd7gd90FsyI
V3/GgwoIWjdrJEiS7hZF9ggX9ToO8zFB9t+EJZBt1Z6+A2DqORmNlA7knoS+ik62
3diDyL1UBIn594+KZpZWS9GYHDLC9QwJq4H3wudnzdmRlXO1XWVsLcS1Ix5zRbIG
cQ9hLe8XFveQsmMfzT6xlnjedYTymLaGQdJCGDi07fhe0TVqqtsOAwnbHJpz+yo4
3PdyrEDNifzirRMwnYPni43NwD/GVI+izem0ebBReUqxusi4SjJNiGIguQCl04kk
noleUA4SqWhPh3nDO8aLgM2IJl4HBMyUlEvJsEKRoiFBxuW7nYb24WPw1fdIUxS1
VjhpFhk0jH8Pi563QOkgJHByzo53r5toE1NkSbmzP+B7A5USMd2XPXahMirmSdaj
8JguxeUYrzDVHxY/aDL7Nn6lxoqOPFBbZgdQYzq/lLgRiDvJE/3afRUUu3Zfitm7
MoEqK4oX4xj50Zbquord
=cxli
-----END PGP SIGNATURE-----
--- End Message ---