[libmemcached-libmemcached-perl] 02/03: Make build reproducible. Thanks to Chris Lamb and Sebastien Delafond for the patch! (Closes: #829295)
Intrigeri
intrigeri at moszumanska.debian.org
Sat Jul 2 09:05:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository libmemcached-libmemcached-perl.
commit 7f9eb739660f75ba3e03fa099d7e3c157d4d040a
Author: intrigeri <intrigeri at boum.org>
Date: Sat Jul 2 08:49:19 2016 +0000
Make build reproducible. Thanks to Chris Lamb and Sebastien Delafond for the patch! (Closes: #829295)
---
debian/patches/reproducible-build.patch | 34 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 35 insertions(+)
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..12c403d
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,34 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+
+--- libmemcached-libmemcached-perl-1.001801+dfsg.orig/t/lib/ExtUtils/ParseXS.pm
++++ libmemcached-libmemcached-perl-1.001801+dfsg/t/lib/ExtUtils/ParseXS.pm
+@@ -741,7 +741,7 @@ EOF
+ process_keyword("POSTCALL|OUTPUT|ALIAS|ATTRS|PROTOTYPE|OVERLOAD");
+
+ &generate_output($var_types{$_}, $args_match{$_}, $_, $DoSetMagic)
+- for grep $in_out{$_} =~ /OUT$/, keys %in_out;
++ for grep $in_out{$_} =~ /OUT$/, sort keys %in_out;
+
+ # all OUTPUT done, so now push the return value on the stack
+ if ($gotRETVAL && $RETVAL_code) {
+@@ -867,7 +867,8 @@ EOF
+ if (%XsubAliases) {
+ $XsubAliases{$pname} = 0
+ unless defined $XsubAliases{$pname} ;
+- while ( ($name, $value) = each %XsubAliases) {
++ foreach my $name (sort keys %XsubAliases) {
++ my $value = $XsubAliases{$name};
+ push(@InitFileCode, Q(<<"EOF"));
+ # cv = newXS(\"$name\", XS_$Full_func_name, file);
+ # XSANY.any_i32 = $value ;
+@@ -884,7 +885,8 @@ EOF
+ EOF
+ }
+ elsif ($interface) {
+- while ( ($name, $value) = each %Interfaces) {
++ foreach my $name (sort keys %Interfaces) {
++ my $value = $Interfaces{$name};
+ $name = "$Package\::$name" unless $name =~ /::/;
+ push(@InitFileCode, Q(<<"EOF"));
+ # cv = newXS(\"$name\", XS_$Full_func_name, file);
diff --git a/debian/patches/series b/debian/patches/series
index 419b6e9..aa61884 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
use-system-libmemcached.patch
spelling.patch
+reproducible-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmemcached-libmemcached-perl.git
More information about the Pkg-perl-cvs-commits
mailing list