View | Details | Raw Unified | Return to bug 264970 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-p2p/libtorrent-rasterbar/Makefile (-2 / +5 lines)
Lines 1-23 Link Here
1
PORTNAME=	libtorrent-rasterbar
1
PORTNAME=	libtorrent-rasterbar
2
DISTVERSION=	1.2.16 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781
2
DISTVERSION=	1.2.18 # 2.x is unusable until memory problems are resolved, see https://github.com/arvidn/libtorrent/issues/6781
3
PORTREVISION=	2
3
PORTREVISION=	0
4
PORTEPOCH=	2
4
PORTEPOCH=	2
5
CATEGORIES=	net-p2p
5
CATEGORIES=	net-p2p
6
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/
6
MASTER_SITES=	https://github.com/arvidn/libtorrent/releases/download/v${DISTVERSION}/
7
7
8
MAINTAINER=	yuri@FreeBSD.org
8
MAINTAINER=	yuri@FreeBSD.org
9
COMMENT=	C++ library implementing a BitTorrent client
9
COMMENT=	C++ library implementing a BitTorrent client
10
WWW=		https://libtorrent.org/
10
WWW=		https://libtorrent.org/
11
11
12
LICENSE=	BSD3CLAUSE
12
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
14
15
LIB_DEPENDS=	libboost_chrono.so:devel/boost-libs \
15
LIB_DEPENDS=	libboost_chrono.so:devel/boost-libs \
16
		libboost_random.so:devel/boost-libs \
16
		libboost_random.so:devel/boost-libs \
17
		libboost_system.so:devel/boost-libs
17
		libboost_system.so:devel/boost-libs
