Package: libopengl-perl / 0.6704+dfsg-2

reproducible_build Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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@debian.org>
Reviewed-by: gregor herrmann <gregoa@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