commit:     14cc2e7dc4add659d0cb9afd60e2a824dd8cc3bf
Author:     Thomas Sachau <tommy <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 29 09:49:38 2021 +0000
Commit:     Thomas Sachau <tommy <AT> gentoo <DOT> org>
CommitDate: Fri Oct 29 09:50:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14cc2e7d

net-p2p/fms: Add patch for mbedtls-3, fixes bug 804960

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Thomas Sachau <tommy <AT> gentoo.org>

 net-p2p/fms/files/fms-0.3.83-fix-for-mbedtls-3.patch | 11 +++++++++++
 net-p2p/fms/fms-0.3.83.ebuild                        |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/net-p2p/fms/files/fms-0.3.83-fix-for-mbedtls-3.patch 
b/net-p2p/fms/files/fms-0.3.83-fix-for-mbedtls-3.patch
new file mode 100644
index 00000000000..fdc1948abd8
--- /dev/null
+++ b/net-p2p/fms/files/fms-0.3.83-fix-for-mbedtls-3.patch
@@ -0,0 +1,11 @@
+--- /include/freenet/fcpv2.h   2016-06-04 18:16:06.000000000 +0200
++++ /include/freenet/fcpv2.h.new       2021-10-29 11:38:04.000000000 +0200
+@@ -33,7 +33,7 @@
+ #endif
+ 
+ #ifdef FCP_SSL
+-      #include <mbedtls/net.h>
++      #include <mbedtls/net_sockets.h>
+       #include <mbedtls/ssl.h>
+       #include <mbedtls/ctr_drbg.h>
+       #include <mbedtls/entropy.h>

diff --git a/net-p2p/fms/fms-0.3.83.ebuild b/net-p2p/fms/fms-0.3.83.ebuild
index ca07782f847..4923e850642 100644
--- a/net-p2p/fms/fms-0.3.83.ebuild
+++ b/net-p2p/fms/fms-0.3.83.ebuild
@@ -35,7 +35,10 @@ BDEPEND="
        virtual/libiconv
 "
 
-PATCHES=( "${FILESDIR}/${PN}-use-system-libs4.patch" )
+PATCHES=(
+       "${FILESDIR}/${PN}-use-system-libs4.patch"
+       "${FILESDIR}/${P}-fix-for-mbedtls-3.patch"
+)
 
 DOCS=( "readme.txt" )
 
@@ -43,6 +46,7 @@ src_prepare() {
        # Convert encoding due applied patch
        edos2unix src/http/pages/showfilepage.cpp
        edos2unix CMakeLists.txt
+       edos2unix include/freenet/fcpv2.h
 
        # Remove bundled libs
        rm -fr libs || die

Reply via email to