summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2009-07-16 13:52:39 -0700
committerCraig A. Berry <craigberry@mac.com>2009-07-18 11:53:41 -0500
commita71f1801ba6371e2eebdcb98a2263de5d6b9a8fd (patch)
treea784c48770dca85f0e95e021581e1d614d7020a1 /Configure
parent3012b81707473847efa9174655723b1a2ad3b6de (diff)
downloadperl-a71f1801ba6371e2eebdcb98a2263de5d6b9a8fd.tar.gz
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'
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/Configure b/Configure
index 5dbd2f37fd..23d605d90f 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 = ();