Hi, I think this patch is more what I wanted. It now sets the build-timestamp to the time of the last changelog entry if the maintainer does not set builttimeStamp explicitly. With this change almost all GNU R packages in Debian would automatically build reproducible.
Best, Philip
--- r-cran.mk.orig 2015-04-18 11:05:30.874073000 +0200 +++ r-cran.mk 2015-04-18 11:10:04.116593671 +0200 @@ -68,16 +68,12 @@ ## optional installation of a lintian silencer lintiandir := $(CURDIR)/debian/$(package)/usr/share/lintian/overrides -## set built-time in DESCRIPTION time of created binary package based on stamp in changelog -## cf discussion in http://bugs.debian.org/774031 --- and uncomment two assignments here -## -## extract built-timestamp from entry changelog and use as argument -#builttime := $(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog | awk -F': ' '/Date/ {print $$2}') -## -#builttimeStamp := "--built-timestamp=\"$(builttime)\"" -## -## else -builttimeStamp := "" +## if no builttimeStamp is known set built-time in DESCRIPTION to time of created +## binary package based on stamp in changelog. Cf discussion in http://bugs.debian.org/774031 +ifeq ($(builttimeStamp),) + builttime := $(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog | awk -F': ' '/Date/ {print $$2}') + builttimeStamp := "--built-timestamp=\"$(builttime)\"" +endif common-install-indep:: R_any_arch common-install-arch:: R_any_arch
signature.asc
Description: OpenPGP digital signature