rpms/libtorrent/devel libtorrent-0.12.4-gcc44.diff, NONE, 1.1 libtorrent.spec, 1.30, 1.31

Conrad Meyer konradm at fedoraproject.org
Fri Feb 27 16:08:26 UTC 2009


Author: konradm

Update of /cvs/pkgs/rpms/libtorrent/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7698

Modified Files:
	libtorrent.spec 
Added Files:
	libtorrent-0.12.4-gcc44.diff 
Log Message:
* Fri Feb 27 2009 Conrad Meyer <konrad at tylerc.org> - 0.12.4-4
- Fix FTBFS.


libtorrent-0.12.4-gcc44.diff:

--- NEW FILE libtorrent-0.12.4-gcc44.diff ---
diff -urN libtorrent-0.12.4.orig/src/protocol/extensions.cc libtorrent-0.12.4/src/protocol/extensions.cc
--- libtorrent-0.12.4.orig/src/protocol/extensions.cc	2008-08-26 13:15:15.000000000 -0700
+++ libtorrent-0.12.4/src/protocol/extensions.cc	2009-02-27 07:53:45.000000000 -0800
@@ -36,6 +36,8 @@
 
 #include "config.h"
 
+#include <cstdio>
+
 #include <limits>
 #include <sstream>
 
diff -urN libtorrent-0.12.4.orig/src/protocol/handshake.cc libtorrent-0.12.4/src/protocol/handshake.cc
--- libtorrent-0.12.4.orig/src/protocol/handshake.cc	2008-11-10 18:39:23.000000000 -0800
+++ libtorrent-0.12.4/src/protocol/handshake.cc	2009-02-27 07:54:00.000000000 -0800
@@ -36,6 +36,8 @@
 
 #include "config.h"
 
+#include <cstdio>
+
 #include "download/download_info.h"
 #include "download/download_main.h"
 #include "net/throttle_list.h"
diff -urN libtorrent-0.12.4.orig/src/torrent/poll_epoll.cc libtorrent-0.12.4/src/torrent/poll_epoll.cc
--- libtorrent-0.12.4.orig/src/torrent/poll_epoll.cc	2008-10-28 04:49:47.000000000 -0700
+++ libtorrent-0.12.4/src/torrent/poll_epoll.cc	2009-02-27 07:52:16.000000000 -0800
@@ -38,6 +38,7 @@
 
 #include <cerrno>
 #include <cstring>
+#include <cstdio>
 
 #include <unistd.h>
 #include <torrent/exceptions.h>
diff -urN libtorrent-0.12.4.orig/src/tracker/tracker_dht.cc libtorrent-0.12.4/src/tracker/tracker_dht.cc
--- libtorrent-0.12.4.orig/src/tracker/tracker_dht.cc	2008-08-26 13:18:34.000000000 -0700
+++ libtorrent-0.12.4/src/tracker/tracker_dht.cc	2009-02-27 07:54:41.000000000 -0800
@@ -36,6 +36,7 @@
 
 #include "config.h"
 
+#include <cstdio>
 #include <sstream>
 
 #include "dht/dht_router.h"
diff -urN libtorrent-0.12.4.orig/src/tracker/tracker_udp.cc libtorrent-0.12.4/src/tracker/tracker_udp.cc
--- libtorrent-0.12.4.orig/src/tracker/tracker_udp.cc	2008-05-07 05:19:13.000000000 -0700
+++ libtorrent-0.12.4/src/tracker/tracker_udp.cc	2009-02-27 08:03:20.000000000 -0800
@@ -36,6 +36,8 @@
 
 #include "config.h"
 
+#include <cstdio>
+
 #include <sigc++/adaptors/bind.h>
 #include <torrent/connection_manager.h>
 


Index: libtorrent.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libtorrent/devel/libtorrent.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- libtorrent.spec	25 Feb 2009 19:31:59 -0000	1.30
+++ libtorrent.spec	27 Feb 2009 16:07:54 -0000	1.31
@@ -2,10 +2,12 @@
 License:       GPLv2+
 Group:         System Environment/Libraries
 Version:       0.12.4
-Release:       3%{?dist}
+Release:       4%{?dist}
 Summary:       BitTorrent library with a focus on high performance & good code
 URL:           http://libtorrent.rakshasa.no/
 Source0:       http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz
+# Patch to include the missing required C headers in GCC 4.4
+Patch0:        libtorrent-0.12.4-gcc44.diff
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: pkgconfig
 BuildRequires: openssl-devel
@@ -29,6 +31,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # work around a bug thats triggered by gcc 4.1
@@ -63,6 +66,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Fri Feb 27 2009 Conrad Meyer <konrad at tylerc.org> - 0.12.4-4
+- Fix FTBFS.
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.4-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list