Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760501 - app-i18n/fcitx-5 version bump
Summary: app-i18n/fcitx-5 version bump
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 12 votes (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
URL: https://github.com/fcitx/fcitx5
Whiteboard:
Keywords: PullRequest
: 872794 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-17 17:15 UTC by Chang Liu
Modified: 2024-01-11 21:15 UTC (History)
21 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chang Liu 2020-12-17 17:15:36 UTC
Fcitx5 has been offical released, and it is availabe in Arch.
https://www.archlinux.org/packages/community/x86_64/fcitx5/

It is also avaialbe in gentoo-zh overlay.
https://github.com/microcai/gentoo-zh

Previous it depends on cldr-emoji-annotation, which is in conflict with gentoo package unicode-cldr. Now the author has added the ability to depends on any cldr provider. Arch has already taken steps to follow that and replace cldr-emoji-annotation with unicode-cldr.

Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-12-17 19:45:38 UTC
I am slowly working on ebuilds of Fcitx 5 and on other things...

In Gentoo, packages of Fcitx 5 will not have "5" in package name, but will use SLOT="5". Examples:
> app-i18n/fcitx       SLOT="5"  (https://github.com/fcitx/fcitx5)
> app-i18n/fcitx-gtk   SLOT="5"  (https://github.com/fcitx/fcitx5-gtk)
> app-i18n/fcitx-qt    SLOT="5"  (https://github.com/fcitx/fcitx5-qt)
> app-i18n/fcitx-rime  SLOT="5"  (https://github.com/fcitx/fcitx5-rime)

Fcitx 5 currently consists of about 22 or 23 packages at upstream level (22 + Fcitx fork of Mozc). gentoo-zh contains 8 of them.

I hope to add at least majority of these 22 packages in this month.
Comment 2 Chang Liu 2020-12-17 20:34:42 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)

Thank you for your hard work. I think you can start with the most used ones. A good reference is

https://pkgstats.archlinux.de/packages#query=fcitx5
Comment 3 Tobias Jakobi 2021-07-02 23:05:49 UTC
Any news on this one?
Comment 4 Jae Hak Kim 2021-08-04 09:45:57 UTC
I've just submitted fcitx5-hangul ebuild to gentoo-zh

https://github.com/microcai/gentoo-zh/blob/master/app-i18n/fcitx5-hangul/fcitx5-hangul-5.0.3.ebuild
Comment 5 anonymous 2021-09-17 13:19:46 UTC
fcitx5 is necessary for wayland support.
Comment 6 Jae Hak Kim 2022-06-02 01:26:08 UTC
FYI, fcitx5 ebuilds in gentoo-zh overlay has been updated to use SLOT.

https://github.com/microcai/gentoo-zh/tree/master/app-i18n
Comment 7 Ryan Tsien 2022-06-03 10:10:35 UTC
(In reply to Jae Hak Kim from comment #6)
> FYI, fcitx5 ebuilds in gentoo-zh overlay has been updated to use SLOT.
> 
> https://github.com/microcai/gentoo-zh/tree/master/app-i18n

Yeap, but pay attention that the fcitx:5, fcitx-configtools:5, fcitx-rime:5, and so on have icon files conflicts with fcitx:4.
Comment 8 Matthew Smith gentoo-dev 2022-09-25 09:25:59 UTC
*** Bug 872794 has been marked as a duplicate of this bug. ***
Comment 9 Jesse 2022-11-18 02:49:28 UTC
Fcitx5 was official release for 1 year. Many distros have adopted it even Debian
https://github.com/fcitx/fcitx5/tags
As I see our version has stayed at 4.9999 https://packages.gentoo.org/packages/app-i18n/fcitx
Fcitx5 has fewer dependencies compared to Ibus, it's compatible better with Flatpak apps, and it supports Wayland better. Maybe it's a new IME compare to old Fcitx. But you could use SLOT as Gentoo-zh overlay did, then we can have 2 versions in the same repo, and user are free to pick it.
Please make the bump happened in the official repo. Please!
Comment 10 Sorrow 2023-03-13 14:28:45 UTC
This is needed very much.
Comment 11 Ryan Tsien 2023-03-22 07:09:30 UTC
If want to push into the ::gentoo repo, the first question to confirm is in what form to push, whether (1)a set of packages with the same name but different slots, or (2)a set of packages with different names.

For (1), the icon file conflicts need to be resolved, either patching fcitx:4 or fcitx:5 fixes them. There are some examples of patching fcitx:5: https://github.com/gentoo-mirror/ryans/tree/master/app-i18n, say fcitx-configtool, fcitx-rime and fcitx.
As to whether the icon conflicts can be resolved from upstream, I'm not sure, because for upstream, these two are different sets of packages (fcitx-* and fcitx5-*).

For (2), should be easier.

The second question is the maintainers. I can take over the maintenance of some of these packages as proxy-maintainer, but not all of them, so help from other maintainers is needed.

Hope to get more feedback.
Comment 12 Xuesong Yan 2023-03-22 17:48:48 UTC
Personally, I believe the solution (1) is better, as Fcitx5 is the successor of Fcitx4, and maintained by the same core author. 

However, I don't think the upstream is eager to solve the icon issues. The conflicts are distribution specific problems, and for most distributions without slot like functionalities, you do not need to deal with them.

If we patch the packages ourselves, it is an expectantly burden. A practical solution is to make Fcitx5 conflict with Fcitx4, but this is not what slots designed for.
Comment 13 Ryan Tsien 2023-03-23 02:19:30 UTC
In fact, for solution (1), patching icons files for fcitx:4 is a better choice, because the maintenance of fcitx:4 is not so active at present. This can greatly reduce the amount of maintenance.
Comment 14 Ryan Tsien 2023-04-28 03:22:05 UTC
Hi, we have a few people here who want to move the process forward, my current thinking is:

init

1) create a new GitHub organization (e.g.: fcitx-gentoo)
2) fork the ::gentoo repo
3) patch fcitx:4 series packages to solve the icon conflicts with fcitx:5
4) add some (not all) fcitx:5 packages
5) some tests
6) create the PR with `fcitx-gentoo/gentoo`
7) wait for merge


