Update "libtorrent" package to version 0.13.2 and "rtorrent" package to version 0.9.2. A list of changes is not available unfortunately. But it seems that most of the Solaris related build fixes have been integrated.diff -r1.43 -r1.44 pkgsrc/net/libtorrent/Makefile
(tron)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2012/01/11 22:41:46 tron Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | DISTNAME= libtorrent-0.12.9 | 3 | DISTNAME= libtorrent-0.13.2 | |
4 | CATEGORIES= net | 4 | CATEGORIES= net | |
5 | MASTER_SITES= ${HOMEPAGE:=downloads/} | 5 | MASTER_SITES= ${HOMEPAGE:=downloads/} | |
6 | 6 | |||
7 | OWNER= tron@NetBSD.org | 7 | OWNER= tron@NetBSD.org | |
8 | HOMEPAGE= http://libtorrent.rakshasa.no/ | 8 | HOMEPAGE= http://libtorrent.rakshasa.no/ | |
9 | COMMENT= BitTorrent library written in C++ for *nix | 9 | COMMENT= BitTorrent library written in C++ for *nix | |
10 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
11 | 11 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 13 | |||
14 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
15 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
16 | USE_TOOLS+= gmake pkg-config | 16 | USE_TOOLS+= gmake pkg-config |
@@ -1,56 +1,63 @@ | @@ -1,56 +1,63 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.10 2011/07/30 17:06:33 tron Exp $ | 1 | @comment $NetBSD: PLIST,v 1.11 2012/05/16 17:42:37 tron Exp $ | |
2 | include/torrent/bitfield.h | 2 | include/torrent/bitfield.h | |
3 | include/torrent/chunk_manager.h | 3 | include/torrent/chunk_manager.h | |
4 | include/torrent/common.h | 4 | include/torrent/common.h | |
5 | include/torrent/connection_manager.h | 5 | include/torrent/connection_manager.h | |
6 | include/torrent/data/block.h | 6 | include/torrent/data/block.h | |
7 | include/torrent/data/block_list.h | 7 | include/torrent/data/block_list.h | |
8 | include/torrent/data/block_transfer.h | 8 | include/torrent/data/block_transfer.h | |
9 | include/torrent/data/chunk_utils.h | 9 | include/torrent/data/chunk_utils.h | |
10 | include/torrent/data/download_data.h | |||
10 | include/torrent/data/file.h | 11 | include/torrent/data/file.h | |
11 | include/torrent/data/file_list.h | 12 | include/torrent/data/file_list.h | |
12 | include/torrent/data/file_list_iterator.h | 13 | include/torrent/data/file_list_iterator.h | |
13 | include/torrent/data/file_manager.h | 14 | include/torrent/data/file_manager.h | |
14 | include/torrent/data/file_utils.h | 15 | include/torrent/data/file_utils.h | |
15 | include/torrent/data/piece.h | 16 | include/torrent/data/piece.h | |
16 | include/torrent/data/transfer_list.h | 17 | include/torrent/data/transfer_list.h | |
17 | include/torrent/dht_manager.h | 18 | include/torrent/dht_manager.h | |
18 | include/torrent/download.h | 19 | include/torrent/download.h | |
19 | include/torrent/download/choke_group.h | 20 | include/torrent/download/choke_group.h | |
20 | include/torrent/download/choke_queue.h | 21 | include/torrent/download/choke_queue.h | |
21 | include/torrent/download/download_manager.h | 22 | include/torrent/download/download_manager.h | |
23 | include/torrent/download/group_entry.h | |||
22 | include/torrent/download/resource_manager.h | 24 | include/torrent/download/resource_manager.h | |
23 | include/torrent/download_info.h | 25 | include/torrent/download_info.h | |
24 | include/torrent/error.h | 26 | include/torrent/error.h | |
25 | include/torrent/event.h | 27 | include/torrent/event.h | |
26 | include/torrent/exceptions.h | 28 | include/torrent/exceptions.h | |
27 | include/torrent/hash_string.h | 29 | include/torrent/hash_string.h | |
28 | include/torrent/http.h | 30 | include/torrent/http.h | |
29 | include/torrent/object.h | 31 | include/torrent/object.h | |
30 | include/torrent/object_raw_bencode.h | 32 | include/torrent/object_raw_bencode.h | |
31 | include/torrent/object_static_map.h | 33 | include/torrent/object_static_map.h | |
32 | include/torrent/object_stream.h | 34 | include/torrent/object_stream.h | |
33 | include/torrent/path.h | 35 | include/torrent/path.h | |
34 | include/torrent/peer/choke_status.h | 36 | include/torrent/peer/choke_status.h | |
35 | include/torrent/peer/client_info.h | 37 | include/torrent/peer/client_info.h | |
36 | include/torrent/peer/client_list.h | 38 | include/torrent/peer/client_list.h | |
37 | include/torrent/peer/connection_list.h | 39 | include/torrent/peer/connection_list.h | |
38 | include/torrent/peer/peer.h | 40 | include/torrent/peer/peer.h | |
39 | include/torrent/peer/peer_info.h | 41 | include/torrent/peer/peer_info.h | |
40 | include/torrent/peer/peer_list.h | 42 | include/torrent/peer/peer_list.h | |
41 | include/torrent/poll.h | 43 | include/torrent/poll.h | |
42 | include/torrent/poll_epoll.h | 44 | include/torrent/poll_epoll.h | |
43 | include/torrent/poll_kqueue.h | 45 | include/torrent/poll_kqueue.h | |
44 | include/torrent/poll_select.h | 46 | include/torrent/poll_select.h | |
45 | include/torrent/rate.h | 47 | include/torrent/rate.h | |
46 | include/torrent/thread_base.h | |||
47 | include/torrent/throttle.h | 48 | include/torrent/throttle.h | |
48 | include/torrent/torrent.h | 49 | include/torrent/torrent.h | |
49 | include/torrent/tracker.h | 50 | include/torrent/tracker.h | |
51 | include/torrent/tracker_controller.h | |||
50 | include/torrent/tracker_list.h | 52 | include/torrent/tracker_list.h | |
51 | include/torrent/utils/extents.h | 53 | include/torrent/utils/extents.h | |
54 | include/torrent/utils/log.h | |||
55 | include/torrent/utils/log_buffer.h | |||
52 | include/torrent/utils/log_files.h | 56 | include/torrent/utils/log_files.h | |
53 | include/torrent/utils/option_strings.h | 57 | include/torrent/utils/option_strings.h | |
58 | include/torrent/utils/ranges.h | |||
54 | include/torrent/utils/resume.h | 59 | include/torrent/utils/resume.h | |
60 | include/torrent/utils/signal_bitfield.h | |||
61 | include/torrent/utils/thread_base.h | |||
55 | lib/libtorrent.la | 62 | lib/libtorrent.la | |
56 | lib/pkgconfig/libtorrent.pc | 63 | lib/pkgconfig/libtorrent.pc |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.18 2011/08/01 21:42:45 tron Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.19 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= libtorrent | 3 | BUILDLINK_TREE+= libtorrent | |
4 | 4 | |||
5 | .if !defined(LIBTORRENT_BUILDLINK3_MK) | 5 | .if !defined(LIBTORRENT_BUILDLINK3_MK) | |
6 | LIBTORRENT_BUILDLINK3_MK:= | 6 | LIBTORRENT_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.libtorrent+= libtorrent>=0.12.9 | 8 | BUILDLINK_API_DEPENDS.libtorrent+= libtorrent>=0.13.2 | |
9 | BUILDLINK_ABI_DEPENDS.libtorrent+= libtorrent>=0.12.9 | 9 | BUILDLINK_ABI_DEPENDS.libtorrent+= libtorrent>=0.13.2 | |
10 | BUILDLINK_PKGSRCDIR.libtorrent?= ../../net/libtorrent | 10 | BUILDLINK_PKGSRCDIR.libtorrent?= ../../net/libtorrent | |
11 | 11 | |||
12 | .include "../../devel/libsigc++/buildlink3.mk" | 12 | .include "../../devel/libsigc++/buildlink3.mk" | |
13 | .include "../../security/openssl/buildlink3.mk" | 13 | .include "../../security/openssl/buildlink3.mk" | |
14 | .endif # LIBTORRENT_BUILDLINK3_MK | 14 | .endif # LIBTORRENT_BUILDLINK3_MK | |
15 | 15 | |||
16 | BUILDLINK_TREE+= -libtorrent | 16 | BUILDLINK_TREE+= -libtorrent |
@@ -1,6 +1,5 @@ | @@ -1,6 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.28 2011/07/30 17:06:33 tron Exp $ | 1 | $NetBSD: distinfo,v 1.29 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | SHA1 (libtorrent-0.12.9.tar.gz) = 176a836c6e685e4dad71ac08c0e09caaa5b7757c | 3 | SHA1 (libtorrent-0.13.2.tar.gz) = 4f34a744fbe10c54aaf53d34681fabc1a49d7257 | |
4 | RMD160 (libtorrent-0.12.9.tar.gz) = a898e882da94977973d62f34a5dd82577fd83cf5 | 4 | RMD160 (libtorrent-0.13.2.tar.gz) = 090e6af9b4318a6176064159f6a8f70ab708c7fe | |
5 | Size (libtorrent-0.12.9.tar.gz) = 667864 bytes | 5 | Size (libtorrent-0.13.2.tar.gz) = 725088 bytes | |
6 | SHA1 (patch-aa) = d864808b9e9524b3a7f72bcc1b465d4e6b2d4f4a |
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.49 2012/03/07 00:19:08 elric Exp $ | 1 | # $NetBSD: Makefile,v 1.50 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | DISTNAME= rtorrent-0.8.9 | 3 | DISTNAME= rtorrent-0.9.2 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= net | 4 | CATEGORIES= net | |
6 | MASTER_SITES= ${HOMEPAGE:=downloads/} | 5 | MASTER_SITES= ${HOMEPAGE:=downloads/} | |
7 | 6 | |||
8 | OWNER= tron@NetBSD.org | 7 | OWNER= tron@NetBSD.org | |
9 | HOMEPAGE= http://libtorrent.rakshasa.no/ | 8 | HOMEPAGE= http://libtorrent.rakshasa.no/ | |
10 | COMMENT= Ncurses based torrent client with support for sessions | 9 | COMMENT= Ncurses based torrent client with support for sessions | |
11 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
12 | 11 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 13 | |||
15 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
16 | USE_LIBTOOL= yes | 15 | USE_LIBTOOL= yes | |
17 | USE_NCURSES= yes # chgat | 16 | USE_NCURSES= yes # chgat | |
@@ -23,30 +22,26 @@ GNU_CONFIGURE= yes | @@ -23,30 +22,26 @@ GNU_CONFIGURE= yes | |||
23 | ${MACHINE_ARCH} == "i386" || \ | 22 | ${MACHINE_ARCH} == "i386" || \ | |
24 | ${MACHINE_ARCH} == "powerpc" || \ | 23 | ${MACHINE_ARCH} == "powerpc" || \ | |
25 | ${MACHINE_ARCH} == "x86_64" | 24 | ${MACHINE_ARCH} == "x86_64" | |
26 | GCC_REQD+= 4.1.3 | 25 | GCC_REQD+= 4.1.3 | |
27 | .else | 26 | .else | |
28 | GCC_REQD+= 4.2.1 | 27 | GCC_REQD+= 4.2.1 | |
29 | .endif | 28 | .endif | |
30 | 29 | |||
31 | .include "../../mk/pthread.buildlink3.mk" | 30 | .include "../../mk/pthread.buildlink3.mk" | |
32 | LDFLAGS+= ${PTHREAD_LDFLAGS} | 31 | LDFLAGS+= ${PTHREAD_LDFLAGS} | |
33 | 32 | |||
34 | .include "options.mk" | 33 | .include "options.mk" | |
35 | 34 | |||
36 | .if !empty(OPSYS:M*BSD) || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" | |||
37 | MESSAGE_SRC= ${PKGDIR}/MESSAGE.BSD | |||
38 | .endif | |||
39 | ||||
40 | # See http://libtorrent.rakshasa.no/ticket/77 | 35 | # See http://libtorrent.rakshasa.no/ticket/77 | |
41 | .include "../../mk/compiler.mk" | 36 | .include "../../mk/compiler.mk" | |
42 | .if !empty(CC_VERSION:Mgcc-4.0.*) | 37 | .if !empty(CC_VERSION:Mgcc-4.0.*) | |
43 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | 38 | CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \ | |
44 | -fno-inline -fforce-addr | 39 | -fno-inline -fforce-addr | |
45 | .endif | 40 | .endif | |
46 | 41 | |||
47 | .if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86) | 42 | .if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86) | |
48 | CXXFLAGS+= -march=i486 | 43 | CXXFLAGS+= -march=i486 | |
49 | .endif | 44 | .endif | |
50 | 45 | |||
51 | INSTALLATION_DIRS= share/examples/rtorrent | 46 | INSTALLATION_DIRS= share/examples/rtorrent | |
52 | 47 |
@@ -1,12 +1,10 @@ | @@ -1,12 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.28 2011/08/01 13:12:38 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.29 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | SHA1 (rtorrent-0.8.9.tar.gz) = 0ac51c185e98b5a386e5f1a07bca9a9963e2d6ce | 3 | SHA1 (rtorrent-0.9.2.tar.gz) = 2a642d722745091265037ed8929a23c237a3b99f | |
4 | RMD160 (rtorrent-0.8.9.tar.gz) = d79eacf6d63d13514c07c1c35a662fea5f35aef1 | 4 | RMD160 (rtorrent-0.9.2.tar.gz) = 130a4c7f3bd018f7247d4561170d6878ab7a120f | |
5 | Size (rtorrent-0.8.9.tar.gz) = 570904 bytes | 5 | Size (rtorrent-0.9.2.tar.gz) = 591837 bytes | |
6 | SHA1 (patch-aa) = ef8edceb33f28e022e3d48706c30733ac3a730a3 | |||
7 | SHA1 (patch-ab) = 87873bb32166d00398ab0ef6421a6fe85a55c914 | 6 | SHA1 (patch-ab) = 87873bb32166d00398ab0ef6421a6fe85a55c914 | |
8 | SHA1 (patch-ac) = b62de9ce834aa0422ec173e694d07e88aa1e2f47 | 7 | SHA1 (patch-ad) = ffc72a4020614f5879a050c0399c10d6f85cbdf0 | |
9 | SHA1 (patch-ad) = 04fafec083c7cb27eb2f5ef7fbc5f6ab2e4e4a55 | 8 | SHA1 (patch-ae) = a370881bfdd8534eb25fcbcff8d258b19797941f | |
10 | SHA1 (patch-ae) = 49cb5e84f3759febfc93df874a10c90cafc249d8 | |||
11 | SHA1 (patch-af) = 842a01cbc75e61092b4d33fe9155a728e7c502e6 | 9 | SHA1 (patch-af) = 842a01cbc75e61092b4d33fe9155a728e7c502e6 | |
12 | SHA1 (patch-ag) = 381b100d2ae711114b24c4de2a4bf612efe31766 | 10 | SHA1 (patch-ag) = b7e5fe242b19f994f013acc9ec54a65fed729c29 |
@@ -1,45 +1,25 @@ | @@ -1,45 +1,25 @@ | |||
1 | $NetBSD: patch-ad,v 1.2 2008/12/16 16:49:52 tron Exp $ | 1 | $NetBSD: patch-ad,v 1.3 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | --- src/utils/directory.cc.orig 2008-05-07 13:19:11.000000000 +0100 | 3 | Fix build under Solaris and DragonFly. | |
4 | +++ src/utils/directory.cc 2008-12-16 16:45:58.000000000 +0000 | 4 | ||
5 | --- src/utils/directory.cc.orig 2012-03-29 14:06:11.000000000 +0100 | |||
6 | +++ src/utils/directory.cc 2012-05-14 23:44:08.000000000 +0100 | |||
5 | @@ -38,6 +38,7 @@ | 7 | @@ -38,6 +38,7 @@ | |
6 | 8 | |||
7 | #include <algorithm> | 9 | #include <algorithm> | |
8 | #include <functional> | 10 | #include <functional> | |
9 | +#include <sys/stat.h> | 11 | +#include <sys/stat.h> | |
10 | #include <dirent.h> | 12 | #include <dirent.h> | |
11 | #include <rak/path.h> | 13 | #include <rak/path.h> | |
12 | #include <torrent/exceptions.h> | 14 | #include <torrent/exceptions.h> | |
13 | @@ -63,7 +64,9 @@ | 15 | @@ -67,7 +68,9 @@ | |
14 | if (m_path.empty()) | 16 | if (m_path.empty()) | |
15 | throw torrent::input_error("Directory::update() tried to open an empty path."); | 17 | throw torrent::input_error("Directory::update() tried to open an empty path."); | |
16 | 18 | |||
17 | - DIR* d = opendir(rak::path_expand(m_path).c_str()); | 19 | - DIR* d = opendir(rak::path_expand(m_path).c_str()); | |
18 | + std::string path=rak::path_expand(m_path); | 20 | + std::string path=rak::path_expand(m_path); | |
19 | + | 21 | + | |
20 | + DIR* d = opendir(path.c_str()); | 22 | + DIR* d = opendir(path.c_str()); | |
21 | 23 | |||
22 | if (d == NULL) | 24 | if (d == NULL) | |
23 | return false; | 25 | return false; | |
24 | @@ -73,12 +76,18 @@ | |||
25 | while ((entry = readdir(d)) != NULL) { | |||
26 | if ((flags & update_hide_dot) && entry->d_name[0] == '.') | |||
27 | continue; | |||
28 | + | |||
29 | + std::string full_path = path + '/'; | |||
30 | + full_path += entry->d_name; | |||
31 | + | |||
32 | + struct stat sb; | |||
33 | + if (stat(full_path.c_str(), &sb)) | |||
34 | + continue; | |||
35 | ||||
36 | iterator itr = base_type::insert(end(), value_type()); | |||
37 | ||||
38 | - itr->d_fileno = entry->d_fileno; | |||
39 | - itr->d_reclen = entry->d_reclen; | |||
40 | - itr->d_type = entry->d_type; | |||
41 | + itr->d_fileno = sb.st_ino; | |||
42 | + itr->d_type = sb.st_mode; | |||
43 | ||||
44 | #ifdef DIRENT_NAMLEN_EXISTS_FOOBAR | |||
45 | itr->d_name = std::string(entry->d_name, entry->d_name + entry->d_namlen); |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | $NetBSD: patch-ae,v 1.2 2008/12/16 16:49:52 tron Exp $ | 1 | $NetBSD: patch-ae,v 1.3 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | --- src/utils/directory.h.orig 2008-05-07 13:19:11.000000000 +0100 | 3 | Fix build under Solaris and DragonFly. | |
4 | +++ src/utils/directory.h 2008-12-16 16:45:58.000000000 +0000 | 4 | ||
5 | @@ -49,8 +49,7 @@ | 5 | --- src/utils/directory.h.orig 2012-03-29 14:06:11.000000000 +0100 | |
6 | 6 | +++ src/utils/directory.h 2012-05-14 23:40:30.000000000 +0100 | ||
7 | @@ -50,7 +50,7 @@ | |||
7 | // The name and types should match POSIX. | 8 | // The name and types should match POSIX. | |
8 | uint32_t d_fileno; | 9 | uint32_t d_fileno; | |
9 | - uint32_t d_reclen; | 10 | uint32_t d_reclen; //Not used. Messes with Solaris. | |
10 | - uint8_t d_type; | 11 | - uint8_t d_type; | |
11 | + uint32_t d_type; | 12 | + uint32_t d_type; | |
12 | 13 | |||
13 | std::string d_name; | 14 | std::string d_name; | |
14 | }; | 15 | }; |
@@ -1,24 +1,25 @@ | @@ -1,24 +1,25 @@ | |||
1 | $NetBSD: patch-ag,v 1.1 2011/07/30 17:06:33 tron Exp $ | 1 | $NetBSD: patch-ag,v 1.2 2012/05/16 17:42:37 tron Exp $ | |
2 | 2 | |||
3 | Fix handling of command line options. Please look here for details: | 3 | Fix handling of command line options. Please look here for details: | |
4 | 4 | |||
5 | http://libtorrent.rakshasa.no/ticket/2657 | 5 | http://libtorrent.rakshasa.no/ticket/2657 | |
6 | 6 | |||
7 | --- src/main.cc.orig 2011-06-12 07:43:04.000000000 +0100 | 7 | --- src/main.cc.orig 2012-03-20 15:09:58.000000000 +0000 | |
8 | +++ src/main.cc 2011-07-30 17:21:50.000000000 +0100 | 8 | +++ src/main.cc 2012-05-14 23:44:41.000000000 +0100 | |
9 | @@ -822,13 +822,13 @@ | 9 | @@ -843,14 +843,14 @@ | |
10 | } | 10 | } | |
11 | #endif | 11 | #endif | |
12 | 12 | |||
13 | - int firstArg = parse_options(control, argc, argv); | 13 | - int firstArg = parse_options(control, argc, argv); | |
14 | - | 14 | - | |
15 | if (OptionParser::has_flag('n', argc, argv)) | 15 | if (OptionParser::has_flag('n', argc, argv)) { | |
16 | control->core()->push_log("Ignoring ~/.rtorrent.rc."); | 16 | lt_log_print(torrent::LOG_WARN, "Ignoring ~/.rtorrent.rc."); | |
17 | else | 17 | } else { | |
18 | rpc::parse_command_single(rpc::make_target(), "try_import = ~/.rtorrent.rc"); | 18 | rpc::parse_command_single(rpc::make_target(), "try_import = ~/.rtorrent.rc"); | |
19 | } | |||
19 | 20 | |||
20 | + int firstArg = parse_options(control, argc, argv); | 21 | + int firstArg = parse_options(control, argc, argv); | |
21 | + | 22 | + | |
22 | control->initialize(); | 23 | control->initialize(); | |
23 | 24 | |||
24 | // Load session torrents and perform scheduled tasks to ensure | 25 | // Load session torrents and perform scheduled tasks to ensure |