Changeset 29372

Show
Ignore:
Timestamp:
16.10.2014 17:50:59 (5 years ago)
Author:
ak19
Message:

From perl 5.18 onward, the iteration order over a map within a single process has been randomised.  http://www.perlmonks.org/?node_id=1005122 and  http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-Attacks However, this breaks searching a collection of simple text files, as the metadata and content get mixed up because of the order that items are iterated over in the map during ArchiveInfPlugin?'s read() changing within a single run of buildcol. To get it to be consistent within a single run, there's a new environment variable, which we now set. See  https://metacpan.org/pod/release/RJBS/perl-5.18.0/pod/perldelta.pod#PERL_PERTURB_KEYS-environment-variable-added

Location:
main/trunk/greenstone2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/setup.bash

    r26794 r29372  
    334334# else we may in future need to update PERL5LIB with some other (further) locations 
    335335fi 
     336 
     337# Perl >= v5.18.* randomises map iteration order within a process 
     338export PERL_PERTURB_KEYS=0 
  • main/trunk/greenstone2/setup.bat

    r28759 r29372  
    161161popd 
    162162endlocal & set PATH=%PATH%& set GSDLHOME=%GSDLHOME%& set GSDLOS=%GSDLOS% 
     163 
     164:: Perl >= v5.18.* randomises map iteration order within a process 
     165set PERL_PERTURB_KEYS=0