18
18
19
USES=		cmake compiler:c++11-lib iconv:wchar_t libtool localbase:ldflags pathfix pkgconfig python:test shebangfix ssl
19
USES=		cmake compiler:c++11-lib iconv:wchar_t libtool localbase:ldflags pathfix pkgconfig python:test shebangfix ssl
20
SHEBANG_FILES=	test/socks.py test/web_server.py
20
SHEBANG_FILES=	test/socks.py test/web_server.py
21
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
22
22
23
USE_CXXSTD=	c++17 # prevent boost-related SEGV, see bug#264278
23
USE_CXXSTD=	c++17 # prevent boost-related SEGV, see bug#264278
Lines 31-70 DOCFILES= AUTHORS ChangeLog Link Here
31
PORTDOCS=	${DOCFILES} docs/*
31
PORTDOCS=	${DOCFILES} docs/*
32
PORTEXAMPLES=	*.cpp
32
PORTEXAMPLES=	*.cpp
33
33
34
OPTIONS_DEFINE=		DOCS EXAMPLES LOGGING
34
OPTIONS_DEFINE=		DOCS EXAMPLES LOGGING
35
OPTIONS_DEFAULT=	LOGGING
35
OPTIONS_DEFAULT=	LOGGING
36
OPTIONS_SUB=		yes
36
OPTIONS_SUB=		yes
37
LOGGING_DESC=		Enable logging to disk
37
LOGGING_DESC=		Enable logging to disk
38
38
39
EXAMPLES_CMAKE_BOOL=	build_examples
39
EXAMPLES_CMAKE_BOOL=	build_examples
40
LOGGING_CMAKE_BOOL=	logging
40
LOGGING_CMAKE_BOOL=	logging
41
41
42
PORTSCOUT=	limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does
42
PORTSCOUT=	limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does
43
43
44
CONFLICTS_INSTALL=	libtorrent-rasterbar2
44
CONFLICTS_INSTALL=	libtorrent-rasterbar2
45
45
46
post-patch:
46
post-patch:
47
	@${REINPLACE_CMD} -e 's|return "python3";|return "${PYTHON_CMD}";|' \
47
	@${REINPLACE_CMD} -e 's|return "python3";|return "${PYTHON_CMD}";|' \
48
		${WRKSRC}/test/setup_transfer.cpp
48
		${WRKSRC}/test/setup_transfer.cpp
49
49
50
post-install:
50
post-install:
51
	# py-bindings seems to link this exact name after v1.2.14
52
	# TODO: figure out how to make symlinks in Jamfile
53
	/bin/ln -s libtorrent-rasterbar.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.10.0.0
51
	@${RM} ${STAGEDIR}${PREFIX}/include/libtorrent/Makefile*
54
	@${RM} ${STAGEDIR}${PREFIX}/include/libtorrent/Makefile*
52
	# Workaround for -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES being set in
55
	# Workaround for -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES being set in
53
	# Mk/Uses/cmake.mk
56
	# Mk/Uses/cmake.mk
54
	# References:   https://mariadb.atlassian.net/browse/MDEV-9388
57
	# References:   https://mariadb.atlassian.net/browse/MDEV-9388
55
	#               https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206169
58
	#               https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206169
56
	@${REINPLACE_CMD} 's/-l-pthread/-lpthread/' \
59
	@${REINPLACE_CMD} 's/-l-pthread/-lpthread/' \
57
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/libtorrent-rasterbar.pc
60
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/libtorrent-rasterbar.pc
58
61
59
post-install-DOCS-on:
62
post-install-DOCS-on:
60
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
63
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
61
	${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
64
	${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
62
	cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}
65
	cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}
63
	${RM} ${STAGEDIR}${DOCSDIR}/docs/._*
66
	${RM} ${STAGEDIR}${DOCSDIR}/docs/._*
64
67
65
post-install-EXAMPLES-on:
68
post-install-EXAMPLES-on:
66
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
69
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
67
	${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \
70
	${INSTALL_DATA} ${WRKSRC}/examples/${PORTEXAMPLES} \
68
		${STAGEDIR}${EXAMPLESDIR}
71
		${STAGEDIR}${EXAMPLESDIR}
69
72
70
do-test:
73
do-test:
(-)b/net-p2p/libtorrent-rasterbar/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1654705780
1
TIMESTAMP = 1667577326
2
SHA256 (libtorrent-rasterbar-1.2.16.tar.gz) = 5bdc221662541abdc324ded0a74b5cd3f30e6260871080b4a4b3295fb09f02e0
2
SHA256 (libtorrent-rasterbar-1.2.18.tar.gz) = fef2b6817de4e6d960e019c27f21daf27bc2468a81d9e028a19d45d61456fa72
3
SIZE (libtorrent-rasterbar-1.2.16.tar.gz) = 4163867
3
SIZE (libtorrent-rasterbar-1.2.18.tar.gz) = 4178407
(-)b/net-p2p/libtorrent-rasterbar/pkg-plist (+1 lines)
Lines 235-256 include/libtorrent/udp_socket.hpp Link Here
235
include/libtorrent/udp_tracker_connection.hpp
235
include/libtorrent/udp_tracker_connection.hpp
236
include/libtorrent/union_endpoint.hpp
236
include/libtorrent/union_endpoint.hpp
237
include/libtorrent/units.hpp
237
include/libtorrent/units.hpp
238
include/libtorrent/upnp.hpp
238
include/libtorrent/upnp.hpp
239
include/libtorrent/utf8.hpp
239
include/libtorrent/utf8.hpp
240
include/libtorrent/utp_socket_manager.hpp
240
include/libtorrent/utp_socket_manager.hpp
241
include/libtorrent/utp_stream.hpp
241
include/libtorrent/utp_stream.hpp
242
include/libtorrent/vector_utils.hpp
242
include/libtorrent/vector_utils.hpp
243
include/libtorrent/version.hpp
243
include/libtorrent/version.hpp
244
include/libtorrent/web_connection_base.hpp
244
include/libtorrent/web_connection_base.hpp
245
include/libtorrent/web_peer_connection.hpp
245
include/libtorrent/web_peer_connection.hpp
246
include/libtorrent/write_resume_data.hpp
246
include/libtorrent/write_resume_data.hpp
247
include/libtorrent/xml_parse.hpp
247
include/libtorrent/xml_parse.hpp
248
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfig.cmake
248
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfig.cmake
249
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfigVersion.cmake
249
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarConfigVersion.cmake
250
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets-%%CMAKE_BUILD_TYPE%%.cmake
250
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets-%%CMAKE_BUILD_TYPE%%.cmake
251
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets.cmake
251
lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets.cmake
252
lib/libtorrent-rasterbar.so
252
lib/libtorrent-rasterbar.so
253
lib/libtorrent-rasterbar.so.%%SO_VER%%
253
lib/libtorrent-rasterbar.so.%%SO_VER%%
254
lib/libtorrent-rasterbar.so.%%SHLIB_VER%%
254
lib/libtorrent-rasterbar.so.%%SHLIB_VER%%
255
lib/libtorrent-rasterbar.so.10.0.0
255
libdata/pkgconfig/libtorrent-rasterbar.pc
256
libdata/pkgconfig/libtorrent-rasterbar.pc
256
share/cmake/Modules/FindLibtorrentRasterbar.cmake
257
share/cmake/Modules/FindLibtorrentRasterbar.cmake
(-)b/net-p2p/py-libtorrent-rasterbar/Makefile (-6 / +8 lines)
Lines 1-44 Link Here
1
PORTNAME=	libtorrent-rasterbar
1
PORTNAME=	libtorrent-rasterbar
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.2.16
3
DISTVERSION=	1.2.18
4
PORTREVISION=	1
4
PORTREVISION=	0
5
PORTEPOCH=	2
5
PORTEPOCH=	2
6
CATEGORIES=	net-p2p python
6
CATEGORIES=	net-p2p python
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
8
9
MAINTAINER=	yuri@FreeBSD.org
9
MAINTAINER=	yuri@FreeBSD.org
10
COMMENT=	Python bindings for libtorrent-rasterbar
10
COMMENT=	Python bindings for libtorrent-rasterbar
11
WWW=		https://libtorrent.org/
11
WWW=		https://libtorrent.org/
12
12
13
LICENSE=	BSD3CLAUSE
13
LICENSE=	BSD3CLAUSE
14
LICENSE_FILE=	${WRKSRC}/../../COPYING
14
LICENSE_FILE=	${WRKSRC}/../../COPYING
15
15
16
BROKEN=		can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment, see https://github.com/arvidn/libtorrent/issues/6890
17
18
BUILD_DEPENDS=	b2:devel/boost_build
16
BUILD_DEPENDS=	b2:devel/boost_build
19
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
17
LIB_DEPENDS=	libtorrent-rasterbar.so:net-p2p/libtorrent-rasterbar \
20
		${PY_BOOST}
18
		${PY_BOOST}
21
19
22
USES=		compiler:c11 iconv localbase:ldflags python:3.6+
20
USES=		compiler:c11 iconv localbase:ldflags python:3.6+
23
USE_GITHUB=	yes
21
USE_GITHUB=	yes
24
GH_ACCOUNT=	arvidn
22
GH_ACCOUNT=	arvidn
25
GH_PROJECT=	libtorrent
23
GH_PROJECT=	libtorrent
26
USE_PYTHON=	distutils autoplist
24
USE_PYTHON=	distutils
25
PYDISTUTILS_PKGNAME=	libtorrent
26
PYDISTUTILS_BUILD_TARGET=	build_ext --b2-args="fpic=on libtorrent-link=shared boost-link=shared"
27
PYDISTUTILS_INSTALL_TARGET=	build_ext --b2-args="fpic=on libtorrent-link=shared boost-link=shared" install
27
28
28
BINARY_ALIAS=	b2=${FILESDIR}/b2
29
BINARY_ALIAS=	b2=${FILESDIR}/b2
29
30
30
CFLAGS+=	-DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331
31
CFLAGS+=	-DTORRENT_DISABLE_LOGGING # undefined symbol: https://github.com/arvidn/libtorrent/issues/3331
31
LDFLAGS+=	${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330
32
LDFLAGS+=	${LOCALBASE}/lib/libboost_python${PYTHON_SUFFIX}.so ${LOCALBASE}/lib/libiconv.so # fails to link libs: https://github.com/arvidn/libtorrent/issues/3330
32
33
33
WRKSRC_SUBDIR=	bindings/python
34
WRKSRC_SUBDIR=	bindings/python
34
35
35
# ensure python paths are correctly identified
36
# ensure python paths are correctly identified
36
CONFIGURE_ENV=	PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
37
CONFIGURE_ENV=	PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
37
		PYTHON_VERSION="${PYTHON_VERSION}"
38
		PYTHON_VERSION="${PYTHON_VERSION}"
38
39
39
PORTSCOUT=	limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does
40
PORTSCOUT=	limit:^1.* # 2.x is WIP and we don't accept it before qBittorrent does
40
41
42
PLIST_FILES+=	${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}/__init__${PYTHON_EXT_SUFFIX}.so
41
post-install:
43
post-install:
42
	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libtorrent*.so
44
	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_PKGNAME}/__init__${PYTHON_EXT_SUFFIX}.so
43
45
44
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)b/net-p2p/py-libtorrent-rasterbar/distinfo (-4 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1654714860
1
TIMESTAMP = 1667577329
2
SHA256 (arvidn-libtorrent-v1.2.16_GH0.tar.gz) = 2ee435c3e2e6dd8825903230b41fbaf0741b7aed57094f2ca0e6214d89fef9d4
2
SHA256 (arvidn-libtorrent-v1.2.18_GH0.tar.gz) = c4213bfb695db3e3b266be71865a7942f9007200aa4021946818fdc5e5e4a3d3
3
SIZE (arvidn-libtorrent-v1.2.16_GH0.tar.gz) = 3624920
3
SIZE (arvidn-libtorrent-v1.2.18_GH0.tar.gz) = 3633926
4
- 

Return to bug 264970