summaryrefslogtreecommitdiffstats
path: root/libraries/libtorrent-rasterbar
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtorrent-rasterbar')
-rw-r--r--libraries/libtorrent-rasterbar/boost-1.72.0.patch36
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild5
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.info6
3 files changed, 45 insertions, 2 deletions
diff --git a/libraries/libtorrent-rasterbar/boost-1.72.0.patch b/libraries/libtorrent-rasterbar/boost-1.72.0.patch
new file mode 100644
index 0000000000..dc2d28f783
--- /dev/null
+++ b/libraries/libtorrent-rasterbar/boost-1.72.0.patch
@@ -0,0 +1,36 @@
+From 94bd4ae76f0fb3233eda58794e0105f6e3be92ee Mon Sep 17 00:00:00 2001
+From: arvidn <arvid@libtorrent.org>
+Date: Fri, 13 Dec 2019 21:58:09 +0100
+Subject: [PATCH] support building with new boost version
+
+---
+ ChangeLog | 1 +
+ include/libtorrent/socket_type.hpp | 4 ++++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/ChangeLog b/ChangeLog
+index 6c74a8067a..e060ab190e 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,5 +1,6 @@
+ 1.1.14 release
+
++ * support building with new boost version
+ * add handling on invalid piece index to torrent_handle::have_piece()
+ * fix error in treatment of move_storage() flags
+ * fix division by zero in anti-leech choker
+diff --git a/include/libtorrent/socket_type.hpp b/include/libtorrent/socket_type.hpp
+index 578b4534a9..69eabd2569 100644
+--- a/include/libtorrent/socket_type.hpp
++++ b/include/libtorrent/socket_type.hpp
+@@ -190,6 +190,10 @@ namespace libtorrent
+ typedef tcp::socket::protocol_type protocol_type;
+
+ typedef tcp::socket::receive_buffer_size receive_buffer_size;
++
++#if BOOST_VERSION >= 106600
++ using executor_type = tcp::socket::executor_type;
++#endif
+ typedef tcp::socket::send_buffer_size send_buffer_size;
+
+ explicit socket_type(io_service& ios): m_io_service(ios), m_type(0) {}
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
index 0501141e52..35fc752c8f 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
@@ -77,6 +77,11 @@ sed -i -e "s/+ target_specific(),/+ target_specific() + ['-std=c++14'],/" \
EXAMPLES=${EXAMPLES:-no}
[ "$EXAMPLES" = "yes" ] && examples="--enable-examples"
+patch -p1 < $CWD/libtorrent-1_1_13...RC_1_1-5c39557.patch
+patch -p1 < $CWD/boost-1.72.0.patch
+
+autoreconf -fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=c++14" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
index d6c78127df..b937a72582 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.info
@@ -1,8 +1,10 @@
PRGNAM="libtorrent-rasterbar"
VERSION="1.1.13"
HOMEPAGE="https://libtorrent.org/"
-DOWNLOAD="https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_13/libtorrent-rasterbar-1.1.13.tar.gz"
-MD5SUM="a3eec8d384f0343df1fb417c14c4e20d"
+DOWNLOAD="https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_13/libtorrent-rasterbar-1.1.13.tar.gz \
+ http://ponce.cc/slackware/sources/repo/libtorrent-1_1_13...RC_1_1-5c39557.patch"
+MD5SUM="a3eec8d384f0343df1fb417c14c4e20d \
+ 0680c67fe370348d0cc8959f7d7160b2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""