[rt.cpan.org #104149] [PATCH] make builds reproducible
"gregor herrmann via RT" <[email protected]> Fri, 1 May 2015 11:23:13 -0400
| Newsgroups | gmane.comp.lang.perl.wxperl |
|---|---|
| Message-ID | <[email protected]> |
Fri May 01 11:23:13 2015: Request 104149 was acted upon.
Transaction: Correspondence added by GREGOA
Queue: Alien-wxWidgets
Subject: [PATCH] make builds reproducible
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=104149 >
Here's the patch.
reproducible_build.patch
(text/x-diff, 725 B)
Description: make builds reproducible cf. https://reproducible.debian.net/dbd/unstable/amd64/libalien-wxwidgets-perl_0.65+dfsg-4.debbindiff.html Origin: vendor Bug-Debian: https://bugs.debian.org/778949 Author: Chris Lamb <[email protected]> Reviewed-by: gregor herrmann <[email protected]> Last-Update: 2015-05-01 --- a/inc/My/Build/Base.pm +++ b/inc/My/Build/Base.pm @@ -11,6 +11,9 @@ use File::Glob qw(bsd_glob); use Carp; +# Ensure deterministic output +$Data::Dumper::Sortkeys = 1; + # use the system version of a module if present; in theory this could lead to # compatibility problems (if the latest version of one of the dependencies, # installed in @INC is incompatible with the bundled version of a module)