always use the same perl in $PATH
authora1346054 <36859588+a1346054@users.noreply.github.com>
Thu, 19 Aug 2021 11:05:15 +0000 (11:05 +0000)
committerPauli <pauli@openssl.org>
Thu, 2 Sep 2021 02:55:39 +0000 (12:55 +1000)
Different tests may use unexpectedly different versions of perl,
depending on whether they hardcode the path to the perl executable or if
they resolve the path from the environment. This fixes it so that the
same perl is always used.

Fix some trailing whitespace and spelling mistakes as well.

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16362)

23 files changed:
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/workflows/cross-compiles.yml
.github/workflows/run-checker-ci.yml
ACKNOWLEDGEMENTS.md
Configurations/unix-checker.pm
Configurations/windows-checker.pm
INSTALL.md
dev/release-aux/fix-title.pl
dev/release-aux/release-state-fn.sh
dev/release.sh
test/README-dev.md
test/recipes/06-test_algorithmid.t
test/recipes/06-test_rdrand_sanity.t
test/recipes/80-test_cipherbytes.t
test/recipes/80-test_cipherlist.t
test/recipes/80-test_ciphername.t
test/recipes/90-test_includes.t
util/check-format.pl
util/echo.pl
util/fips-checksums.sh
util/fix-deprecation

index 7a89c4ef130548e7e998cfc96acb706979074d60..942a8fc5c6130d4b7b117617ca33c3ea29f13a8f 100644 (file)
@@ -1,7 +1,7 @@
 <!--
 NOTE:
 
-    If you're asking about how to use OpenSSL, this isn't the right 
+    If you're asking about how to use OpenSSL, this isn't the right
     forum.  Please see our User Support resources:
     https://github.com/openssl/openssl/blob/master/SUPPORT.md
 
@@ -18,7 +18,7 @@ output and code, like this:
 
     ```
     #include <stdio.h>
-    
+
     int main() {
         int foo = 1;
         printf("%d\n", foo);
index 5cc780b6defe9d64ca156f352a4ae78a56fcd618..4245a14b80977c224c7310daee16a33dd8604169 100644 (file)
@@ -11,7 +11,7 @@ please take the time to read the following lines before posting it.
 
 NOTE:
 
-    If you're asking about how to use OpenSSL, this isn't the right 
+    If you're asking about how to use OpenSSL, this isn't the right
     forum.  Please see our User Support resources:
     https://github.com/openssl/openssl/blob/master/SUPPORT.md
 
@@ -44,7 +44,7 @@ output and code, like this:
 
     ```
     #include <stdio.h>
