]> 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:25:10 +0000 (12:25 -0400)
commita71f55652276805289d73dd88bc8f18e4a4d9ab2
tree98a871b6a07c724f061f635f4b3a0ae7bd733022
parentaa9642acb96b253f80c940f7b6bce38c7cca2c0f
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