diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-07-12 16:50:13 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-07-13 11:28:49 +0200 |
commit | be544edcaf8e3776336365b1525882f35e4ea6f3 (patch) | |
tree | 487c81b436494a74dc4de31338f4be354fdca084 /ext/Errno | |
parent | 50278ed0ff8eeb370e748884655978f718c551a4 (diff) | |
download | perl-be544edcaf8e3776336365b1525882f35e4ea6f3.tar.gz |
Generate Errno and Pod::Functions with deterministic order.
Previously the order of duplicate names in Errno was determined by hash
iteration order, as was the order of the list of types for built-ins in
Pod::Functions. With hash randomisation this meant that the generated file
could differ between builds, which isn't ideal if the input is the same.
(Spotted as a side effect of running a diff on two installation trees.)
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index b7079112bf..b372875480 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -2,7 +2,7 @@ use ExtUtils::MakeMaker; use Config; use strict; -our $VERSION = "1.18"; +our $VERSION = "1.19"; my %err = (); my %wsa = (); @@ -305,7 +305,7 @@ BEGIN { %err = ( EDQ - my @err = sort { $err{$a} <=> $err{$b} } + my @err = sort { $err{$a} <=> $err{$b} || $a cmp $b } grep { $err{$_} =~ /-?\d+$/ } keys %err; foreach $err (@err) { |