Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733674 - dev-qt/qtdeclarative uses private dev-qt/qtgui headers, needs slot operator
Summary: dev-qt/qtdeclarative uses private dev-qt/qtgui headers, needs slot operator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-23 18:50 UTC by Giovani M. Faccin
Modified: 2020-08-07 14:48 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giovani M. Faccin 2020-07-23 18:50:16 UTC
Hi there,

emerge -uv kate fails with error:

[code]
: && /usr/bin/x86_64-pc-linux-gnu-g++  -O2 -pipe -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -pedantic -Wzero-as-null-pointer-constant  -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed    -rdynamic kate/CMakeFiles/kate-bin.dir/kate-bin_autogen/mocs_compilation.cpp.o kate/CMakeFiles/kate-bin.dir/main.cpp.o  -o bin/kate  lib/libkate-lib.a /usr/lib64/libKF5TextEditor.so.5.70.0 /usr/lib64/libKF5Parts.so.5.70.0 /usr/lib64/libKF5KIOWidgets.so.5.70.0 /usr/lib64/libKF5KIOGui.so.5.70.0 /usr/lib64/libKF5KIOCore.so.5.70.0 /usr/lib64/libKF5JobWidgets.so.5.70.0 /usr/lib64/libKF5Service.so.5.70.0 /usr/lib64/libQt5Concurrent.so.5.13.2 /usr/lib64/libKF5XmlGui.so.5.70.0 /usr/lib64/libQt5Network.so.5.14.2 /usr/lib64/libKF5TextWidgets.so.5.70.0 /usr/lib64/libKF5Completion.so.5.70.0 /usr/lib64/libKF5ConfigWidgets.so.5.70.0 /usr/lib64/libKF5WidgetsAddons.so.5.70.0 /usr/lib64/libKF5Codecs.so.5.70.0 /usr/lib64/libKF5ConfigGui.so.5.70.0 /usr/lib64/libQt5Xml.so.5.14.2 /usr/lib64/libKF5ConfigCore.so.5.70.0 /usr/lib64/libKF5Auth.so.5.70.0 /usr/lib64/libKF5SonnetUi.so.5.70.0 /usr/lib64/libKF5I18n.so.5.70.0 /usr/lib64/libKF5AuthCore.so.5.70.0 /usr/lib64/libKF5DBusAddons.so.5.70.0 /usr/lib64/libQt5DBus.so.5.14.2 /usr/lib64/libKF5Crash.so.5.70.0 /usr/lib64/libKF5WindowSystem.so.5.70.0 /usr/lib64/libQt5Widgets.so.5.14.2 /usr/lib64/libQt5Gui.so.5.14.2 /usr/lib64/libKF5CoreAddons.so.5.70.0 /usr/lib64/libQt5Core.so.5.14.2 && :
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libQt5Qml.so.5: undefined reference to `QMetaCallEvent::QMetaCallEvent(unsigned short, unsigned short, void (*)(QObject*, QMetaObject::Call, int, void**), QObject const*, int, int, int*, void**, QSemaphore*)@Qt_5_PRIVATE_API'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[/code]

which happened because libQt5Qml.so.5 was of previous version (5.13). 

This was fixed by emerging qtdeclarative-5.14.2-r3.

So qtdeclarative-5.14.* should be included in the dependency package list of kde-apps/kate-20.04.3, in order for it to force the upgrade of qtdeclarative when upgrading kate.

Same issue happened for kolourpaint and was solved by the qtdeclarative upgrade.


Thank you.
Comment 1 Andreas Sturmlechner gentoo-dev 2020-07-25 18:45:04 UTC
No, kde-apps/kate does not have a dependency on dev-qt/qtdeclarative and any given consumer ebuild would be the wrong place to fix an inherent issue with inconsistent Qt versions being installed. Instead what you see is that kde-frameworks/kio's and kde-frameworks/plasma's link interface is broken because of the Qt mix, and that subsequently breaks build of all their consumers.
Comment 2 Larry the Git Cow gentoo-dev 2020-07-30 09:22:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=fcf9f207ae6d60bde421678719808f5f8e2d4a5d

commit fcf9f207ae6d60bde421678719808f5f8e2d4a5d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-25 18:55:32 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-25 18:55:32 +0000

    dev-qt/qtdeclarative: Trigger rebuild on dev-qt/qtgui subslot update
    
    Closes: https://bugs.gentoo.org/733674
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtdeclarative/qtdeclarative-5.15.9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Larry the Git Cow gentoo-dev 2020-07-30 10:11:23 UTC
The bug has been closed via the following commit(s):

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

commit bfdd93f95193a6677fe242c591fb0179a548d5a5
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-25 18:55:32 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-30 10:10:57 +0000

    dev-qt/qtdeclarative: Trigger rebuild on dev-qt/qtgui subslot update
    
    Closes: https://bugs.gentoo.org/733674
    Package-Manager: Portage-3.0.0, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../qtdeclarative/qtdeclarative-5.14.2-r4.ebuild   | 59 ++++++++++++++++++++++
 .../qtdeclarative/qtdeclarative-5.15.0-r1.ebuild   | 58 +++++++++++++++++++++
 2 files changed, 117 insertions(+)