This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Configure: unbreak -S option now that -O is the default
authorAaron Crane <arc@cpan.org>
Wed, 2 Dec 2015 00:06:42 +0000 (00:06 +0000)
committerAaron Crane <arc@cpan.org>
Wed, 2 Dec 2015 11:12:55 +0000 (11:12 +0000)
As far as I can tell, using the -S and -O options together has always
yielded an error of this form:

    Configure: 2042: .: Can't open ./optdef.sh

That's because, even though optdef.sh is created in the UU directory, and
most of Configure is run in that directory, part of the -S implementation is
run in the root directory, and was therefore trying to read ./optdef.sh
instead of ./UU/optdef.sh.

As of 41d73075f0801c26794dadb1ff690f305d7e53a7, the -O mode is always
enabled, so the -S option has been broken since then. This fixes that.

Configure

index 07f0bc1..54a7782 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -2039,7 +2039,7 @@ true)
        echo "Fetching answers from $config_sh..."
        cd ..
        . $config_sh
-       . ./optdef.sh
+       . UU/optdef.sh
        echo " "
        . UU/extract
        rm -rf UU