Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937340 - app-i18n/fcitx-configtool-5.1.6-r1 compile failed
Summary: app-i18n/fcitx-configtool-5.1.6-r1 compile failed
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: yongxiang
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-05 00:04 UTC by Fpemud
Modified: 2024-08-05 14:43 UTC (History)
4 users (show)

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


Attachments
fail-message.txt (fail-message.txt,5.52 KB, text/plain)
2024-08-05 00:04 UTC, Fpemud
Details
emerge-info.txt (emerge-info.txt,24.50 KB, text/plain)
2024-08-05 00:04 UTC, Fpemud
Details
use-flags of app-i18n/fcitx-configtool (use-flags.txt,493 bytes, text/plain)
2024-08-05 00:04 UTC, Fpemud
Details
patch (make-x11-dependencies-optional.patch,4.53 KB, patch)
2024-08-05 01:11 UTC, yongxiang
Details | Diff
build.log (build.log,74.60 KB, text/x-log)
2024-08-05 01:56 UTC, Fpemud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fpemud 2024-08-05 00:04:01 UTC
Created attachment 899048 [details]
fail-message.txt

/var/tmp/portage/app-i18n/fcitx-configtool-5.1.6-r1/work/fcitx5-configtool-5.1.6/layout/keyboardlayoutwidget.cpp: In function ‘bool fcitx::kcm::{anonymous}::isPlatformX11()’:
/var/tmp/portage/app-i18n/fcitx-configtool-5.1.6-r1/work/fcitx5-configtool-5.1.6/layout/keyboardlayoutwidget.cpp:57:55: error: ‘QX11Application’ is not a member of ‘QNativeInterface’; did you mean ‘QWaylandApplication’?
Comment 1 Fpemud 2024-08-05 00:04:17 UTC
Created attachment 899049 [details]
emerge-info.txt
Comment 2 Fpemud 2024-08-05 00:04:39 UTC
Created attachment 899050 [details]
use-flags of app-i18n/fcitx-configtool
Comment 3 Greg Kubaryk 2024-08-05 00:23:50 UTC
need a build.log, compressed if necessary
Comment 4 yongxiang 2024-08-05 01:11:00 UTC
Created attachment 899052 [details, diff]
patch
Comment 5 yongxiang 2024-08-05 01:11:20 UTC
I confirmed that this problem occurs in a pure wayland environment. 
As workaround you can apply this patch: https://github.com/fcitx/fcitx5-configtool/pull/79.
Upstream wants to add a wayland version of KeyboardLayout, so the patch above was not merged.
Comment 6 Fpemud 2024-08-05 01:56:22 UTC
Created attachment 899053 [details]
build.log
Comment 7 Fpemud 2024-08-05 01:57:31 UTC
Thanks @yongxiang for your quick reply. I'll try this patch today and report here.
Comment 8 Fpemud 2024-08-05 13:51:42 UTC
I'm afraid I got the same error after I modify the ebuild applying this patch.
Comment 9 Fpemud 2024-08-05 14:12:31 UTC
I compromised. I successfully built app-i18n/fcitx5-configtool after re-emerging dev-qt/qtbase with USE=X
Comment 10 yongxiang 2024-08-05 14:42:39 UTC
(In reply to Fpemud from comment #8)
> I'm afraid I got the same error after I modify the ebuild applying this
> patch.

I need build.log to determine the problem. The keyboardlayoutwidget.cpp will no longer need to be compiled if this patch is applied.
The patch is recommended to be placed in the /etc/portage/patches/app-i18n/fcitx-configtool-5.1.6-r1/ directory
Comment 11 yongxiang 2024-08-05 14:43:51 UTC
(In reply to Fpemud from comment #9)
> I compromised. I successfully built app-i18n/fcitx5-configtool after
> re-emerging dev-qt/qtbase with USE=X

It's also a workaroud.