daily maintenance

1) bump versions/fix bugs for fcitx:5 series packages in `fcitx-gentoo/gentoo`
2) some tests
3) create PR
4) wait for merge

The reason why an additional fcitx-gentoo/gentoo repo is needed is because fcitx:5 has many packages, and a single person may not be able to ensure long-term uninterrupted maintenance. In order to ensure its atomic updates, an intermediate repository is required for the transition.

And, the few of us may not be able to ensure that all supported input methods are added, mainly to maintain Chinese packages, so welcome to contribute to this intermediate repository (All committers' signatures and the original authors will be preserved when creating a PR to gentoo/gentoo).

Hope to get some advice.
Comment 15 Xuesong Yan 2023-05-11 15:15:33 UTC
For an external Git repo, the 'gentoo-zh' community might be happy to contribute to it.
Comment 16 Sorrow 2023-07-21 15:35:26 UTC
The icon conflict issue is not very important in my opinion. I don't think many people need fcitx 4 and 5 installed simultaneously. Fcitx is the only option for wayland wlroots compositor environments though, so it's needed desperately.
Comment 17 yongxiang 2023-11-24 12:44:27 UTC
If we want to install both fcitx4 and fcitx5 at the same time, we just need to adjust the location of one of the icon files.

But consider that fcitx4 and fcitx5 are registered in the same im module. For example, their XMODIFIERS variables are both "@im=fcitx"
> fcitx4: https://github.com/fcitx/fcitx/blob/master/data/env_setup.sh#L38
> fcitx5: https://github.com/fcitx/fcitx5/blob/master/data/fcitx5-diagnose.sh#L1137

Running them at the same time is undefined behavior. (Thanks to Felix Yan @felixonmars for the heads up).
Therefore, it is better to have fcitx4 and fcitx4 block each other.
Comment 18 Yixun Lan archtester gentoo-dev 2023-12-04 23:47:31 UTC
hi, folks, we'd like to push fcitx5 in next few days..
we'd strongly encourage people interested in this package to do some review/build/tests

please check the github's PR, thanks
Comment 19 Larry the Git Cow gentoo-dev 2023-12-11 13:33:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=539fe1546164fc2cf0e6bfae2e19e6cd727783f4

commit 539fe1546164fc2cf0e6bfae2e19e6cd727783f4
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2023-11-30 16:42:29 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-12-11 13:33:25 +0000

    app-i18n/fcitx: block fcitx:4 and fcitx:5 each other
    
    If we want to install both fcitx4 and fcitx5 at the same time,
    we just need to adjust the location of one of the icon files.
    But consider that fcitx4 and fcitx5 are registered in the same
    im module. For example, their XMODIFIERS variables are both "@im=fcitx".
    Running them at the same time is undefined behavior.
    
    Bug: https://bugs.gentoo.org/760501
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-i18n/fcitx/fcitx-4.2.9.8.ebuild | 5 +++--
 app-i18n/fcitx/fcitx-4.9999.ebuild  | 5 +++--
 app-i18n/fcitx/fcitx-5.1.5.ebuild   | 1 +
 3 files changed, 7 insertions(+), 4 deletions(-)
Comment 20 Larry the Git Cow gentoo-dev 2023-12-25 11:51:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e2b4494511c68f48ca9319680e8bce05c374b42

commit 3e2b4494511c68f48ca9319680e8bce05c374b42
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2023-12-06 05:56:10 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-12-25 11:50:44 +0000

    app-i18n/fcitx-chinese-addons: new package, add 5.1.2
    
    fcitx-chinese-addons are Chinese related addons for fcitx5.
    It provides pinyin and table input method support.
    
    Bug: https://bugs.gentoo.org/760501
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-i18n/fcitx-chinese-addons/Manifest             |  1 +
 .../fcitx-chinese-addons-5.1.2.ebuild              | 57 ++++++++++++++++++++++
 app-i18n/fcitx-chinese-addons/metadata.xml         | 26 ++++++++++
 3 files changed, 84 insertions(+)
Comment 21 Sorrow 2024-01-09 17:08:15 UTC
I would be grateful, if someone added fcitx-anthy:5 or fcitx5 support for mozc.
Comment 22 yongxiang 2024-01-09 18:19:57 UTC
(In reply to Sorrow from comment #21)
> I would be grateful, if someone added fcitx-anthy:5 or fcitx5 support for
> mozc.

I bump app-i18n/fcitx-anthy:5 in https://github.com/gentoo/gentoo/pull/34478,
and add fcitx5 use for app-i18n/mozc in https://github.com/gentoo/gentoo/pull/34477.

Hopefully these pull reqeusts will get more review.
Comment 23 Larry the Git Cow gentoo-dev 2024-01-11 00:22:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8791cf6078fbf6222f77516d15c7f4d5da3c2c

commit 6f8791cf6078fbf6222f77516d15c7f4d5da3c2c
Author:     Yongxiang Liang <tanekliang@gmail.com>
AuthorDate: 2024-01-05 03:52:03 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-01-11 00:19:54 +0000

    app-i18n/fcitx: add 5.1.6
    
    Upstream uses libuv instead of libevent
    
    Bug: https://bugs.gentoo.org/760501
    Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-i18n/fcitx/Manifest           |   1 +
 app-i18n/fcitx/fcitx-5.1.6.ebuild | 123 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
Comment 24 Larry the Git Cow gentoo-dev 2024-01-11 11:23:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=058dc0b851f1a555afe2366a400613f518de055a

commit 058dc0b851f1a555afe2366a400613f518de055a
Author:     Ryan Qian <i@bitbili.net>
AuthorDate: 2023-12-12 01:27:17 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-01-11 11:16:39 +0000

    app-i18n/fcitx-rime: add 5.1.4
    
    Bug: https://bugs.gentoo.org/760501
    
    Signed-off-by: Ryan Qian <i@bitbili.net>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-i18n/fcitx-rime/Manifest                |  1 +
 app-i18n/fcitx-rime/fcitx-rime-5.1.4.ebuild | 30 +++++++++++++++++++++++++++++
 app-i18n/fcitx-rime/metadata.xml            | 13 +++++++++++++
 3 files changed, 44 insertions(+)