# HG changeset patch # User David Demelier # Date 1565001680 -7200 # Node ID 100b1ba8672d004de6e046803dc4c7f564875378 # Parent a70abf4767716aee67fd89621607f98926a3f45e network/libssh: fix build with libressl diff -r a70abf476771 -r 100b1ba8672d network/libssh/libssh.sh --- a/network/libssh/libssh.sh Mon Aug 05 12:40:35 2019 +0200 +++ b/network/libssh/libssh.sh Mon Aug 05 12:41:20 2019 +0200 @@ -36,6 +36,7 @@ # ld.lld: error: undefined symbol: argp_parse # >>> referenced by ssh_server_fork.c # >>> CMakeFiles/ssh_server_fork.dir/ssh_server_fork.c.o:(main) + patch -p0 < ../patch-libressl.patch mkdir build && cd build cmake .. \ -DBUILD_SHARED_LIBS=On \ diff -r a70abf476771 -r 100b1ba8672d network/libssh/patch-libressl.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/network/libssh/patch-libressl.patch Mon Aug 05 12:41:20 2019 +0200 @@ -0,0 +1,11 @@ +--- include/libssh/libcrypto.h.orig 2019-08-05 09:41:00.104573122 +0000 ++++ include/libssh/libcrypto.h 2019-08-05 09:41:08.272573373 +0000 +@@ -112,7 +112,7 @@ + + + /* Returns true if the OpenSSL is operating in FIPS mode */ +-#define ssh_fips_mode() (FIPS_mode() != 0) ++#define ssh_fips_mode() false + + #endif /* HAVE_LIBCRYPTO */ +