Bug 414050

Summary: libktorrent git-version fails to build on Gentoo
Product: [Applications] ktorrent Reporter: Michael <voron1>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, voron1
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Build log
emerge --info output

Description Michael 2019-11-12 01:00:29 UTC
Created attachment 123849 [details]
Build log

SUMMARY 
libktorrent git-version fails to build on Gentoo with:

/var/tmp/portage/net-libs/libktorrent-9999/work/libktorrent-9999/src/util/fileops.cpp:369:36: error: invalid user-defined conversion from 'QByteArray' to 'const char*' [-fpermissive]

Full build log is attached. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.64
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Michael 2019-11-12 01:01:05 UTC
Created attachment 123850 [details]
emerge --info output
Comment 2 Andreas Sturmlechner 2019-11-14 12:58:27 UTC
Interestingly it builds just fine for me, that's even with Qt 5.14.0_beta3.
Comment 3 Michael 2019-11-14 13:03:35 UTC
(In reply to andreas.sturmlechner from comment #2)
> Interestingly it builds just fine for me, that's even with Qt 5.14.0_beta3.

So there's a good chance it's gentoo-specific?
Comment 4 Christoph Feck 2019-11-14 13:20:07 UTC
Git commit 1e8ce6e98d7ca0088624778964b9aed4696ce030 by Christoph Feck.
Committed on 14/11/2019 at 13:19.
Pushed by cfeck into branch 'master'.

Fix build with XFS

M  +1    -1    src/util/fileops.cpp

https://commits.kde.org/libktorrent/1e8ce6e98d7ca0088624778964b9aed4696ce030
Comment 5 Michael 2019-11-14 13:31:43 UTC
(In reply to Christoph Feck from comment #4)
> Git commit 1e8ce6e98d7ca0088624778964b9aed4696ce030 by Christoph Feck.
> Committed on 14/11/2019 at 13:19.
> Pushed by cfeck into branch 'master'.
> 
> Fix build with XFS
> 
> M  +1    -1    src/util/fileops.cpp
> 
> https://commits.kde.org/libktorrent/1e8ce6e98d7ca0088624778964b9aed4696ce030

That worked, thank you!