Created attachment 882373 [details] accounts-qml-0.7_p20231028:20240116-033605.log The install script ends up executing > env LD_PRELOAD=SSO/OnlineAccounts/libAccounts.so /usr/lib64/qt5/bin/qmlplugindump -notrelocatable SSO.OnlineAccounts 0.1 . > /var/tmp/portage/net-libs/accounts-qml-0.7_p20231028/image/usr/lib64/qt5/qml/SSO/OnlineAccounts/plugin.qmltypes which requires a compositor running with proper environment set (eg, XDG_RUNTIME_DIR) and otherwise, fails with: > error: XDG_RUNTIME_DIR is invalid or not set in the environment. > Failed to create wl_display (No such file or directory) > Could not load the Qt platform plugin "wayland" in "" even though it was found. > could not connect to display > Could not load the Qt platform plugin "xcb" in "" even though it was found. > This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. > > Available platform plugins are: minimal, offscreen, wayland-egl, wayland, xcb. > > make[1]: *** [Makefile:1088: install_qmltypes_gen] Error 134
Created attachment 882374 [details] emerge-info.txt
Does inheriting xdg-utils and calling xdg_environment_reset in src_prepare or so help?
(In reply to Sam James from comment #2) > Does inheriting xdg-utils and calling xdg_environment_reset in src_prepare > or so help? Alone, it still fails the same way. Using that with with virtwl(), as shown in the PR, the build is successful. I included the X/virtualx parts for completion but have only had a chance to test it with wayland, i.e., "USE=-X".
Maybe it works with QT_QPA_PLATFORM=offscreen instead (check out ecm.eclass e.g.).
(In reply to Andreas Sturmlechner from comment #4) > Maybe it works with QT_QPA_PLATFORM=offscreen instead (check out ecm.eclass > e.g.). That works. It doesn't even need xdg_environment_reset.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e704047812b509079fdb48b1de98d1509d8b323e commit e704047812b509079fdb48b1de98d1509d8b323e Author: Peter Levine <plevine457@gmail.com> AuthorDate: 2024-01-16 04:13:27 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-01-18 14:27:20 +0000 net-libs/accounts-qml: fix bug# 922194 Add "local QT_QPA_PLATFORM=offscreen" to fix breakage. Closes: https://bugs.gentoo.org/922194 Closes: https://github.com/gentoo/gentoo/pull/34832 Signed-off-by: Peter Levine <plevine457@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34832 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> net-libs/accounts-qml/accounts-qml-0.7_p20231028.ebuild | 1 + 1 file changed, 1 insertion(+)