summaryrefslogtreecommitdiffstats
path: root/ftp-libs/libtorrent
diff options
context:
space:
mode:
authorEric Sandall2008-03-22 17:42:39 -0700
committerEric Sandall2008-03-22 18:01:50 -0700
commitda6f8e1b7b20a77bca36d9aa6a6451afff309d85 (patch)
tree36d4934358c9e5c27021554410f5bcc0387d5585 /ftp-libs/libtorrent
parentc20ade77e07a7674dec666e572e22dd0449ffd3b (diff)
libtorrent: Added patch to compile with gcc 4.3.0
Diffstat (limited to 'ftp-libs/libtorrent')
-rw-r--r--ftp-libs/libtorrent/HISTORY7
-rwxr-xr-xftp-libs/libtorrent/PRE_BUILD8
-rw-r--r--ftp-libs/libtorrent/gcc43.patch111
3 files changed, 121 insertions, 5 deletions
diff --git a/ftp-libs/libtorrent/HISTORY b/ftp-libs/libtorrent/HISTORY
index ed914085e6..2a3f41851f 100644
--- a/ftp-libs/libtorrent/HISTORY
+++ b/ftp-libs/libtorrent/HISTORY
@@ -1,6 +1,11 @@
+2008-03-22 Eric Sandall <sandalle@sourcemage.org>
+ * PRE_BUILD: Apply gcc43.patch
+ * gcc43.patch: Upstream patch to fix compilation with gcc 4.3.0
+ From http://libtorrent.rakshasa.no/ticket/1266
+
2008-01-31 Mathieu Lonjaret <lejatorn@sourcemage.org>
* PRE_BUILD, rm CONFIGURE, dht.diff, PRE_SUB_DEPENDS, and SUB_DEPENDS
- because dht support now built-in.
+ because dht support now built-in.
2008-01-31 Mathieu Lonjaret <lejatorn@sourcemage.org>
* DETAILS: update to 0.12.0
diff --git a/ftp-libs/libtorrent/PRE_BUILD b/ftp-libs/libtorrent/PRE_BUILD
index 8d44878599..302a7234eb 100755
--- a/ftp-libs/libtorrent/PRE_BUILD
+++ b/ftp-libs/libtorrent/PRE_BUILD
@@ -1,5 +1,5 @@
-default_pre_build &&
-cd ${SOURCE_DIRECTORY} &&
+default_pre_build &&
+cd ${SOURCE_DIRECTORY} &&
# fix problems on amd64 with libtool versions (bug #13943)
-./autogen.sh
-
+patch -p1 < $SCRIPT_DIRECTORY/gcc43.patch &&
+./autogen.sh
diff --git a/ftp-libs/libtorrent/gcc43.patch b/ftp-libs/libtorrent/gcc43.patch
new file mode 100644
index 0000000000..a2d61472d3
--- /dev/null
+++ b/ftp-libs/libtorrent/gcc43.patch
@@ -0,0 +1,111 @@
+#
+# From http://libtorrent.rakshasa.no/ticket/1266
+#
+[Libtorrent-devel] fix building with gcc 4.3 and above
+Serge Belyshev belyshev at depni.sinp.msu.ru
+Fri Feb 29 07:30:00 UTC 2008
+
+ * Previous message: [Libtorrent-devel] Total incoming incorrect
+ * Next message: [Libtorrent-devel] fix building rtorrent HEAD without xmlrpc
+ * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
+
+In gcc 4.3 header dependencies were cleaned up, so libtorrent/rtorrent
+do not build anymore. Fixed by the following patches, for libtorrent:
+
+Index: libtorrent-0.12.0/rak/functional.h
+===================================================================
+--- libtorrent-0.12.0.orig/rak/functional.h
++++ libtorrent-0.12.0/rak/functional.h
+@@ -37,6 +37,7 @@
+ #ifndef RAK_FUNCTIONAL_H
+ #define RAK_FUNCTIONAL_H
+
++#include <stddef.h>
+ #include <functional>
+
+ namespace rak {
+Index: libtorrent-0.12.0/src/data/chunk.cc
+===================================================================
+--- libtorrent-0.12.0.orig/src/data/chunk.cc
++++ libtorrent-0.12.0/src/data/chunk.cc
+@@ -38,6 +38,7 @@
+
+ #include <algorithm>
+ #include <functional>
++#include <cstring>
+
+ #include "torrent/exceptions.h"
+
+Index: libtorrent-0.12.0/src/data/chunk_list.h
+===================================================================
+--- libtorrent-0.12.0.orig/src/data/chunk_list.h
++++ libtorrent-0.12.0/src/data/chunk_list.h
+@@ -38,6 +38,7 @@
+ #define LIBTORRENT_DATA_CHUNK_LIST_H
+
+ #include <vector>
++#include <string>
+ #include <rak/error_number.h>
+ #include <rak/functional.h>
+
+Index: libtorrent-0.12.0/src/net/address_list.cc
+===================================================================
+--- libtorrent-0.12.0.orig/src/net/address_list.cc
++++ libtorrent-0.12.0/src/net/address_list.cc
+@@ -37,6 +37,7 @@
+ #include "config.h"
+
+ #include <rak/functional.h>
++#include <algorithm>
+
+ #include "download/download_info.h" // for SocketAddressCompact
+
+Index: libtorrent-0.12.0/src/torrent/data/file_list.h
+===================================================================
+--- libtorrent-0.12.0.orig/src/torrent/data/file_list.h
++++ libtorrent-0.12.0/src/torrent/data/file_list.h
+@@ -38,6 +38,7 @@
+ #define LIBTORRENT_FILE_LIST_H
+
+ #include <vector>
++#include <cstdlib>
+ #include <torrent/common.h>
+ #include <torrent/bitfield.h>
+ #include <torrent/path.h>
+Index: libtorrent-0.12.0/src/torrent/exceptions.cc
+===================================================================
+--- libtorrent-0.12.0.orig/src/torrent/exceptions.cc
++++ libtorrent-0.12.0/src/torrent/exceptions.cc
+@@ -37,6 +37,7 @@
+ #include "config.h"
+
+ #include <cerrno>
++#include <cstring>
+
+ #include "exceptions.h"
+
+Index: libtorrent-0.12.0/src/torrent/tracker_list.h
+===================================================================
+--- libtorrent-0.12.0.orig/src/torrent/tracker_list.h
++++ libtorrent-0.12.0/src/torrent/tracker_list.h
+@@ -40,6 +40,7 @@
+ #include <algorithm>
+ #include <vector>
+ #include <torrent/common.h>
++#include <string>
+
+ namespace torrent {
+
+Index: libtorrent-0.12.0/src/utils/diffie_hellman.cc
+===================================================================
+--- libtorrent-0.12.0.orig/src/utils/diffie_hellman.cc
++++ libtorrent-0.12.0/src/utils/diffie_hellman.cc
+@@ -37,6 +37,7 @@
+ #include "config.h"
+
+ #include <string>
++#include <cstring>
+
+ #ifdef USE_OPENSSL
+ #include <openssl/bn.h>
+