[libffi-platypus-perl] 01/01: add reproducible-build.patch by Cris Lamb
Damyan Ivanov
dmn at moszumanska.debian.org
Sun Nov 26 11:41:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
dmn pushed a commit to branch master
in repository libffi-platypus-perl.
commit 77c1485c918cd1bd788e83397fc9fa31dbdf4752
Author: Damyan Ivanov <dmn at debian.org>
Date: Sun Nov 26 11:40:48 2017 +0000
add reproducible-build.patch by Cris Lamb
---
debian/patches/reproducible-build.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..cc253ef
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -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 <lamby at debian.org>
+Acked-By: Damyan Ivanov <dmn at debian.org>
+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 --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..55077d0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libffi-platypus-perl.git
More information about the Pkg-perl-cvs-commits
mailing list