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

Jelmer Vernooij jelmer at jelmer.uk
Sun Apr 19 12:27:36 UTC 2015


Hi Axel,

On Sun, Apr 19, 2015 at 02:03:44PM +0200, Axel Beckert wrote:
> 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.

Yeah, this was brought up on the reproducible builds mailing list as
well in relation to these three patches. There are at least a few
dozen (and probably more) perl packages that suffer from this, so
doing this from debhelper would indeed be better (and
less effort).

Another option might be to do it from upstream? It could just take
the timestamp of the source file.

Cheers,

Jelmer

-- 
Jelmer Vernooij <jelmer at debian.org>
Debian Developer                           https://jelmer.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150419/aaa0d1c9/attachment.sig>


More information about the Reproducible-builds mailing list