From 7b6b219861a6a6ccde9211116a93d859e39c900f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 11 May 2022 17:15:09 +0200 Subject: FreeBSD: Add port for ktorrent. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../ktorrent/files/patch-bp000-fix-ftbfs.diff | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 freebsd/applications/internet/ktorrent/files/patch-bp000-fix-ftbfs.diff (limited to 'freebsd/applications/internet/ktorrent/files/patch-bp000-fix-ftbfs.diff') diff --git a/freebsd/applications/internet/ktorrent/files/patch-bp000-fix-ftbfs.diff b/freebsd/applications/internet/ktorrent/files/patch-bp000-fix-ftbfs.diff new file mode 100644 index 000000000..1d79bc90d --- /dev/null +++ b/freebsd/applications/internet/ktorrent/files/patch-bp000-fix-ftbfs.diff @@ -0,0 +1,48 @@ +commit 3ce1e1ccb8105968b6cb2a506a627f60f50d2148 +Author: Michele Calgaro +Date: Wed May 11 22:10:44 2022 +0900 + + Fix FTBFS described at issue #2. + + Signed-off-by: Michele Calgaro + +diff --git a/plugins/infowidget/chunkbar.cpp b/plugins/infowidget/chunkbar.cpp +index 1cd45eb..794bf5a 100644 +--- a/plugins/infowidget/chunkbar.cpp ++++ b/plugins/infowidget/chunkbar.cpp +@@ -207,7 +207,7 @@ namespace kt + + if (rs.empty()) + { +- Range r = {i,i,0}; ++ Range r = {(int)i,(int)i,0}; + rs.append(r); + } + else +@@ -219,7 +219,7 @@ namespace kt + } + else + { +- Range r = {i,i,0}; ++ Range r = {(int)i,(int)i,0}; + rs.append(r); + } + } +@@ -256,7 +256,7 @@ namespace kt + int fac = int(100*((double)num_dl / (jEnd - jStart)) + 0.5); + if (rs.empty()) + { +- Range r = {i,i,fac}; ++ Range r = {(int)i,(int)i,fac}; + rs.append(r); + } + else +@@ -268,7 +268,7 @@ namespace kt + } + else + { +- Range r = {i,i,fac}; ++ Range r = {(int)i,(int)i,fac}; + rs.append(r); + } + } -- cgit v1.2.3