aboutsummaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-08-01 22:10:39 +0200
committerRichard Levitte <levitte@openssl.org>2017-08-15 11:30:47 +0200
commitcb6afcd6ee0c0d66fae62e13fe5966171992f81c (patch)
tree5b793c0d2a0e92233919fcaaa314c70cf32430d2 /Configure
parentc4d2e483a39176a476c56d35879423fe6e33c0cd (diff)
downloadopenssl-cb6afcd6ee0c0d66fae62e13fe5966171992f81c.tar.gz
Consolidate the locations where we have our internal perl modules
Instead of having perl modules under test/testlib, util and util/perl, consolidate them all to be inside util/perl. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4069)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/Configure b/Configure
index 61b86c4921..ada1472b24 100755
--- a/Configure
+++ b/Configure
@@ -12,6 +12,8 @@
use 5.10.0;
use strict;
use Config;
+use FindBin;
+use lib "$FindBin::Bin/util/perl";
use File::Basename;
use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs/;
use File::Path qw/mkpath/;
@@ -1384,7 +1386,6 @@ my %unified_info = ();
my $buildinfo_debug = defined($ENV{CONFIGURE_DEBUG_BUILDINFO});
if ($builder eq "unified") {
- use lib catdir(dirname(__FILE__),"util");
use with_fallback qw(Text::Template);
sub cleandir {
@@ -1512,8 +1513,10 @@ if ($builder eq "unified") {
my %generate = ();
push @{$config{build_infos}}, catfile(abs2rel($sourced, $blddir), $f);
- my $template = Text::Template->new(TYPE => 'FILE',
- SOURCE => catfile($sourced, $f));
+ my $template =
+ Text::Template->new(TYPE => 'FILE',
+ SOURCE => catfile($sourced, $f),
+ PREPEND => qq{use lib "$FindBin::Bin/util/perl";});
die "Something went wrong with $sourced/$f: $!\n" unless $template;
my @text =
split /^/m,