external/openssl/openssl-no-ipc-cmd.patch.0 |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

New commits:
commit 7ea19dd9086c9afe1a044716ca7f9643442a846c
Author:     Michael Stahl <[email protected]>
AuthorDate: Tue Nov 8 13:05:39 2022 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Mon Nov 28 15:32:24 2022 +0100

    openssl: patch out another call to IPC::Cmd
    
    ... which is used when cross-compiling.
    
    Change-Id: I08f5ccd5d9418a81c9b1273667133065552325dc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143387
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/external/openssl/openssl-no-ipc-cmd.patch.0 
b/external/openssl/openssl-no-ipc-cmd.patch.0
index 75ed669eabc9..7f75b8ce64fe 100644
--- a/external/openssl/openssl-no-ipc-cmd.patch.0
+++ b/external/openssl/openssl-no-ipc-cmd.patch.0
@@ -63,3 +63,21 @@
  
          if ( $SYSTEM eq "SunOS" ) {
              # check for Oracle Developer Studio, expected output is "cc: 
blah-blah C x.x blah-blah"
+--- util/perl/OpenSSL/config.pm.orig   2022-11-08 12:54:59.751298823 +0100
++++ util/perl/OpenSSL/config.pm        2022-11-08 12:55:16.436287053 +0100
+@@ -52,13 +52,13 @@
+ my @cc_version =
+     (
+      clang => sub {
+-         return undef unless IPC::Cmd::can_run("$CROSS_COMPILE$CC");
++         return undef; # unless IPC::Cmd::can_run("$CROSS_COMPILE$CC");
+          my $v = `$CROSS_COMPILE$CC -v 2>&1`;
+          $v =~ m/(?:(?:clang|LLVM) version|.*based on 
LLVM)\s+([0-9]+\.[0-9]+)/;
+          return $1;
+      },
+      gnu => sub {
+-         return undef unless IPC::Cmd::can_run("$CROSS_COMPILE$CC");
++         return undef; # unless IPC::Cmd::can_run("$CROSS_COMPILE$CC");
+          my $nul = File::Spec->devnull();
+          my $v = `$CROSS_COMPILE$CC -dumpversion 2> $nul`;
+          # Strip off whatever prefix egcs prepends the number with.

Reply via email to