diff --git a/srcpkgs/retroshare/patches/fix-build-with-gcc-8.patch b/srcpkgs/retroshare/patches/fix-build-with-gcc-8.patch new file mode 100644 index 00000000000..53bb43c2f41 --- /dev/null +++ b/srcpkgs/retroshare/patches/fix-build-with-gcc-8.patch @@ -0,0 +1,24 @@ +From 4d287d68bc9725f403dc7d952a927d401c5d6c97 Mon Sep 17 00:00:00 2001 +From: csoler +Date: Wed, 9 May 2018 13:27:16 +0200 +Subject: [PATCH] fixed weird mistake in grouter which causes an issue only in + gcc > 8 + +--- + libretroshare/src/grouter/p3grouter.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libretroshare/src/grouter/p3grouter.cc b/libretroshare/src/grouter/p3grouter.cc +index 75e8fd4d6a..d184b15f5c 100644 +--- libretroshare/src/grouter/p3grouter.cc ++++ libretroshare/src/grouter/p3grouter.cc +@@ -540,7 +540,7 @@ if(itm == NULL) + + void GRouterTunnelInfo::removeVirtualPeer(const TurtleVirtualPeerId& vpid) + { +- std::set::iterator it = virtual_peers.find(vpid) ; ++ std::set::iterator it = virtual_peers.find(vpid) ; + + if(it == virtual_peers.end()) + { +