Bug 276165 - textproc/fcitx-qt5: Enable Qt6 support using slave port
Summary: textproc/fcitx-qt5: Enable Qt6 support using slave port
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 01:48 UTC by Tomoaki AOKI
Modified: 2024-01-07 01:59 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Patch to create and support Qt6 slave port (1.61 KB, patch)
2024-01-07 01:59 UTC, Tomoaki AOKI
junchoon: maintainer-approval? (yuri)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2024-01-07 01:48:52 UTC
Recently Qt6-related ports are increasing and currently textproc/fcitx-qt6 doesn't exist.

Fortunately, textproc/fcitx-qt5 already has build time cmake knob for Qt6 support as ENABLE_QT6 which builds plugin file only.

Unfortunately, the knob doesn't seem to work when ENABLE_LIBRARY and ENABLE_QT5, which current textproc/fcitx-qt5 enables.

FLAVOR'ize doesn't fit in this case, and actually, I couldn't make my prototype patch working with poudriere jail.

If I understand correctly, subpackage would not fit too, as build didn't work well with all 3 knobs enabled at once.
Comment 1 Tomoaki AOKI 2024-01-07 01:59:08 UTC
Created attachment 247504 [details]
Patch to create and support Qt6 slave port

Created patch to support Qt6 slave port, slave port itself, and hook the slave port to build.

Not sure this is actually enough (possibly missing something) and possibly Qt5 libraries are required even if there's no applications installed.

Tested on stable/14, amd64 with some Qt5 applications and master port (textproc/fcitx-qt5) installed, additionally install (to test) graphics/heimer and its dependencies and tested fcitx can be enabled or not, input some Japanese text using japanese/mozc-server as backend in conjunction with japanese/fcitx-mozc and it worked for me.

Mouse cursor became very small when over heimer window, but it should be problem of Qt6 framework and not of fcitx-qt5 port.