diff -Nru libaunit-3.7.1/debian/changelog libaunit-3.7.1/debian/changelog --- libaunit-3.7.1/debian/changelog 2014-08-19 03:25:30.000000000 +0000 +++ libaunit-3.7.1/debian/changelog 2015-05-03 18:18:07.000000000 +0000 @@ -1,3 +1,11 @@ +libaunit (3.7.1-2) unstable; urgency=medium + + * For reproducible PDF timestamps, set clock to the date of this entry. + Touch generated sources for deterministic ALI files and tar headers. + * Standards-Version: 3.9.6 (no changes). + + -- Nicolas Boulenguez Sun, 03 May 2015 16:49:18 +0200 + libaunit (3.7.1-1) unstable; urgency=medium * New upstream release, built with gnat-4.9 (closes: #748998, #755078). diff -Nru libaunit-3.7.1/debian/control libaunit-3.7.1/debian/control --- libaunit-3.7.1/debian/control 2014-08-18 23:33:46.000000000 +0000 +++ libaunit-3.7.1/debian/control 2015-05-03 18:16:13.000000000 +0000 @@ -8,8 +8,10 @@ Build-Depends-Indep: # To deduplicate examples in rules. rdfind, symlinks, +# Called in rules for deterministic PDF timestamps. + faketime, texinfo, texlive-latex-base -Standards-Version: 3.9.5 +Standards-Version: 3.9.6 Homepage: http://libre.adacore.com/libre/ Vcs-Mtn: www.ada-france.org org.debian.libaunit Vcs-Browser: http://www.ada-france.org:8081/branch/changes/org.debian.libaunit diff -Nru libaunit-3.7.1/debian/copyright libaunit-3.7.1/debian/copyright --- libaunit-3.7.1/debian/copyright 2014-08-18 22:01:48.000000000 +0000 +++ libaunit-3.7.1/debian/copyright 2015-05-03 17:55:26.000000000 +0000 @@ -17,7 +17,7 @@ Files: debian/* Copyright: 2006-2012 Stephen Leake - : 2013-2014 Nicolas Boulenguez + : 2013-2015 Nicolas Boulenguez License: GPL-3+ License: GPL-3+ diff -Nru libaunit-3.7.1/debian/rules libaunit-3.7.1/debian/rules --- libaunit-3.7.1/debian/rules 2014-08-19 03:42:01.000000000 +0000 +++ libaunit-3.7.1/debian/rules 2015-05-03 17:55:26.000000000 +0000 @@ -3,7 +3,7 @@ # Debian Makefile for AUnit # Copyright (c) 2009 Stephen Leake # Copyright (c) 2004-2006 Ludovic Brenta -# Copyright (c) 2013-2014 Nicolas Boulenguez +# Copyright (c) 2013-2015 Nicolas Boulenguez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,6 +21,9 @@ include /usr/share/dpkg/default.mk include /usr/share/ada/debian_packaging.mk +DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date) +DEB_DATE_RFC_3339 := $(shell date "+%F %T" -d "$(DEB_DATE_RFC_2822)") + ADAFLAGS += -gnatfno -gnatwa -gnatVa LIB_NAME := $(patsubst lib%,%,$(DEB_SOURCE)) @@ -44,12 +47,17 @@ PROJECT := lib/gnat/aunit_build.gpr override_dh_auto_build-arch: + # Touch generated sources for deterministic ALI files and tar headers. + find . -depth -newermt '$(DEB_DATE_RFC_3339)' -print0 | \ + xargs -0r touch --no-dereference --date='$(DEB_DATE_RFC_3339)' $(MAKE) INSTALL=false \ GPRBUILD='gnatmake $(BUILDER_OPTIONS) -XLIBRARY_KIND=static $(foreach var,ADAFLAGS,"-X$(var)=$($(var))")' $(MAKE) INSTALL=false \ GPRBUILD='gnatmake $(BUILDER_OPTIONS) -XLIBRARY_KIND=dynamic $(foreach var,ADAFLAGS LDFLAGS SOVERSION,"-X$(var)=$($(var))")' override_dh_auto_build-indep: version_information.backup + # Freeze the clock for deterministic PDF timestamps. + faketime -f "$(DEB_DATE_RFC_3339)" \ $(MAKE) -C docs version_information.backup: %.backup: % mv $* $@