Commit 1f72adba authored by Axel Beckert's avatar Axel Beckert

Try to make the build reproducible

* Use fakeroot and recreate files where file meta data is used as
  example.
* Use faketime where current date is used in examples.
* Add patch to reduce build meta data in documentation.
parent e8b8ad46
mp4h (1.3.1-10) UNRELEASED; urgency=medium
* Try to make the build reproducible.
+ Use fakeroot and recreate files where file meta data is used as
example.
+ Use faketime where current date is used in examples.
+ Add patch to reduce build meta data in documentation.
-- Axel Beckert <abe@debian.org> Tue, 12 May 2015 23:40:37 +0200
mp4h (1.3.1-9) unstable; urgency=low
[ Eric Dorland ]
......
......@@ -8,6 +8,8 @@ Build-Depends: autoconf (>= 2.57~),
debhelper (>= 9~),
dh-autoreconf,
dpkg (>= 1.16.2),
fakeroot,
faketime,
gettext,
libltdl-dev,
libpcre3-dev,
......
Description: Reduce build meta data in documentation
This is part of the effort to make the build of this package
reproducible.
Author: Axel Beckert <abe@debian.org>
Index: mp4h/doc/mp4h.mp4h
===================================================================
--- mp4h.orig/doc/mp4h.mp4h 2015-05-12 23:42:36.014901057 +0200
+++ mp4h/doc/mp4h.mp4h 2015-05-12 23:42:36.014901057 +0200
@@ -664,7 +664,7 @@
<set-var version="0.10.1" />
This is version <get-var version />
<set-var-x name="osversion">Operating system is
-"<include command="uname" /><include command="uname -r" />"</set-var-x>
+"<include command="uname" />"</set-var-x>
<get-var osversion />
</example>
@@ -1958,7 +1958,7 @@
</attributes:description>
<example>
-<include command="uname -a" />
+<include command="uname -s" />
</example>
@@ -2261,8 +2261,9 @@
</para>
<example>
-The number of clock ticks since the beginning of generation of
-this documentation by &mp4h; is:
+<timer/>
+The number of clock ticks since the beginning of the parsing of
+this example by &mp4h; is:
<timer/>
</example>
......@@ -6,3 +6,4 @@ lintian-cleanup-tg.diff
653362-fix-ftbfs-on-hurd.diff
fix-ftbfs-with-hardening-flags.diff
use-system-pcre.diff
reproducible-build.diff
......@@ -9,6 +9,7 @@ GETTEXT_PO_FILES= Makefile.in.in Rules-quot boldquot.sed \
en@boldquot.header en@quot.header insert-header.sin \
quot.sed remove-potcdate.sin
BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W gettext)
BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date)
%:
dh $@
......@@ -37,6 +38,11 @@ override_dh_auto_configure:
--with-modules='intl:gettext' \
--with-tidy=/usr/bin/tidy
override_dh_auto_build:
# Fake consistent user and enforce all three modification times
faketime "$(BUILD_DATE)" fakeroot sh -c \
'cp doc/mp4h.mp4h doc/mp4h.mp4h.tmp && rm doc/mp4h.mp4h && mv doc/mp4h.mp4h.tmp doc/mp4h.mp4h && dh_auto_build'
override_dh_auto_clean:
-tar cvf debian/needed-after-clean.tar ABOUT-NLS po/Makefile.in.in
dh_autoreconf_clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment