]> granicus.if.org Git - postgresql/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:23:19 +0000 (12:23 -0400)
commit8cb5e67d1067579436cc6434235121b4f6f8f35b
treefc55acb8ecd4c79bf72565a6318ee29f516b90dd
parentfdf5eade96267d86af9efaf9213f5b3624e02354
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