]> 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:25:56 +0000 (12:25 -0400)
commit9fd6d4eae3009658d0d941262f7dec5ca9b877c1
tree442f692d3c73ab084285fc67751358ef35209c04
parent6889428769255253cbbaaf1113474382b59a2f1c
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