[openssl] OpenSSL_1_1_1-stable update

Richard Levitte levitte at openssl.org
Mon Jan 27 07:51:36 UTC 2020


The branch OpenSSL_1_1_1-stable has been updated
       via  c8943eb04ae41506ec8a1869103e2e1dec6bfcd8 (commit)
      from  cc7c6eb8135be665d0acc176a5963e1eaf52e4e2 (commit)


- Log -----------------------------------------------------------------
commit c8943eb04ae41506ec8a1869103e2e1dec6bfcd8
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jan 21 07:53:40 2020 +0100

    OpenSSL::Test: bring back the relative paths
    
    Because there was a bug in File::Spec::Unix' abs2rel when it was given
    relative paths as both PATH and BASE arguments, the directories we
    deal with were made to be all absolute.  Unfortunately, this meant
    getting paths in our verbose test output which are difficult to use
    anywhere else (such as a separate test build made for comparison), due
    to the constant need to edit all the paths all the time.
    
    We're therefore getting back the relative paths, by doing an extra
    abs2rel() in __srctop_file, __srctop_dir, __bldtop_file and
    __bldtop_dir, with a 'Cwd::getcwd' call as BASE argument.
    
    Fixes #10628
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    (Merged from https://github.com/openssl/openssl/pull/10913)
    
    (cherry picked from commit 612539e8a678c6099131dfd0e5e4b85fa774eb1a)

-----------------------------------------------------------------------

Summary of changes:
 util/perl/OpenSSL/Test.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/util/perl/OpenSSL/Test.pm b/util/perl/OpenSSL/Test.pm
index 49fb88feb7..a331796c5d 100644
--- a/util/perl/OpenSSL/Test.pm
+++ b/util/perl/OpenSSL/Test.pm
@@ -65,7 +65,7 @@ use File::Spec::Functions qw/file_name_is_absolute curdir canonpath splitdir
                              rel2abs/;
 use File::Path 2.00 qw/rmtree mkpath/;
 use File::Basename;
-use Cwd qw/abs_path/;
+use Cwd qw/getcwd abs_path/;
 
 my $level = 0;
 
@@ -904,26 +904,26 @@ sub __srctop_file {
     BAIL_OUT("Must run setup() first") if (! $test_name);
 
     my $f = pop;
-    return catfile($directories{SRCTOP}, at _,$f);
+    return abs2rel(catfile($directories{SRCTOP}, at _,$f),getcwd);
 }
 
 sub __srctop_dir {
     BAIL_OUT("Must run setup() first") if (! $test_name);
 
-    return catdir($directories{SRCTOP}, at _);
+    return abs2rel(catdir($directories{SRCTOP}, at _), getcwd);
 }
 
 sub __bldtop_file {
     BAIL_OUT("Must run setup() first") if (! $test_name);
 
     my $f = pop;
-    return catfile($directories{BLDTOP}, at _,$f);
+    return abs2rel(catfile($directories{BLDTOP}, at _,$f), getcwd);
 }
 
 sub __bldtop_dir {
     BAIL_OUT("Must run setup() first") if (! $test_name);
 
-    return catdir($directories{BLDTOP}, at _);
+    return abs2rel(catdir($directories{BLDTOP}, at _), getcwd);
 }
 
 # __exeext is a function that returns the platform dependent file extension


More information about the openssl-commits mailing list