svn commit: r481404 - head/net-p2p/py-libtorrent-rasterbar

Yuri Victorovich yuri at FreeBSD.org
Sat Oct 6 23:18:19 UTC 2018


Author: yuri
Date: Sat Oct  6 23:18:17 2018
New Revision: 481404
URL: https://svnweb.freebsd.org/changeset/ports/481404

Log:
  net-p2p/py-libtorrent-rasterbar: Add workarounds for several bugs in the python binding
  
  Several missing symbol problems are worked around by adding a define to CFLAGS, and adding libraries to LDFLAGS.
  Also fix a typo in pkg-descr.
  
  Reported by:	TJ <tj at mrsk.me>

Modified:
  head/net-p2p/py-libtorrent-rasterbar/Makefile
  head/net-p2p/py-libtorrent-rasterbar/pkg-descr

Modified: head/net-p2p/py-libtorrent-rasterbar/Makefile
==============================================================================
--- head/net-p2p/py-libtorrent-rasterbar/Makefile	Sat Oct  6 22:43:52 2018	(r481403)
+++ head/net-p2p/py-libtorrent-rasterbar/Makefile	Sat Oct  6 23:18:17 2018	(r481404)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libtorrent-rasterbar
 DISTVERSION=	1.1.10
+PORTREVISION=	1
 CATEGORIES=	net-p2p ipv6 python
 MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/libtorrent-${PORTVERSION:S/./_/g}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,8 +17,11 @@ LICENSE_FILE=	${WRKSRC}/../../COPYING
 LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
 		${PY_BOOST}
 
-USES=		localbase python
+USES=		iconv localbase python
 USE_PYTHON=	distutils autoplist
+
+CFLAGS+=	-DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331
+LDFLAGS+=	${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330
 
 WRKSRC_SUBDIR=	bindings/python
 

Modified: head/net-p2p/py-libtorrent-rasterbar/pkg-descr
==============================================================================
--- head/net-p2p/py-libtorrent-rasterbar/pkg-descr	Sat Oct  6 22:43:52 2018	(r481403)
+++ head/net-p2p/py-libtorrent-rasterbar/pkg-descr	Sat Oct  6 23:18:17 2018	(r481404)
@@ -1,4 +1,4 @@
-The python vinfing of libtorrent, an open source C++ library implementing the
+The python binfing of libtorrent, an open source C++ library implementing the
 BitTorrent protocol.
 
 WWW: http://libtorrent.org/


More information about the svn-ports-head mailing list