Bug#782879: + Bug#782878: lib{test-log4perl, scalar-defer}-perl: please make the build reproducible

Axel Beckert abe at debian.org
Sun Apr 19 12:03:44 UTC 2015


Control: tag -1 + moreinfo

Hi Jelmer,

Jelmer Vernooij wrote:
> diff -ur libtest-log4perl-perl-0.1001/debian/rules libtest-log4perl-perl-0.1001-new/debian/rules
> --- libtest-log4perl-perl-0.1001/debian/rules	2011-11-16 18:08:28.000000000 +0000
> +++ libtest-log4perl-perl-0.1001-new/debian/rules	2015-04-19 11:04:14.003327699 +0000
> @@ -1,4 +1,9 @@
>  #!/usr/bin/make -f
>  
> +# Set man page timestamp to last package change time.
> +BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
> +POD_MAN_DATE = $(shell date -u +"%Y-%m-%d" --date="$(BUILD_DATE)")
> +export POD_MAN_DATE
> +
>  %:
>  	dh $@

Jelmer Vernooij wrote:
> diff -ur libscalar-defer-perl-0.23/debian/rules libscalar-defer-perl-0.23-new/debian/rules
> --- libscalar-defer-perl-0.23/debian/rules	2015-04-19 10:59:01.000000000 +0000
> +++ libscalar-defer-perl-0.23-new/debian/rules	2015-04-19 10:59:38.911642206 +0000
> @@ -1,4 +1,9 @@
>  #!/usr/bin/make -f
>  
> +# Set man page timestamp to last package change time.
> +BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
> +POD_MAN_DATE = $(shell date -u +"%Y-%m-%d" --date="$(BUILD_DATE)")
> +export POD_MAN_DATE
> +
>  %:
>  	dh $@

Thanks for the patches.

But isn't this something which should be done doing once and properly
in the build system (e.g. in dh_auto_build), like setting all the file
time stamps to that date?

Cc'ing the reproducible builds project as well as the debhelper
maintainers for input.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the pkg-perl-maintainers mailing list