1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r22359: try to fix the start failures in the build-farm by creating the prefix dir

before using abs_path()

metze
This commit is contained in:
Stefan Metzmacher 2007-04-19 07:39:45 +00:00 committed by Gerald (Jerry) Carter
parent 7989ee2aa0
commit a3f35f5af4

View File

@ -444,19 +444,20 @@ $prefix =~ s+//+/+;
$prefix =~ s+/./+/+;
$prefix =~ s+/$++;
die("using an empty prefix isn't allowed") unless $prefix ne "";
#Ensure we have the test prefix around
mkdir $prefix unless -d $prefix;
my $prefix_abs = abs_path($prefix);
my $srcdir_abs = abs_path($srcdir);
die("using an empty prefix isn't allowed") unless $prefix ne "";
die("using an empty absolute prefix isn't allowed") unless $prefix_abs ne "";
die("using '/' as absolute prefix isn't allowed") unless $prefix_abs ne "/";
$ENV{PREFIX} = $prefix;
$ENV{SRCDIR} = $srcdir;
#Ensure we have the test prefix around
mkdir $prefix unless -d $prefix;
my $tls_enabled = not $opt_quick;
my $from_build_farm = (defined($ENV{RUN_FROM_BUILD_FARM}) and
($ENV{RUN_FROM_BUILD_FARM} eq "yes"));