On 2015-01-27 22:57 +0000, Chris Lamb wrote:

> Source: dict-devil
> Version: 1.0-12
> Severity: wishlist
> Tags: patch
> User: reproducible-bui...@lists.alioth.debian.org
> Usertags: timestamps
> X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
>
> While working on the "reproducible builds" effort [1], we have noticed
> that dict-devil could not be built reproducibly.
>
> The attached patch removes timestamps from the build system. Once
> applied, dict-devil can be built reproducibly in our current
> experimental
> framework.

Thanks for the patch, and apologies for having neglected this package
for so long.

> diff -urNad dict-devil.orig/dict-devil-1.0/debian/devil2dict 
> dict-devil/dict-devil-1.0/debian/devil2dict
> --- dict-devil.orig/dict-devil-1.0/debian/devil2dict  2015-01-27 
> 22:53:44.754004688 +0000
> +++ dict-devil/dict-devil-1.0/debian/devil2dict       2015-01-27 
> 22:55:53.159685075 +0000
> @@ -28,7 +28,7 @@
>            '--without-headword', # Necessary for multiple headwords.
>            '--headword-separator', ', ',
>            '-u', 'http://wiretap.area.com/Gopher/Library/Classic/devils.txt',
> -          '-s', 'The Devil\'s Dictionary (1881-1906)',
> +          '-s', 'The Devil\'s Dictionary (1881-1906)', '--without-time',
>            $fmt_base
>      or die "$0: can't open pipe to dictfmt: $!\n"
>      if defined $fmt_base;

Applied this part.

> diff -urNad dict-devil.orig/dict-devil-1.0/debian/rules 
> dict-devil/dict-devil-1.0/debian/rules
> --- dict-devil.orig/dict-devil-1.0/debian/rules       2015-01-27 
> 22:53:44.754004688 +0000
> +++ dict-devil/dict-devil-1.0/debian/rules    2015-01-27 22:55:27.298540948 
> +0000
> @@ -1,9 +1,13 @@
>  #! /usr/bin/make -f
>  
> +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
> +
>  %:
>       dh $@
>  
>  override_dh_auto_build:
>       chmod a+x debian/devil2dict
>       debian/devil2dict devils.txt devil
> +     # Ensure deterministic mtime for dictzip to inherit
> +     touch --date='$(BUILD_DATE)' devil.dict
>       dictzip devil.dict

There is now an easier way to achieve this.  Thanks to your efforts
dictzip gained a "-n" option to avoid timestamps (#776430) which I have
conveniently used here. :-)

Would you like to sponsor an upload, or give me permission to upload
myself?  I am a DM, but do not currently have upload permissions for
dict-devil (the last upload preceded my DM application).  The git
repository for dict-devil can be found at
https://salsa.debian.org/joachim-guest/dict-devil. 

Cheers,
       Sven

Reply via email to