Hello community, here is the log from the commit of package libtorrent-rasterbar for openSUSE:Factory checked in at 2016-12-06 14:26:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libtorrent-rasterbar (Old) and /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libtorrent-rasterbar" Changes: -------- --- /work/SRC/openSUSE:Factory/libtorrent-rasterbar/libtorrent-rasterbar.changes 2016-10-20 23:09:52.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new/libtorrent-rasterbar.changes 2016-12-06 14:26:32.000000000 +0100 @@ -1,0 +2,9 @@ +Mon Dec 5 15:43:14 UTC 2016 - sor.alexei@meowr.ru + +- Require boost 1.54+ instead of 1.61+ again. +- Add libtorrent-rasterbar-fix-build-boost-1.54.patch: Fix + building with Boost 1.54. +- Add libtorrent-rasterbar-python-cxxflags.patch: Fix Python + bindings crash with non-default C++11 (boo#1013570). + +------------------------------------------------------------------- New: ---- libtorrent-rasterbar-fix-build-boost-1.54.patch libtorrent-rasterbar-python-cxxflags.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libtorrent-rasterbar.spec ++++++ --- /var/tmp/diff_new_pack.QGFOpq/_old 2016-12-06 14:26:33.000000000 +0100 +++ /var/tmp/diff_new_pack.QGFOpq/_new 2016-12-06 14:26:33.000000000 +0100 @@ -29,7 +29,11 @@ Group: Development/Libraries/C and C++ Url: http://libtorrent.org/ Source: https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz -BuildRequires: boost-devel >= 1.61 +# PATCH-FIX-UPSTREAM libtorrent-rasterbar-fix-build-boost-1.54.patch sor.alexei@meowr.ru -- Fix building with Boost 1.54. +Patch0: libtorrent-rasterbar-fix-build-boost-1.54.patch +# PATCH-FIX-OPENSUSE libtorrent-rasterbar-python-cxxflags.patch boo#1013570 sor.alexei@meowr.ru -- Fix Python bindings CXXFLAGS. +Patch1: libtorrent-rasterbar-python-cxxflags.patch +BuildRequires: boost-devel >= 1.54 BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: python-devel @@ -99,7 +103,7 @@ Summary: Libtorrent is a C++ implementation of the BitTorrent protocol Group: Development/Libraries/C and C++ Requires: %{name}%{sover} = %{version} -Requires: boost-devel >= 1.53 +Requires: boost-devel >= 1.54 Requires: gcc-c++ Requires: pkgconfig(openssl) @@ -125,6 +129,8 @@ %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -158,7 +164,7 @@ %endif --with-boost-python="libboost_$py" \ --enable-python-binding - make %{?_smp_mflags} + make %{?_smp_mflags} V=1 popd done @@ -182,9 +188,9 @@ %if %{with tests} %check -make check %{?_smp_mflags} -C build-python +make check %{?_smp_mflags} V=1 -C build-python %if 0%{?suse_version} > 1320 -make check %{?_smp_mflags} -C build-python3 +make check %{?_smp_mflags} V=1 -C build-python3 %endif %endif ++++++ libtorrent-rasterbar-fix-build-boost-1.54.patch ++++++ --- a/src/lsd.cpp +++ b/src/lsd.cpp @@ -87,7 +87,7 @@ lsd::lsd(io_service& ios, peer_callback_ , m_log_cb(log) #endif , m_broadcast_timer(ios) - , m_cookie((random() ^ boost::uintptr_t(this)) & 0x7fffffff) + , m_cookie((random() ^ std::uintptr_t(this)) & 0x7fffffff) , m_disabled(false) #if TORRENT_USE_IPV6 , m_disabled6(false) ++++++ libtorrent-rasterbar-python-cxxflags.patch ++++++ --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -116,6 +116,11 @@ else: extra_link = flags.parse(ldflags) extra_compile = flags.parse(extra_cmd) + if 'CXX' in os.environ: + os.environ['CC'] = os.environ['CXX'] + if 'CXXFLAGS' in os.environ: + os.environ['CFLAGS'] = os.environ['CXXFLAGS'] + ext = [Extension('libtorrent', sources = source_list, language='c++',