[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Mon Jul 4 13:40:50 UTC 2016


The branch master has been updated
       via  d513369bfa03e92c3289109560da4062b1d3625d (commit)
      from  9d6daf99c286d260e50278f63ddb7d164462256e (commit)


- Log -----------------------------------------------------------------
commit d513369bfa03e92c3289109560da4062b1d3625d
Author: Richard Levitte <levitte at openssl.org>
Date:   Sat Jul 2 16:39:15 2016 +0200

    perl: Separate compile-time environment from runtime environment
    
    Make it possible to have a separate and different perl command string
    for installable scripts than we use when building, with the
    environment variable HASHBANGPERL.  Its value default to the same as
    the environment PERL if it's defined, otherwise '/usr/bin/env perl'.
    
    Note: this is only relevant for Unix-like environments.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    Reviewed-by: Kurt Roeckx <kurt at openssl.org>

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

Summary of changes:
 Configure         | 4 ++++
 INSTALL           | 9 ++++++++-
 apps/CA.pl.in     | 2 +-
 apps/tsget.in     | 2 +-
 tools/c_rehash.in | 2 +-
 5 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/Configure b/Configure
index f8a6ec2..f43b5bf 100755
--- a/Configure
+++ b/Configure
@@ -913,7 +913,11 @@ $config{cross_compile_prefix} = $ENV{'CROSS_COMPILE'}
     if $config{cross_compile_prefix} eq "";
 
 # Allow overriding the names of some tools.  USE WITH CARE
+# Note: only Unix cares about HASHBANGPERL...  that explains
+# the default string.
 $config{perl} =    $ENV{'PERL'}    || ($^O ne "VMS" ? $^X : "perl");
+$config{hashbangperl} =
+    $ENV{'HASHBANGPERL'}           || $ENV{'PERL'}     || "/usr/bin/env perl";
 $target{cc} =      $ENV{'CC'}      || $target{cc}      || "cc";
 $target{ranlib} =  $ENV{'RANLIB'}  || $target{ranlib}  ||
                    (which("$config{cross_compile_prefix}ranlib") ?
diff --git a/INSTALL b/INSTALL
index 29db22e..0f24606 100644
--- a/INSTALL
+++ b/INSTALL
@@ -722,7 +722,14 @@
                 variable can be set to the directory where these files are held.
 
  PERL
-                The name of the Perl executable to use.
+                The name of the Perl executable to use when building OpenSSL.
+
+ HASHBANGPERL
+                The command string for the Perl executable to insert in the
+                #! line of perl scripts that will be publically installed.
+                Default: /usr/bin/env perl
+                Note: the value of this variable is added to the same scripts
+                on all platforms, but it's only relevant on Unix-like platforms.
 
  RC
                 The name of the rc executable to use. The default will be as
diff --git a/apps/CA.pl.in b/apps/CA.pl.in
index 0dec24c..3187e47 100644
--- a/apps/CA.pl.in
+++ b/apps/CA.pl.in
@@ -1,4 +1,4 @@
-#!{- $config{perl} -}
+#!{- $config{hashbangperl} -}
 # Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the OpenSSL license (the "License").  You may not use
diff --git a/apps/tsget.in b/apps/tsget.in
index 7067111..89d1bc7 100644
--- a/apps/tsget.in
+++ b/apps/tsget.in
@@ -1,4 +1,4 @@
-#!{- $config{perl} -}
+#!{- $config{hashbangperl} -}
 # Copyright (c) 2002 The OpenTSA Project. All rights reserved.
 # Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
 #
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 949e44f..2fef627 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -1,4 +1,4 @@
-#!{- $config{perl} -}
+#!{- $config{hashbangperl} -}
 
 # {- join("\n# ", @autowarntext) -}
 # Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.


More information about the openssl-commits mailing list