]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add $(PERL) to util/wrap.pl execution to avoid env incompatibilities
authorRandall S. Becker <rsbecker@nexbridge.com>
Thu, 18 Mar 2021 22:45:28 +0000 (16:45 -0600)
committerRichard Levitte <levitte@openssl.org>
Mon, 29 Mar 2021 08:05:33 +0000 (10:05 +0200)
Using /usr/bin/env on the NonStop ia64 and x86 platforms
causes a translation of - to -i as part of the implicit interpretation
by env of its arguments prior to handing off the arguments to perl.
This causes the FIPS module configuration to be written to a file
named -i instead of going to stdout.

CLA: Trivial

Fixes: #14612
Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14613)

Configurations/unix-Makefile.tmpl

index 249652296cc34e41afa1729b155c31935010b642..d0192aa32ebe9a3a3f7ce8a592d05663f1780897 100644 (file)
@@ -1433,9 +1433,10 @@ EOF
           # Also redo $gen0, to ensure that we have the proper extension where
           # necessary.
           $gen0 = platform->bin($gen0);
+          # Use $(PERL) to execute wrap.pl directly to avoid calling env
           return <<"EOF";
 $args{src}: $gen0 $deps \$(BLDDIR)/util/wrap.pl
-       \$(BLDDIR)/util/wrap.pl $gen0$gen_args > \$@
+       \$(PERL) \$(BLDDIR)/util/wrap.pl $gen0$gen_args > \$@
 EOF
       } else {
           #