pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/rtorrent Add patch from <http://libtorrent.rakshas...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f79ad86b0ec
branches:  trunk
changeset: 551059:8f79ad86b0ec
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Dec 05 16:31:52 2008 +0000

description:
Add patch from <http://libtorrent.rakshasa.no/ticket/1184> to fix the build
under Solaris and DragonFly. Patch provided by Rumko in private e-mail.

diffstat:

 net/rtorrent/distinfo         |   5 +++-
 net/rtorrent/patches/patch-ac |  22 +++++++++++++++++++++
 net/rtorrent/patches/patch-ad |  44 +++++++++++++++++++++++++++++++++++++++++++
 net/rtorrent/patches/patch-ae |  13 ++++++++++++
 4 files changed, 83 insertions(+), 1 deletions(-)

diffs (105 lines):

diff -r 823e540b186a -r 8f79ad86b0ec net/rtorrent/distinfo
--- a/net/rtorrent/distinfo     Fri Dec 05 15:45:01 2008 +0000
+++ b/net/rtorrent/distinfo     Fri Dec 05 16:31:52 2008 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.18 2008/12/03 12:57:40 tron Exp $
+$NetBSD: distinfo,v 1.19 2008/12/05 16:31:52 tron Exp $
 
 SHA1 (rtorrent-0.8.2.tar.gz) = 891093c5d600c2e3853eadbbec369a12dfe6ec11
 RMD160 (rtorrent-0.8.2.tar.gz) = e86b0082d1788e4e7cd8fcf631f7f857d642c799
 Size (rtorrent-0.8.2.tar.gz) = 506015 bytes
 SHA1 (patch-ab) = 87873bb32166d00398ab0ef6421a6fe85a55c914
+SHA1 (patch-ac) = b62de9ce834aa0422ec173e694d07e88aa1e2f47
+SHA1 (patch-ad) = 902a95e7edcd4f1f6c4cebe04c28e5ddefc650cf
+SHA1 (patch-ae) = cd24c34d28d1c15f028a3ba7b786e40592c7a395
diff -r 823e540b186a -r 8f79ad86b0ec net/rtorrent/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-ac     Fri Dec 05 16:31:52 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 2008/12/05 16:31:52 tron Exp $
+
+--- src/input/path_input.cc.orig       2008-12-05 13:19:28 +0100
++++ src/input/path_input.cc    2008-12-05 13:25:19 +0100
+@@ -42,7 +42,7 @@
+ #include <rak/path.h>
+ 
+ #include <sys/types.h>
+-#include <sys/dir.h>
++#include <sys/stat.h>
+ 
+ #include "path_input.h"
+ 
+@@ -72,7 +72,7 @@
+ 
+ struct _transform_filename {
+   void operator () (utils::directory_entry& entry) {
+-    if (entry.d_type == DT_DIR)
++    if (S_ISDIR(entry.d_type))
+       entry.d_name += '/';
+   }
+ };
diff -r 823e540b186a -r 8f79ad86b0ec net/rtorrent/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-ad     Fri Dec 05 16:31:52 2008 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-ad,v 1.1 2008/12/05 16:31:52 tron Exp $
+
+--- src/utils/directory.cc.orig        2008-12-05 13:20:16 +0100
++++ src/utils/directory.cc     2008-12-05 13:27:27 +0100
+@@ -38,6 +38,7 @@
+ 
+ #include <algorithm>
+ #include <functional>
++#include <sys/stat.h>
+ #include <dirent.h>
+ #include <rak/path.h>
+ #include <torrent/exceptions.h>
+@@ -63,6 +64,8 @@
+   if (m_path.empty())
+     throw torrent::input_error("Directory::update() tried to open an empty path.");
+ 
++  std::string path=rak::path_expand(m_path);
++
+-  DIR* d = opendir(rak::path_expand(m_path).c_str());
++  DIR* d = opendir(path.c_str());
+ 
+   if (d == NULL)
+@@ -73,12 +76,18 @@
+   while ((entry = readdir(d)) != NULL) {
+     if ((flags & update_hide_dot) && entry->d_name[0] == '.')
+       continue;
++    
++    std::string full_path = path + '/';
++    full_path += entry->d_name;
++    
++    struct stat sb;
++    if (stat(full_path.c_str(), &sb))
++      continue;
+ 
+     iterator itr = base_type::insert(end(), value_type());
+ 
+-    itr->d_fileno = entry->d_fileno;
+-    itr->d_reclen = entry->d_reclen;
+-    itr->d_type   = entry->d_type;
++    itr->d_fileno = sb.st_ino;
++    itr->d_type   = sb.st_mode;
+ 
+ #ifdef DIRENT_NAMLEN_EXISTS_FOOBAR
+     itr->d_name   = std::string(entry->d_name, entry->d_name + entry->d_namlen);
diff -r 823e540b186a -r 8f79ad86b0ec net/rtorrent/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-ae     Fri Dec 05 16:31:52 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2008/12/05 16:31:52 tron Exp $
+
+--- src/utils/directory.h.orig 2008-12-05 13:22:18 +0100
++++ src/utils/directory.h      2008-12-05 13:22:24 +0100
+@@ -49,7 +49,6 @@
+ 
+   // The name and types should match POSIX.
+   uint32_t            d_fileno;
+-  uint32_t            d_reclen;
+-  uint8_t             d_type;
++  uint32_t            d_type;
+ 
+   std::string         d_name;



Home | Main Index | Thread Index | Old Index