update net/libtorrent-rasterbar 1.2.15

Changelog:
https://github.com/arvidn/libtorrent/releases/tag/v1.2.15
https://github.com/arvidn/libtorrent/releases/tag/v1.2.14

- Build with c++17 to work around c++14 / boost 1.77 crash (report and
  solution by Brad).
- Major bump due to removed symbols.
- Remove buffer.hpp patch (fixed upstream).
- Add newline in config.hpp patch.

From Brad with tweaks by me. Thanks!
Tested by Brad. OK mariani@
This commit is contained in:
namn 2021-12-31 00:31:16 +00:00
parent 62aaf7a40c
commit 7917778454
4 changed files with 11 additions and 32 deletions

View File

@ -1,12 +1,11 @@
# $OpenBSD: Makefile,v 1.18 2021/11/02 00:01:39 sthen Exp $
# $OpenBSD: Makefile,v 1.19 2021/12/31 00:31:16 namn Exp $
COMMENT = C++ library implementing a BitTorrent client
MODPY_EGG_VERSION = 1.2.13
MODPY_EGG_VERSION = 1.2.15
DISTNAME = libtorrent-rasterbar-${MODPY_EGG_VERSION}
REVISION = 1
SHARED_LIBS += torrent-rasterbar 4.0 # 10.0.0
SHARED_LIBS += torrent-rasterbar 5.0 # 10.0.0
CATEGORIES = net devel
@ -37,6 +36,10 @@ CONFIGURE_ARGS = --enable-python-binding \
--with-boost-system=boost_system-mt \
--with-boost-python=boost_python${MODPY_VERSION:C/\.//g}-mt \
--with-libiconv
# https://github.com/arvidn/libtorrent/issues/6468
CONFIGURE_ARGS += --with-cxx-standard=17
CONFIGURE_ENV += CPPFLAGS="-Wno-deprecated-declarations \
-Wno-macro-redefined \
-pthread" \

View File

@ -1,2 +1,2 @@
SHA256 (libtorrent-rasterbar-1.2.13.tar.gz) = l20ncf/NVk8IpjNR6cIuhCqqjNKfb3/iXRacA4qEToU=
SIZE (libtorrent-rasterbar-1.2.13.tar.gz) = 4160116
SHA256 (libtorrent-rasterbar-1.2.15.tar.gz) = yK2GOGhMCpA+urwwSQB54xsaamONoq3sWovvag5iIUs=
SIZE (libtorrent-rasterbar-1.2.15.tar.gz) = 4163049

View File

@ -1,25 +0,0 @@
$OpenBSD: patch-include_libtorrent_buffer_hpp,v 1.1 2020/02/06 20:00:16 rsadowski Exp $
malloc_usable_size and malloc_size are unavailable
Index: include/libtorrent/buffer.hpp
--- include/libtorrent/buffer.hpp.orig
+++ include/libtorrent/buffer.hpp
@@ -50,7 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
#elif defined __FreeBSD__
#include <malloc_np.h>
#elif defined TORRENT_BSD
-#include <malloc/malloc.h>
+#include <sys/malloc.h>
#endif
namespace libtorrent {
@@ -89,8 +89,6 @@ class buffer (public)
m_size = static_cast<difference_type>(::malloc_usable_size(m_begin));
#elif defined _MSC_VER
m_size = static_cast<difference_type>(::_msize(m_begin));
-#elif defined TORRENT_BSD
- m_size = static_cast<difference_type>(::malloc_size(m_begin));
#else
m_size = size;
#endif

View File

@ -1,4 +1,5 @@
$OpenBSD: patch-include_libtorrent_config_hpp,v 1.5 2021/05/22 21:47:28 namn Exp $
$OpenBSD: patch-include_libtorrent_config_hpp,v 1.6 2021/12/31 00:31:16 namn Exp $
Index: include/libtorrent/config.hpp
--- include/libtorrent/config.hpp.orig
+++ include/libtorrent/config.hpp