Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2018 23:18:18 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481404 - head/net-p2p/py-libtorrent-rasterbar
Message-ID:  <201810062318.w96NIIAY054333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810062318.w96NIIAY054333>