[libcairo-perl] 01/02: 0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch: new patch, that makes cairo-perl-auto.typemap and cairo-perl-auto.h be generated in a deterministic way. That should make this package reproducible.

Intrigeri intrigeri at moszumanska.debian.org
Sun May 3 09:44:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository libcairo-perl.

commit bdbdbaa93c824a9624df3ad7c9836565cc28244e
Author: intrigeri <intrigeri at boum.org>
Date:   Sun May 3 09:35:17 2015 +0000

    0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch: new patch, that makes cairo-perl-auto.typemap and cairo-perl-auto.h be generated in a deterministic way. That should make this package reproducible.
---
 ...iro-perl-auto.typemap-and-cairo-perl-auto.patch | 94 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 95 insertions(+)

diff --git a/debian/patches/0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch b/debian/patches/0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch
new file mode 100644
index 0000000..4bd482b
--- /dev/null
+++ b/debian/patches/0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch
@@ -0,0 +1,94 @@
+From: intrigeri <intrigeri at boum.org>
+Date: Sun, 3 May 2015 09:33:16 +0000
+Subject: Generate cairo-perl-auto.typemap and cairo-perl-auto.h in a
+ deterministic way.
+
+These files are auto-generated by iterating over hash keys, that are randomly
+ordered, which prevents this package from being built reproducibly. Let's sort
+these keys so that the generated output is deterministic.
+---
+ inc/MakeHelper.pm | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/inc/MakeHelper.pm b/inc/MakeHelper.pm
+index cc2ef28..56fef63 100644
+--- a/inc/MakeHelper.pm
++++ b/inc/MakeHelper.pm
+@@ -110,12 +110,12 @@ EOS
+ 		$1;
+ 	}
+ 
+-	foreach (keys %objects, keys %structs, keys %enums, keys %flags)
++	foreach (sort(keys %objects, keys %structs, keys %enums, keys %flags))
+ 	{
+ 		print TYPEMAP "$_\tT_CAIROPERL_GENERIC_WRAPPER\n";
+ 	}
+ 
+-	foreach (keys %objects, keys %structs)
++	foreach (sort(keys %objects, keys %structs))
+ 	{
+ 		my $trunk = $_;
+ 		$trunk =~ s/ \*//;
+@@ -125,7 +125,7 @@ EOS
+ 		print TYPEMAP "const ${trunk}_ornull *\tT_CAIROPERL_GENERIC_WRAPPER\n";
+ 	}
+ 
+-	foreach (keys %objects)
++	foreach (sort(keys %objects))
+ 	{
+ 		my $trunk = $_;
+ 		$trunk =~ s/ \*//;
+@@ -196,7 +196,7 @@ EOS
+ 
+ 	print HEADER "\n/* objects */\n\n";
+ 
+-	foreach (keys %objects)
++	foreach (sort(keys %objects))
+ 	{
+ 		/^(.+) \*/;
+ 		my $type = $1;
+@@ -226,7 +226,7 @@ EOS
+ 
+ 	print HEADER "\n/* structs */\n\n";
+ 
+-	foreach (keys %structs)
++	foreach (sort(keys %structs))
+ 	{
+ 		/^(.+) \*/;
+ 		my $type = $1;
+@@ -253,7 +253,7 @@ EOS
+ 
+ 	print HEADER "\n/* enums */\n\n";
+ 
+-	foreach my $type (keys %enums)
++	foreach my $type (sort(keys %enums))
+ 	{
+ 		my $mangled = mangle ($type);
+ 		my $name = name ($type);
+@@ -280,7 +280,7 @@ EOS
+ 
+ 	print HEADER "\n/* flags */\n\n";
+ 
+-	foreach my $type (keys %flags)
++	foreach my $type (sort(keys %flags))
+ 	{
+ 		my $mangled = mangle ($type);
+ 		my $name = name ($type);
+@@ -380,7 +380,7 @@ sub do_enums
+ 
+ EOS
+ 
+-	foreach my $type (keys %enums)
++	foreach my $type (sort(keys %enums))
+ 	{
+ 		my $name = name($type);
+ 		my @enum_values = @{$enums{$type}};
+@@ -492,7 +492,7 @@ sub do_flags
+ 
+ EOS
+ 
+-	foreach my $type (keys %flags)
++	foreach my $type (sort(keys %flags))
+ 	{
+ 		my $name = name($type);
+ 		my @flag_values = @{$flags{$type}};
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8b752c4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Generate-cairo-perl-auto.typemap-and-cairo-perl-auto.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcairo-perl.git



More information about the Pkg-perl-cvs-commits mailing list