Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751502 - dev-qt/qtwidgets:5: Add "dbus" USE flag for qxdgdesktopportal (libqxdgdesktopportal.so)
Summary: dev-qt/qtwidgets:5: Add "dbus" USE flag for qxdgdesktopportal (libqxdgdesktop...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-27 21:15 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-11-07 21:40 UTC (History)
1 user (show)

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


Attachments
Patch (qtwidgets.patch,1.21 KB, patch)
2020-10-27 21:17 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2020-10-27 21:15:04 UTC
https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platformthemes/platformthemes.pro?h=5.15 contains:
> qtConfig(dbus):qtConfig(regularexpression):qtConfig(mimetype): SUBDIRS += xdgdesktopportal

mimetype and regularexpression are already enabled through dev-qt/qtcore:5:
> $ grep -E "(dbus|mimetype|regularexpression)" /usr/include/qt5/QtCore/qtcore-config.h
> #define QT_FEATURE_mimetype 1
> #define QT_FEATURE_regularexpression 1

https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platformthemes/xdgdesktopportal/xdgdesktopportal.pro?h=5.15 defines rules for plug-in qxdgdesktopportal (libqxdgdesktopportal.so).

In order to enable building of this plug-in, ebuild should pass option -dbus or -dbus-linked to configure. Only one of these options appears sufficient.

dev-qt/qtgui:5 passes only option -dbus-linked:
> 		$(usex dbus -dbus-linked '')

dev-qt/qtwidgets:5 configured with option -dbus or -dbus-linked currently installs 2 additional files:
> /usr/lib64/cmake/Qt5Gui/Qt5Gui_QXdgDesktopPortalThemePlugin.cmake
> /usr/lib64/qt5/plugins/platformthemes/libqxdgdesktopportal.so

Linked libraries:
> $ scanelf -qyF "%F: %n" /usr/lib64/qt5/plugins/platformthemes/libqxdgdesktopportal.so
> /usr/lib64/qt5/plugins/platformthemes/libqxdgdesktopportal.so: libQt5Gui.so.5,libQt5DBus.so.5,libQt5Core.so.5,libstdc++.so.6,libc.so.6
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-10-27 21:17:45 UTC
Created attachment 668834 [details, diff]
Patch
Comment 2 Andreas Sturmlechner gentoo-dev 2021-11-07 21:40:38 UTC
Thanks, turns out this was implemented with commit d61dbe9fbbf29ba91958496ff6f5aa1a547d609e.