diff --git a/libtorrent-rasterbar-boost-time_utc.patch b/libtorrent-rasterbar-boost-time_utc.patch new file mode 100644 index 0000000..5473978 --- /dev/null +++ b/libtorrent-rasterbar-boost-time_utc.patch @@ -0,0 +1,26 @@ +Index: libtorrent-rasterbar-0.15.10/src/alert.cpp +=================================================================== +--- libtorrent-rasterbar-0.15.10.orig/src/alert.cpp ++++ libtorrent-rasterbar-0.15.10/src/alert.cpp +@@ -68,7 +68,7 @@ namespace libtorrent { + int secs = total_seconds(max_wait); + max_wait -= seconds(secs); + boost::xtime xt; +- boost::xtime_get(&xt, boost::TIME_UTC); ++ boost::xtime_get(&xt, boost::TIME_UTC_); + xt.sec += secs; + boost::int64_t nsec = xt.nsec + total_microseconds(max_wait) * 1000; + if (nsec > 1000000000) +Index: libtorrent-rasterbar-0.15.10/test/setup_transfer.cpp +=================================================================== +--- libtorrent-rasterbar-0.15.10.orig/test/setup_transfer.cpp ++++ libtorrent-rasterbar-0.15.10/test/setup_transfer.cpp +@@ -109,7 +109,7 @@ bool print_alerts(libtorrent::session& s + void test_sleep(int millisec) + { + boost::xtime xt; +- boost::xtime_get(&xt, boost::TIME_UTC); ++ boost::xtime_get(&xt, boost::TIME_UTC_); + boost::uint64_t nanosec = (millisec % 1000) * 1000000 + xt.nsec; + int sec = millisec / 1000; + if (nanosec > 1000000000) diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index f7d35db..c9b5d01 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 3 09:23:46 UTC 2012 - aj@suse.de + +- Fix build with updated boost + ------------------------------------------------------------------- Tue Mar 27 13:29:53 UTC 2012 - fisiu@opensuse.org diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index 72a610b..3c5d5ce 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -31,6 +31,7 @@ Group: Development/Libraries/C and C++ Url: http://www.rasterbar.com/products/libtorrent/ Source: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz Patch0: libtorrent-rasterbar-0.15.9-missing-return.patch +Patch1: libtorrent-rasterbar-boost-time_utc.patch BuildRequires: boost-devel >= 1.36 BuildRequires: gcc-c++ BuildRequires: libGeoIP-devel @@ -110,6 +111,7 @@ Documentation for package libtorrent-rasterbar. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build export CFLAGS="%{optflags} -fvisibility=hidden -fno-strict-aliasing"