Skip to content

Commit 075641f

Browse files
committed
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.
1 parent cdf7ff3 commit 075641f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/tools/msvc/install.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
use strict;
77
use warnings;
88

9+
use File::Basename;
10+
use File::Spec;
11+
BEGIN { use lib File::Spec->rel2abs(dirname(__FILE__)); }
12+
913
use Install qw(Install);
1014

1115
# buildenv.pl is for specifying the build environment settings

src/tools/msvc/mkvcbuild.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use strict;
88
use warnings;
99

10+
use File::Basename;
11+
use File::Spec;
12+
BEGIN { use lib File::Spec->rel2abs(dirname(__FILE__)); }
13+
1014
use Mkvcbuild;
1115

1216
chdir('..\..\..') if (-d '..\msvc' && -d '..\..\..\src');

src/tools/msvc/vcregress.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
our $config;
88

99
use Cwd;
10+
use File::Basename;
1011
use File::Copy;
12+
use File::Spec;
13+
BEGIN { use lib File::Spec->rel2abs(dirname(__FILE__)); }
1114

1215
use Install qw(Install);
1316

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy