|Subject:||sequential build dir names|
|Date:||Wed, 18 Mar 2015 17:23:50 +0000|
More on making build-time output deterministic: CPAN's use of File::Temp to create non-clashing package build dirs makes their names non-deterministic, and they show up in the output if there's a recursive make or similar. The CPAN build dir is not the kind of hostile environment that File::Temp is built to cope with, so the randomisation is really unnecessary. All that's needed there is to try several different names until there is a successful mkdir. The attached patch implements this, changing the suffix from six random alphanumerics to a simple sequence number ranging from 0 to 999. As a bonus, since it no longer uses File::Temp, the backup code for the case where F:T is unusable is no longer required. -zefram
Message body is not shown because sender requested not to inline it.