summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2021-10-29 11:49:38 +0200
committerThomas Sachau <tommy@gentoo.org>2021-10-29 11:50:14 +0200
commit14cc2e7dc4add659d0cb9afd60e2a824dd8cc3bf (patch)
treec40c3508f9c5ee809c6a3cf09415821a3d676dd2 /net-p2p/fms
parentdev-python/pudb: Bump to 2021.2 (diff)
downloadgentoo-14cc2e7dc4add659d0cb9afd60e2a824dd8cc3bf.tar.gz
gentoo-14cc2e7dc4add659d0cb9afd60e2a824dd8cc3bf.tar.bz2
gentoo-14cc2e7dc4add659d0cb9afd60e2a824dd8cc3bf.zip
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@gentoo.org>
Diffstat (limited to 'net-p2p/fms')
-rw-r--r--net-p2p/fms/files/fms-0.3.83-fix-for-mbedtls-3.patch11
-rw-r--r--net-p2p/fms/fms-0.3.83.ebuild6
2 files changed, 16 insertions, 1 deletions
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 000000000000..fdc1948abd82
--- /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 ca07782f8477..4923e8506423 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