From: Andy Dougherty Date: Thu, 16 Jul 2009 20:52:39 +0000 (-0700) Subject: Configure should sort inc_version_list X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a71f1801ba6371e2eebdcb98a2263de5d6b9a8fd;p=p5sagit%2Fp5-mst-13.2.git Configure should sort inc_version_list In searching for previous versions of perl, Configure forgets to sort the directories according to version number, so 5.10 sorts later than 5.8. Specifically, without this patch, you'd get something like: inc_version_list='5.8.9 5.8.8 5.10.0/i686-linux 5.10.0' i.e. 5.10.0 would be searched *after* 5.8.8. With this patch, you get something like: inc_version_list='5.10.0/i686-linux 5.10.0 5.8.9 5.8.8' --- diff --git a/Configure b/Configure index 5dbd2f3..23d605d 100755 --- a/Configure +++ b/Configure @@ -6530,6 +6530,7 @@ if (-d $stem) { chdir($stem); ;@candidates = map { [ $_, pack "sss", split m/[._]/, "$_.0.0" ] } glob("5.*"); + ;@candidates = sort { $a->[1] cmp $b->[1]} @candidates; } else { ;@candidates = ();