perl-Module-Build/make-builds-reproducible.patch
Stephan Kulow edff5ce8db - updated to 0.4211
[BUG FIXES]
   - Fix t/actions/installdeps.t to work on "perl in space" [Ed J]
   - Stop using version->normal(); prefer stringify() [John Peacock]
 
   [DEPRECATIONS]
   - inc::latest has been split out to a separate distribution on CPAN.
     It is an optional prerequisite, only needed for the experimental
     bundling feature.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=32
2015-02-03 16:05:10 +00:00

18 lines
544 B
Diff

Index: Module-Build-0.4211/lib/Module/Build/Dumper.pm
===================================================================
--- Module-Build-0.4211.orig/lib/Module/Build/Dumper.pm
+++ Module-Build-0.4211/lib/Module/Build/Dumper.pm
@@ -11,8 +11,11 @@ use Data::Dumper;
sub _data_dump {
my ($self, $data) = @_;
+
+ my $dumper = Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0);
+ $dumper->Sortkeys(1);
return ("do{ my "
- . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Dump()
+ . $dumper->Dump()
. '$x; }')
}