File: reproducible_build

package info (click to toggle)
libopengl-perl 0.6704%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,988 kB
  • ctags: 1,979
  • sloc: perl: 10,008; ansic: 5,935; makefile: 101; sh: 51
file content (31 lines) | stat: -rw-r--r-- 941 bytes parent folder | 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