Your message dated Sun, 11 Oct 2015 13:08:42 +0200
with message-id <[email protected]>
and subject line Re: reopening 794892, found 794892 in 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 ---
Version: 1:5.18.6-3
On 2015-10-03 Andreas Metzler <[email protected]> wrote:
> reopen 794892
> # Looks like I missed some parts of the patch, sorry.
> found 794892 1:5.18.6-1
> thanks
Hello,
1:5.18.6-1 finally passed the CI test.
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- End Message ---