svn commit: r566824 - head/net-p2p/py-libtorrent-rasterbar
Yuri Victorovich
yuri at FreeBSD.org
Mon Mar 1 01:18:16 UTC 2021
Author: yuri
Date: Mon Mar 1 01:18:15 2021
New Revision: 566824
URL: https://svnweb.freebsd.org/changeset/ports/566824
Log:
net-p2p/py-libtorrent-rasterbar: Fix build: use boost-python's shared library to build python shared object
Modified:
head/net-p2p/py-libtorrent-rasterbar/Makefile
Modified: head/net-p2p/py-libtorrent-rasterbar/Makefile
==============================================================================
--- head/net-p2p/py-libtorrent-rasterbar/Makefile Sun Feb 28 22:17:46 2021 (r566823)
+++ head/net-p2p/py-libtorrent-rasterbar/Makefile Mon Mar 1 01:18:15 2021 (r566824)
@@ -3,6 +3,7 @@
PORTNAME= libtorrent-rasterbar
DISTVERSION= 2.0.2
+PORTREVISION= 1
CATEGORIES= net-p2p python
MASTER_SITES= https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -27,8 +28,10 @@ USE_PYTHON= distutils autoplist
BINARY_ALIAS= b2=${FILESDIR}/b2
CFLAGS+= -DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331
-CFLAGS+= -fPIC
#LDFLAGS+= ${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330
+
+PYDISTUTILS_BUILD_TARGET= build_ext
+PYDISTUTILS_BUILDARGS= --boost-link=shared # otherwise it uses the static library and fails to build the python object: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment
WRKSRC_SUBDIR= bindings/python
More information about the svn-ports-all
mailing list