forked from pool/libtorrent-rasterbar
Accepting request 129777 from home:a_jaeger:FactoryFix
Fix build with updated boost OBS-URL: https://build.opensuse.org/request/show/129777 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=19
This commit is contained in:
26
libtorrent-rasterbar-boost-time_utc.patch
Normal file
26
libtorrent-rasterbar-boost-time_utc.patch
Normal file
@@ -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)
|
@@ -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
|
||||
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user