File: reproducible_build.diff

package info (click to toggle)
libdbix-fulltextsearch-perl 0.73-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 500 kB
  • sloc: perl: 1,617; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 8446cd249b1c8c53f489e5b4f548196d3bc22be0 Mon Sep 17 00:00:00 2001
From: Chris Lamb <lamby@debian.org>
Date: Sun, 22 Feb 2015 08:30:23 +0000
Subject: Remove randomness from the build system

Patch-Name: reproducible_build.diff
---
 Makefile.PL | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile.PL b/Makefile.PL
index 6294af5..545798d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -9,6 +9,9 @@ unless (grep /mysql/, DBI->available_drivers) {
   die "DBIx::FullTextSearch requires DBD::mysql - see README for details";
 }
 
+# ensure deterministic output
+$Data::Dumper::Sortkeys = 1;
+
 # this is to catch values from previous perl Makefile.PL run
 use lib 'testconfig';