[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

Richard Levitte levitte at openssl.org
Tue Jan 9 19:49:36 UTC 2018

The branch OpenSSL_1_1_0-stable has been updated
       via  bda1af6d5f6f275c78d3145a03a208d8bc056553 (commit)
      from  7d22f2e01fb0fee4cb3e51351718b9681416783e (commit)

- Log -----------------------------------------------------------------
commit bda1af6d5f6f275c78d3145a03a208d8bc056553
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jan 9 19:51:19 2018 +0100

    Configure: try to make sure every config target name is unique
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5047)
    (cherry picked from commit 225f980d22dfe66aa3945c21609042c32284e61c)


Summary of changes:
 Configurations/README |  6 +++++-
 Configure             | 11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/Configurations/README b/Configurations/README
index eecf1ea..6e13645 100644
--- a/Configurations/README
+++ b/Configurations/README
@@ -18,10 +18,14 @@ configuration in diverse ways:
 Configurations of OpenSSL target platforms
-Target configurations are a collection of facts that we know about
+Configuration targets are a collection of facts that we know about
 different platforms and their capabilities.  We organise them in a
 hash table, where each entry represent a specific target.
+Note that configuration target names must be unique across all config
+files.  The Configure script does check that a config file doesn't
+have config targets that shadow config targets from other files.
 In each table entry, the following keys are significant:
         inherit_from    => Other targets to inherit values from.
diff --git a/Configure b/Configure
index 44aecc7..ecbebcc 100755
--- a/Configure
+++ b/Configure
@@ -2271,6 +2271,17 @@ sub read_config {
 	eval $content;
 	warn $@ if $@;
+    my %preexisting = ();
+    foreach (sort keys %targets) {
+        $preexisting{$_} = 1 if $table{$_};
+    }
+    die <<"EOF",
+The following config targets from $fname
+shadow pre-existing config targets with the same name:
+        map { "  $_\n" } sort keys %preexisting
+        if %preexisting;
     # For each target, check that it's configured with a hash table.
     foreach (keys %targets) {

More information about the openssl-commits mailing list