From: Rich Salz Date: Mon, 16 Aug 2021 20:29:09 +0000 (-0400) Subject: Set KERNEL_BITS, add CONFIG_NOWAIT X-Git-Tag: openssl-3.0.0~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=214888448df407e2154ca871d6ffec41ab18698e;p=thirdparty%2Fopenssl.git Set KERNEL_BITS, add CONFIG_NOWAIT Avoid perl "undefined variable in regexp" message. Not all uses were changed because I wasn't sure. Add support for CONFIG_NOWAIT environment variable. Reviewed-by: Richard Levitte Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16325) --- diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index 5f549f80249..b6de03c43a3 100755 --- a/util/perl/OpenSSL/config.pm +++ b/util/perl/OpenSSL/config.pm @@ -22,7 +22,7 @@ use Carp; # These control our behavior. my $DRYRUN; my $VERBOSE; -my $WAIT = 1; +my $WAIT = defined $ENV{'CONFIG_NOWAIT'} ? 0 : 1; my $WHERE = dirname($0); # Machine type, etc., used to determine the platform @@ -452,7 +452,7 @@ EOF [ 'ppc-apple-rhapsody', { target => "rhapsody-ppc" } ], [ 'ppc-apple-darwin.*', sub { - my $KERNEL_BITS = $ENV{KERNEL_BITS}; + my $KERNEL_BITS = $ENV{KERNEL_BITS} // ''; my $ISA64 = `sysctl -n hw.optional.64bitops 2>/dev/null`; if ( $ISA64 == 1 && $KERNEL_BITS eq '' ) { print </dev/null`; if ( $ISA64 == 1 && $KERNEL_BITS eq '' ) { print < "darwin-i386" } if $KERNEL_BITS eq '32'; print <