[libopengl-perl] 08/09: Add patch to make build reproducible.
gregor herrmann
gregoa at debian.org
Sat May 2 19:55:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libopengl-perl.
commit 122b94759fa7996b5ba4c07f8357bcb8936313f4
Author: gregor herrmann <gregoa at debian.org>
Date: Sat May 2 21:53:46 2015 +0200
Add patch to make build reproducible.
Thanks: Chris Lamb for the bug report and patch.
Closes: #778961
---
debian/patches/reproducible_build | 31 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/reproducible_build b/debian/patches/reproducible_build
new file mode 100644
index 0000000..a232259
--- /dev/null
+++ b/debian/patches/reproducible_build
@@ -0,0 +1,31 @@
+Description: make build reproducible by applying some sorting
+ cf. https://reproducible.debian.net/dbd/unstable/amd64/libopengl-perl_0.6703+dfsg-1.debbindiff.html
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/778961
+Author: Chris Lamb <lamby at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-05-02
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=104161
+Bug: https://rt.cpan.org/Ticket/Display.html?id=104161
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -8,6 +8,9 @@
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.
+
++# Ensure deterministic output
++$Data::Dumper::Sortkeys = 1;
++
+ # Supported windowing interfaces
+ our $is_valid_interface =
+ {
+@@ -505,7 +508,7 @@
+ }
+
+ # Marshall libs
+- my $libs = ' -l'.join(' -l',values(%$found_libs));
++ my $libs = ' -l'.join(' -l',sort values(%$found_libs));
+ my @more_libs = qw
+ {
+ -lX11
diff --git a/debian/patches/series b/debian/patches/series
index e78b638..6666d7b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ add-gl_exclude.h
glext_procs-replacement
use-systems-gl
dont_link_against_unused_libs
+reproducible_build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libopengl-perl.git
More information about the Pkg-perl-cvs-commits
mailing list