Commit bff608269d for openssl.org

commit bff608269d3e7bb95a3ba07ef268066bd92d33e6
Author: Showta Ishizaki <zakinko@snowrabbit.org>
Date:   Fri Nov 13 17:41:42 2026 +0000

    Configure: drop the newline from hw.model on NetBSD/i386

    sysctl prints hw.model with a trailing newline, which the substitution
    does not remove because .* stops at the newline.  The guessed system
    then comes out as "i686\n-whatever-netbsd", which matches no target,
    and Configure stops on NetBSD/i386.

    Remove the newline before using the value.

    Signed-off-by: Showta Ishizaki <zakinko@snowrabbit.org>
    Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
    Reviewed-by: Bob Beck <beck@openssl.org>
    Merge-date: Tue Dec  1 17:12:34 2026
    Merged-from: https://github.com/openssl/openssl/pull/33977

diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm
index 1e73f9608f..b76c2918e8 100755
--- a/util/perl/OpenSSL/config.pm
+++ b/util/perl/OpenSSL/config.pm
@@ -130,6 +130,7 @@ my $guess_patterns = [
       sub {
           my $hw = `/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model`;
           $hw =~  s@.*(.)86-class.*@i${1}86@;
+          chomp $hw;
           return "${hw}-whatever-netbsd";
       }
     ],