Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658808 - media-sound/clementine-1.3.1_p20180523 fails to compile with USE=-dbus
Summary: media-sound/clementine-1.3.1_p20180523 fails to compile with USE=-dbus
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://github.com/clementine-player/...
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2018-06-23 08:59 UTC by Philipp Psurek
Modified: 2019-02-17 15:29 UTC (History)
1 user (show)

See Also:
Package list:
media-sound/clementine-1.3.1_p20190127
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
media-sound~clementine-1.3.1_p20180523.build.log.xz (media-sound~clementine-1.3.1_p20180523.build.log.xz,31.80 KB, application/x-xz)
2018-06-23 08:59 UTC, Philipp Psurek
no flags Details
emerge--info.txt (emerge--info.txt,9.11 KB, text/plain)
2018-06-23 08:59 UTC, Philipp Psurek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Psurek 2018-06-23 08:59:20 UTC
Created attachment 536942 [details]
media-sound~clementine-1.3.1_p20180523.build.log.xz

clementine does not compile with 17 jobs. A compilation with one job fails at linking. Perhaps a dependency is missing.

/usr/bin/x86_64-pc-linux-gnu-g++  -O3 […] --std=c++0x -U__STRICT_ANSI__  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/clementine-tagreader.dir/main.cpp.o CMakeFiles/clementine-tagreader.dir/tagreaderworker.cpp.o CMakeFiles/clementine-tagreader.dir/qrc_data.cpp.o  -o ../../clementine-tagreader -ltag ../libclementine-common/liblibclementine-common.a ../libclementine-tagreader/liblibclementine-tagreader.a -lz ../libclementine-common/liblibclementine-common.a /usr/lib64/libQt5OpenGL.so.5.9.6 /usr/lib64/libQt5Sql.so.5.9.6 /usr/lib64/libQt5Network.so.5.9.6 /usr/lib64/libQt5Xml.so.5.9.6 /usr/lib64/libQt5Widgets.so.5.9.6 /usr/lib64/libQt5Concurrent.so.5.9.6 /usr/lib64/libQt5X11Extras.so.5.9.6 /usr/lib64/libQt5Gui.so.5.9.6 /usr/lib64/libQt5Core.so.5.9.6 -lQt5::DBus -ltag -lpthread -lprotobuf 

/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQt5::DBus
Comment 1 Philipp Psurek 2018-06-23 08:59:58 UTC
Created attachment 536944 [details]
emerge--info.txt
Comment 2 Philipp Psurek 2018-06-23 09:02:36 UTC
# emerge -qvp clementine
[ebuild  N    ] media-sound/clementine-1.3.1_p20180523  USE="lastfm moodbar projectm pulseaudio -box -cdda -dbus -debug -dropbox -googledrive -ipod -mms -mtp -seafile -skydrive {-test} -udisks -wiimote"
Comment 3 Andreas Sturmlechner gentoo-dev 2018-06-24 08:51:04 UTC
You build with USE=-dbus which means ebuild correctly passes -DENABLE_DBUS=no to cmake. So the upstream build option is broken.
Comment 4 Diogo Pereira 2018-06-25 01:39:34 UTC
Building with USE=-dbus fails even if dev-qt/qtdbus:5 is installed.
Comment 5 Philipp Psurek 2018-06-25 07:01:32 UTC
Thank you Andreas for pointing this out. USE=dbus compiles without an error. But I always used -dbus.

I also confirm that dev-qt/qtdbus:5 was installed while filing this bug. AFA I can see in the linking command every QT library is given explicitly with path. The build system somehow put “-lQt5::DBus” to the linking options. With USE=dbus this looks like

/usr/bin/x86_64-pc-linux-gnu-g++  […] --std=c++0x -U__STRICT_ANSI__  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/clementine-tagreader.dir/main.cpp.o CMakeFiles/clementine-tagreader.dir/tagreaderworker.cpp.o CMakeFiles/clementine-tagreader.dir/qrc_data.cpp.o  -o ../../clementine-tagreader -ltag ../libclementine-common/liblibclementine-common.a ../libclementine-tagreader/liblibclementine-tagreader.a -lz ../libclementine-common/liblibclementine-common.a -ltag /usr/lib64/libQt5OpenGL.so.5.9.6 /usr/lib64/libQt5Sql.so.5.9.6 /usr/lib64/libQt5Network.so.5.9.6 /usr/lib64/libQt5Xml.so.5.9.6 /usr/lib64/libQt5Widgets.so.5.9.6 /usr/lib64/libQt5Concurrent.so.5.9.6 /usr/lib64/libQt5X11Extras.so.5.9.6 /usr/lib64/libQt5Gui.so.5.9.6 /usr/lib64/libQt5DBus.so.5.9.6 /usr/lib64/libQt5Core.so.5.9.6 -lpthread -lprotobuf 

I report this bug upstream within two days if nobody does this before.
Comment 6 Marcus 2018-07-22 13:06:50 UTC
I can confirm this issue for version clementine-1.3.1_p20180416 .
Comment 7 Larry the Git Cow gentoo-dev 2018-11-17 23:10:56 UTC
The bug has been referenced in the following commit(s):

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

commit f7bad51a4cf9b76f1859cee8aff0e1086d73a64b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-11-17 22:56:11 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-11-17 23:10:35 +0000

    media-sound/clementine: 1.3.1_p20181112 snapshot bump
    
    Bug: https://bugs.gentoo.org/658808
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-sound/clementine/Manifest                    |   1 +
 .../clementine/clementine-1.3.1_p20181112.ebuild   | 182 +++++++++++++++++++++
 .../files/clementine-1.3.1_p20181112-no-dbus.patch |  41 +++++
 3 files changed, 224 insertions(+)
Comment 8 Andreas Sturmlechner gentoo-dev 2019-02-09 21:13:53 UTC
Let's do this.
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-15 15:47:32 UTC
x86 stable
Comment 10 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-02-17 15:29:59 UTC
amd64 stable