Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937340

Summary: app-i18n/fcitx-configtool-5.1.6-r1 compile failed
Product: Gentoo Linux Reporter: Fpemud <fpemud>
Component: Current packagesAssignee: yongxiang <tanekliang>
Status: UNCONFIRMED ---    
Severity: normal CC: cjk, fpemud, proxy-maint, tanekliang
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fail-message.txt
emerge-info.txt
use-flags of app-i18n/fcitx-configtool
patch
build.log

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.