]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix perl searchpath for modern perl for MSVC tools
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 28 Oct 2018 16:22:32 +0000 (12:22 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 28 Oct 2018 16:26:05 +0000 (12:26 -0400)
commitba103dc8779f004b01e249261c799773e29a4f38
tree54583b8ef1cc3dc66d6dc8c8d955a22fefa948d5
parentcc02db82c0f3b17ddcc595eb5863f11fe18ad2ad
Fix perl searchpath for modern perl for MSVC tools

Modern versions of perl no longer include the current directory in the
perl searchpath, as it's insecure. Instead of adding the current
directory, we get around the problem by adding the directory where the
script lives.

Problem noted by Victor Wagner.

Solution adapted from buildfarm client code.

Backpatch to all live versions.
src/tools/msvc/install.pl
src/tools/msvc/mkvcbuild.pl
src/tools/msvc/vcregress.pl