-    
+
     int main() {
         int foo = 1;
         printf("%d\n", foo);
index 4e4ed54cf2f7baafdaa5f99de04d8bbf75c3e87c..f94c5dc40630a68f83d2cc974594b14ed5780c19 100644 (file)
@@ -11,7 +11,7 @@ please take the time to read the following lines before posting it.
 
 NOTE:
 
-    If you're asking about how to use OpenSSL, this isn't the right 
+    If you're asking about how to use OpenSSL, this isn't the right
     forum.  Please see our User Support resources:
     https://github.com/openssl/openssl/blob/master/SUPPORT.md
 
@@ -25,7 +25,7 @@ output and code, like this:
 
     ```
     #include <stdio.h>
-    
+
     int main() {
         int foo = 1;
         printf("%d\n", foo);
index 514a4fbabe3401a19d5e972d931bc527313df317..576a9d3b1839d281dbd6aeaeacb97d024b0a7324 100644 (file)
@@ -17,8 +17,8 @@ jobs:
         #   fips:   set to "no" to disable building FIPS, leave unset to
         #           build the FIPS provider.
         #   tests: omit this to run all the tests using QEMU, set it to "none"
-        #          to never run the tests, otherwise it's value is passed to
-        #          the "make test" command to allow selectiving disabling of
+        #          to never run the tests, otherwise its value is passed to
+        #          the "make test" command to allow selective disabling of
         #          tests.
         platform: [
           {
index 3c09194d0c76e04b7989100b3f7831d60d29dea5..5a6dd4dc85ccce3915c687ee18eec9a773e55f36 100644 (file)
@@ -1,4 +1,3 @@
-
 # Jobs run per pull request submission
 name: Run-checker CI
 on: [pull_request, push]
index dae83457db2e1079fe448af19b66a7cf63381910..a4dab0c4fff42e70de2f3687e46c9cc1b8db14c6 100644 (file)
@@ -4,4 +4,3 @@ Acknowlegements
 Please see our [Thanks!][] page for the current acknowledgements.
 
 [Thanks!]: https://www.openssl.org/community/thanks.html
-
index b39b0eb7cbda05a5f00a9cb7bfc7d08589d9f1d5..d0f05a0d35043299e360e8c5d2606d656d8d4c12 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 use Config;
 
index 4b7105df33cbf5118c30c7a13aa582397b73c54c..97303ed7d7ce474d7ea739a4ba856da2fdc387d8 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 use Config;
 
index 722a88bf04eb60fa89691626882f3317e95160fd..5d53cef1aa5e504aa969a1dd3d8844327e5da275 100644 (file)
@@ -296,7 +296,7 @@ API Level
 Build the OpenSSL libraries to support the API for the specified version.
 If [no-deprecated](#no-deprecated) is also given, don't build with support
 for deprecated APIs in or below the specified version number.  For example,
-addding
+adding
 
     --api=1.1.0 no-deprecated
 
index d3f00b984bda5f8c32b08736da4a46c00f49bf0f..6fe256ebc442ba1e7adac22a43d18e3348760e33 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 BEGIN { my $prev }
 ($_ = $prev) =~ s|^( *)(.*)$|"$1" . '=' x length($2)|e
index f495cb8536041ae1753d4adde328a6028368f39e..635b82a8b9d5141d5b3cf07b462d4e7857563bac 100644 (file)
@@ -64,7 +64,7 @@ next_release_state () {
 
         case "$before+$next" in
             # MAKING ALPHA RELEASES ##################################
-            
+
             # Alpha releases can't be made from beta versions or real versions
             beta*+alpha | +alpha )
                 echo >&2 "Invalid state for an alpha release"
@@ -199,4 +199,3 @@ next_release_state () {
         $DEBUG >&2 "DEBUG[next_release_state]: END: \$RELEASE_DATE=$RELEASE_DATE"
     done
 }
-
index 351ddc5528333f9527badddf9fe43233dcd8ddee..4b778f3b751938f541ce3021818cf1f157b6e8a7 100755 (executable)
@@ -471,7 +471,7 @@ for fixup in "$HERE/dev/release-aux"/fixup-*-postrelease.pl; do
         perl -pi $fixup $file
 done
 
-$VERBOSE "== Comitting updates"
+$VERBOSE "== Committing updates"
 git add -u
 git commit $git_quiet -m "Prepare for $release_text"
 if [ -n "$reviewers" ]; then
@@ -502,7 +502,7 @@ if $do_branch; then
             perl -pi $fixup $file
     done
 
-    $VERBOSE "== Comitting updates"
+    $VERBOSE "== Committing updates"
     git add -u
     git commit $git_quiet -m "Prepare for $release_text"
     if [ -n "$reviewers" ]; then
index 56114fdc347d5e2d67d95276941e0af03c9c0a40..d015bcf5bfb01981deb7fe17ada210446e40ce70 100644 (file)
@@ -44,7 +44,7 @@ A recipe that just runs a test executable
 
 A script that just runs a program looks like this:
 
-    #! /usr/bin/perl
+    #! /usr/bin/env perl
 
     use OpenSSL::Test::Simple;
 
@@ -67,7 +67,7 @@ documentation.  For OpenSSL::Test, do `perldoc util/perl/OpenSSL/Test.pm`.
 
 A script to start from could be this:
 
-    #! /usr/bin/perl
+    #! /usr/bin/env perl
 
     use strict;
     use warnings;
index f70c1d2a2313f5d00e8f54bfba1c51f581c3f37c..8b98efe9096153c2144e5be25f6d9c8d150a6ead 100644 (file)
@@ -1,7 +1,7 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 # Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
-# 
+#
 # Licensed under the Apache License 2.0 (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
 # in the file LICENSE in the source distribution or at
index 8a33b8ded80afff36d5f98c52881f6c14534b3af..a20e09e77804974935467fd0d4cefba0b4150449 100644 (file)
@@ -1,7 +1,7 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 # Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
-# 
+#
 # Licensed under the Apache License 2.0 (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
 # in the file LICENSE in the source distribution or at
index 0e99f1021656e63ac63fc7f5bea303de156b6e1c..dc576fdcbdab0cf966146acdc04a19feb06909d0 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 # Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
 #
index cf821ad6321f8193f96876ebe4f5ad5a786581a4..2deda30eecc66c622cb000a06cdd33b769124fec 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 # Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
 #
index 72a96cbcd62925556364a813556a595fefd4ccfa..a3227cee4db4b1ad7c5ae1d1dce6ff93816e9141 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 # Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
 # Copyright 2017 BaishanCloud. All rights reserved.
index 13c5c842024c008fd7ea7f1387b7138331912712..b931d4ec4a0a5f45a3da23f19113bce57724b0ae 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 use strict;
 use warnings;
index 72cf53d18971636e6b19c7528beaeb6b55bbf7c9..62471e3c68055658d3047867c485f6353c8966d7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#! /usr/bin/env perl
 #
 # Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
 # Copyright Siemens AG 2019-2020
index d90e52129bab8bfa1ddb8527575684fdc9ece504..8c2616a3bcb05a30ee5c4d9feb2cddf63ee194cb 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 use strict;
 use warnings;
index aff8d0ccce636482d52bcc4ace9f1262c591057e..be0453e3228f22a9cddfba315748744628881980 100755 (executable)
@@ -15,13 +15,13 @@ for f in "$@"; do
                 | openssl sha256 -r \
                 | sed -e "s| \\*stdin|  $f|"
             ;;
-        *.pl ) 
+        *.pl )
             cat "$f" \
                 | $HERE/lang-compress.pl 'perl' \
                 | openssl sha256 -r \
                 | sed -e "s| \\*stdin|  $f|"
             ;;
-        *.S ) 
+        *.S )
             cat "$f" \
                 | $HERE/lang-compress.pl 'S' \
                 | openssl sha256 -r \
index a87d4fb9d18ea15725d74a8825ef927b476adab2..59439eda6ddf40ebf87297ea6379c57385b28631 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 use strict;
 use warnings;