Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675976 - net-p2p/qbittorrent-4.1.5 cannot be built with net-libs/libtorrent-rasterbar-1.2.0
Summary: net-p2p/qbittorrent-4.1.5 cannot be built with net-libs/libtorrent-rasterbar-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-01-21 16:43 UTC by Francesco Turco
Modified: 2019-01-25 14:20 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
info.txt (info.txt,5.90 KB, text/plain)
2019-01-21 16:44 UTC, Francesco Turco
Details
build.log (build.log,10.93 KB, text/plain)
2019-01-21 16:45 UTC, Francesco Turco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2019-01-21 16:43:35 UTC
I cannot build net-p2p/qbittorrent-4.1.5 when net-libs/libtorrent-rasterbar-1.2.0 is installed on my system due to the following error message:

### BEGIN ERROR MESSAGE ###

base/bittorrent/infohash.cpp: In constructor ‘BitTorrent::InfoHash::InfoHash(const sha1_hash&)’:
base/bittorrent/infohash.cpp:44:43: error: invalid operands of types ‘libtorrent::digest32<160>::difference_type() noexcept’ {aka ‘long int()’} and ‘int’ to binary ‘operator*’
     char out[(libtorrent::sha1_hash::size * 2) + 1];
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
base/bittorrent/infohash.cpp:45:17: error: ‘to_hex’ is not a member of ‘libtorrent’
     libtorrent::to_hex(reinterpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
                 ^~~~~~
base/bittorrent/infohash.cpp:45:102: error: ‘out’ was not declared in this scope
     libtorrent::to_hex(reinterpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
                                                                                                      ^~~
base/bittorrent/infohash.cpp: In constructor ‘BitTorrent::InfoHash::InfoHash(const QString&)’:
base/bittorrent/infohash.cpp:55:31: error: ‘from_hex’ is not a member of ‘libtorrent’
         m_valid = libtorrent::from_hex(raw.constData(), 40, reinterpret_cast<char*>(&m_nativeHash[0]));
                               ^~~~~~~~

### END ERROR MESSAGE ###

$ emerge -pv qbittorrent libtorrent-rasterbar

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] net-libs/libtorrent-rasterbar-1.2.0:0/9::gentoo [1.1.11:0/9::gentoo] USE="dht python ssl -debug -doc -examples -libressl -static-libs -test" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 3,463 KiB
[ebuild   R    ] net-p2p/qbittorrent-4.1.5::gentoo  USE="X dbus -debug -webui" 0 KiB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 3,463 KiB
Comment 1 Francesco Turco 2019-01-21 16:44:37 UTC
Created attachment 562382 [details]
info.txt

emerge --info
Comment 2 Francesco Turco 2019-01-21 16:45:22 UTC
Created attachment 562384 [details]
build.log
Comment 3 MZ 2019-01-21 17:32:44 UTC
same problem.
Comment 4 Chris Smith 2019-01-21 18:08:16 UTC
ditto
Comment 5 Vladimir 2019-01-21 18:22:42 UTC
Same on ~amd64 after today update.
Comment 6 Piotr Karbowski (RETIRED) gentoo-dev 2019-01-22 20:43:08 UTC
Confirmed by upstream that the integration with 1.2.0 version of libtorrent is work in progress and not yet released. https://github.com/qbittorrent/qBittorrent/issues/10199

Making qbittorrent-4.1.5 depend on =1.1* would be the solution here.
Comment 7 pepe 2019-01-23 09:39:07 UTC
I have been able to install qbittorrent doing downgrade to libtorrent-rasterbar. Thanks Piotr!
Comment 8 Larry the Git Cow gentoo-dev 2019-01-25 14:20:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a528ff4973e51823512ffc30e5395c0c741d01df

commit a528ff4973e51823512ffc30e5395c0c741d01df
Author:     Nikos Chantziaras <realnc@gmail.com>
AuthorDate: 2019-01-21 20:02:29 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2019-01-25 14:20:46 +0000

    net-p2p/qbittorrent: dep on libtorrent-rasterbar-1.1 and revbump-move
    
    Build fails with libtorrent-rasterbar-1.2.
    
    Closes: https://bugs.gentoo.org/675976
    Package-Manager: Portage-2.3.57, Repoman-2.3.12
    Signed-off-by: Nikos Chantziaras <realnc@gmail.com>
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>

 .../{qbittorrent-4.1.4.ebuild => qbittorrent-4.1.4-r1.ebuild}         | 4 ++--
 .../{qbittorrent-4.1.5.ebuild => qbittorrent-4.1.5-r1.ebuild}         | 4 ++--
 net-p2p/qbittorrent/qbittorrent-9999.ebuild                           | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)