diff -Nru libffi-platypus-perl-0.47/debian/changelog libffi-platypus-perl-0.47/debian/changelog --- libffi-platypus-perl-0.47/debian/changelog 2017-11-24 17:47:42.000000000 +0000 +++ libffi-platypus-perl-0.47/debian/changelog 2017-11-26 11:41:17.000000000 +0000 @@ -1,3 +1,11 @@ +libffi-platypus-perl (0.47-3) unstable; urgency=medium + + * Team upload + + * add reproducible-build.patch by Cris Lamb + + -- Damyan Ivanov Sun, 26 Nov 2017 11:41:17 +0000 + libffi-platypus-perl (0.47-2) unstable; urgency=medium * Fix autopkgtest: Redirect stderr to stdout in debian/tests/pkg- diff -Nru libffi-platypus-perl-0.47/debian/patches/reproducible-build.patch libffi-platypus-perl-0.47/debian/patches/reproducible-build.patch --- libffi-platypus-perl-0.47/debian/patches/reproducible-build.patch 1970-01-01 00:00:00.000000000 +0000 +++ libffi-platypus-perl-0.47/debian/patches/reproducible-build.patch 2017-11-26 11:40:22.000000000 +0000 @@ -0,0 +1,25 @@ +Description: Make the build reproducible + Whilst working on the Reproducible Builds effort [0], we noticed + that libffi-platypus-perl could not be built reproducibly. + . + This is because it rendered JSON without calling "canonical" to ensure + determinsitic sorting which ended up in a "config.json" file. + . + [0] https://reproducible-builds.org/ +Author: Chris Lamb +Acked-By: Damyan Ivanov +Last-Update: 2017-11-26 +Forwarded: https://github.com/plicease/FFI-Platypus/pull/77 +Bug: https://github.com/plicease/FFI-Platypus/pull/77 + +--- a/inc/My/ShareConfig.pm ++++ b/inc/My/ShareConfig.pm +@@ -34,7 +34,7 @@ sub set + my($self, $name, $value) = @_; + $self->{$name} = $value; + my %data = %$self; +- my $data = JSON::PP->new->pretty->encode(\%data); ++ my $data = JSON::PP->new->canonical->pretty->encode(\%data); + my $fh; + open($fh, '>', 'share/config.json'); + print $fh $data; diff -Nru libffi-platypus-perl-0.47/debian/patches/series libffi-platypus-perl-0.47/debian/patches/series --- libffi-platypus-perl-0.47/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libffi-platypus-perl-0.47/debian/patches/series 2017-11-26 11:35:10.000000000 +0000 @@ -0,0 +1 @@ +reproducible-build.patch