pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Add two patches taken from "xnet.fi" to fix the bu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b2d798ec041f
branches: trunk
changeset: 557065:b2d798ec041f
user: tron <tron%pkgsrc.org@localhost>
date: Fri Apr 10 09:06:20 2009 +0000
description:
Add two patches taken from "xnet.fi" to fix the build under SunOS 5.11
(and eventually older versions). Problem reported by Tom Hensel in
private e-mail.
diffstat:
net/libtorrent/Makefile | 4 +++-
net/libtorrent/distinfo | 3 ++-
net/libtorrent/patches/patch-aa | 15 +++++++++++++++
net/rtorrent/Makefile | 4 +++-
net/rtorrent/distinfo | 3 ++-
net/rtorrent/patches/patch-aa | 17 +++++++++++++++++
6 files changed, 42 insertions(+), 4 deletions(-)
diffs (101 lines):
diff -r 3ddbb12dd42f -r b2d798ec041f net/libtorrent/Makefile
--- a/net/libtorrent/Makefile Fri Apr 10 09:05:25 2009 +0000
+++ b/net/libtorrent/Makefile Fri Apr 10 09:06:20 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/12/03 12:57:40 tron Exp $
+# $NetBSD: Makefile,v 1.30 2009/04/10 09:06:20 tron Exp $
DISTNAME= libtorrent-0.12.2
CATEGORIES= net
@@ -8,6 +8,8 @@
HOMEPAGE= http://libtorrent.rakshasa.no/
COMMENT= BitTorrent library written in C++ for *nix
+LICENSE= gnu-gpl-v2
+
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
diff -r 3ddbb12dd42f -r b2d798ec041f net/libtorrent/distinfo
--- a/net/libtorrent/distinfo Fri Apr 10 09:05:25 2009 +0000
+++ b/net/libtorrent/distinfo Fri Apr 10 09:06:20 2009 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.21 2008/12/03 12:57:40 tron Exp $
+$NetBSD: distinfo,v 1.22 2009/04/10 09:06:20 tron Exp $
SHA1 (libtorrent-0.12.2.tar.gz) = a53d2c671e9f2dd971d0622d5b3672da91c46ef9
RMD160 (libtorrent-0.12.2.tar.gz) = 88cdc415f98afd8b87fa6d7330906737c3e434fa
Size (libtorrent-0.12.2.tar.gz) = 585374 bytes
+SHA1 (patch-aa) = d864808b9e9524b3a7f72bcc1b465d4e6b2d4f4a
diff -r 3ddbb12dd42f -r b2d798ec041f net/libtorrent/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libtorrent/patches/patch-aa Fri Apr 10 09:06:20 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.8 2009/04/10 09:06:20 tron Exp $
+
+--- src/data/memory_chunk.cc.orig 2008-05-07 13:19:13.000000000 +0100
++++ src/data/memory_chunk.cc 2009-04-10 09:37:20.000000000 +0100
+@@ -46,6 +46,10 @@
+ #include "torrent/exceptions.h"
+ #include "memory_chunk.h"
+
++#if defined(sun) || defined(__sun)
++extern "C" int madvise(void *addr, size_t len, int behav);
++#endif /* sun || __sun */
++
+ namespace torrent {
+
+ uint32_t MemoryChunk::m_pagesize = getpagesize();
diff -r 3ddbb12dd42f -r b2d798ec041f net/rtorrent/Makefile
--- a/net/rtorrent/Makefile Fri Apr 10 09:05:25 2009 +0000
+++ b/net/rtorrent/Makefile Fri Apr 10 09:06:20 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/12/03 12:57:40 tron Exp $
+# $NetBSD: Makefile,v 1.30 2009/04/10 09:06:20 tron Exp $
DISTNAME= rtorrent-0.8.2
CATEGORIES= net
@@ -8,6 +8,8 @@
HOMEPAGE= http://libtorrent.rakshasa.no/
COMMENT= Ncurses based torrent client with support for sessions
+LICENSE= gnu-gpl-v2
+
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
diff -r 3ddbb12dd42f -r b2d798ec041f net/rtorrent/distinfo
--- a/net/rtorrent/distinfo Fri Apr 10 09:05:25 2009 +0000
+++ b/net/rtorrent/distinfo Fri Apr 10 09:06:20 2009 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.20 2008/12/16 16:49:52 tron Exp $
+$NetBSD: distinfo,v 1.21 2009/04/10 09:06:20 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-aa) = ef8edceb33f28e022e3d48706c30733ac3a730a3
SHA1 (patch-ab) = 87873bb32166d00398ab0ef6421a6fe85a55c914
SHA1 (patch-ac) = b62de9ce834aa0422ec173e694d07e88aa1e2f47
SHA1 (patch-ad) = 04fafec083c7cb27eb2f5ef7fbc5f6ab2e4e4a55
diff -r 3ddbb12dd42f -r b2d798ec041f net/rtorrent/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rtorrent/patches/patch-aa Fri Apr 10 09:06:20 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.7 2009/04/10 09:06:21 tron Exp $
+
+--- src/rpc/scgi.cc.orig 2008-05-07 13:19:10.000000000 +0100
++++ src/rpc/scgi.cc 2009-04-10 09:45:10.000000000 +0100
+@@ -88,7 +88,12 @@
+ char buffer[sizeof(sockaddr_un) + filename.size()];
+ sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
+
++#if defined(sun) || defined(__sun)
++ sa->sun_family = AF_UNIX;
++#else
+ sa->sun_family = AF_LOCAL;
++#endif
++
+ std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
+
+ if (!get_fd().open_local())
Home |
Main Index |
Thread Index |
Old Index