File: 05_reproducible-build
| Debian Sources (original) (raw)
package info(click to toggle)
texi2html 1.82%2Bdfsg1-5
- links:PTS
- area: main
- in suites: buster, stretch
- size: 34,700 kB
- ctags: 16,893
- sloc: perl: 15,902; xml: 6,075; sh: 3,977; makefile: 501
| 1234567891011121314151617181920212223242526272829303132333435 | Description: Make the build reproducible + set the PACKAGE_DATE value to SOURCE_DATE_EPOCH if available + sort the list of languages in manage_i18n.pl(.in) to do not depend on readdir() order Author: Mattia Rizzolo mattia@debian.org Author: Reiner Herrmann reiner@reiner-h.de Bug-Debian: https://bugs.debian.org/783478 Forwarded: no Last-Update: 2015-12-23 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,11 @@ AM_MAINTAINER_MODE dnl Misc variable settings -PACKAGE_DATE=`"$srcdir"/mdate-sh "$srcdir"/configure.ac` +if test "x$SOURCE_DATE_EPOCH" = "x"; then + SOURCE_DATE_EPOCH=`date +%s` +fi +fmt="%B %d. %Y" +PACKAGE_DATE=`date -u -d "@$SOURCE_DATE_EPOCH" "+$fmt" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$fmt" 2>/dev/null | | date -u "+$fmt"` AC_SUBST([PACKAGE_DATE]) dnl Checks for programs. --- a/manage_i18n.pl.in +++ b/manage_i18n.pl.in @@ -187,7 +187,7 @@ } } warn "Remark: the following known languages have no corresponding file: @known\n" if (@known); - return @languages; + return sort @languages; } sub merge_i18n_files($$$) | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |