Bug 282462 - port japanese/ibus-anthy unconfigurable with Python 3.11+
Summary: port japanese/ibus-anthy unconfigurable with Python 3.11+
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Koichiro Iwao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-01 04:17 UTC by Paula Breton
Modified: 2024-11-04 01:51 UTC (History)
2 users (show)

See Also:
CQG00620: maintainer-feedback+


Attachments
update-to-1.5.16 (3.22 KB, patch)
2024-11-01 13:13 UTC, Koichiro Iwao
no flags Details | Diff
poudriere testport log on FreeBSD-current with the update patch (91.63 KB, text/plain)
2024-11-03 10:52 UTC, WATANABE Kazuhiro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paula Breton 2024-11-01 04:17:18 UTC
Python 3.11 is now the default for FreeBSD 13/14/15 on most architectures. Trying to open the ibus-anthy configuration tool through ibus-setup results in the following error:


Traceback (most recent call last):
  File "/usr/local/share/ibus-anthy/setup/main.py", line 1703, in <module>
    AnthySetup().run()
    ^^^^^^^^^^^^
  File "/usr/local/share/ibus-anthy/setup/main.py", line 79, in __init__
    gettext.bind_textdomain_codeset(DOMAINNAME, 'UTF-8')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset'


bind_textdomain_codeset was deprecated since Python 3.8 and is now removed. Removing the function call that throws the error allows the configuration tool to launch normally.

This was fixed upstream:
https://github.com/ibus/ibus-anthy/commit/c744be610dff270f1c0f0367f809b9df95aeea2d
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2024-11-01 13:12:06 UTC
Hi, 

the fix you mentioned fixes the problem but what about updating to 1.5.16? It also fixes the other bugs, too. Paula, could you test my patch to update to 1.5.16?
Comment 2 Koichiro Iwao freebsd_committer freebsd_triage 2024-11-01 13:13:21 UTC
Created attachment 254845 [details]
update-to-1.5.16

Here's the patch.
Comment 3 Paula Breton 2024-11-02 01:27:45 UTC
Hi, everything builds well and is working properly on my end. Looks like it's good to go! Thanks for the very quick update.
Comment 4 Koichiro Iwao freebsd_committer freebsd_triage 2024-11-02 11:34:19 UTC
(In reply to Paula Breton from comment #3)
Thanks! Let's wait for the approval from the maintainer for a while.
Comment 5 WATANABE Kazuhiro 2024-11-03 09:39:32 UTC
Hi, all.

I've reproduced the same problem on my environment.  The latest release works
fine with no problem.

I've tested the update patch on the following environment:

* FreeBSD 14.1-RELEASE with 2024Q4 ports branch.
* FreeBSD-current with main ports branch.

On FreeBSD-current there is some warnings at the install stage:

> ==> Running trigger: glib-schemas.ucl
> Compiling glib schemas
> Warning: Schema "org.freedesktop.ibus" has path "/desktop/ibus/".  Paths starting with "/apps/", "/desktop/" or "/system/" are deprecated.
> Warning: Schema "org.freedesktop.ibus.general" has path "/desktop/ibus/general/".  Paths starting with "/apps/", "/desktop/" or "/system/" are deprecated.
(snip)

I think that this warnings are harmless at the moment.

To committer: Would you commit the patch?
Comment 6 WATANABE Kazuhiro 2024-11-03 10:52:12 UTC
Created attachment 254897 [details]
poudriere testport log on FreeBSD-current with the update patch
Comment 7 commit-hook freebsd_committer freebsd_triage 2024-11-03 12:41:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ab7cc7fb4354a708ce71af86036c75513c225e9

commit 1ab7cc7fb4354a708ce71af86036c75513c225e9
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-11-01 13:03:10 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-11-03 12:39:38 +0000

    japanese/ibus-anthy: Update to 1.5.16

    This update includes a fix to support Python 3.11+. As the default
    Python version has been updated to 3.11 on 20240529, this update is
    needed.

    PR:             282462
    Reported by:    Paula Breton <freebsd@breton.xyz>
    Approved by:    WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer)
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.16
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.15
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.14
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.13
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.12

 japanese/ibus-anthy/Makefile  |  2 +-
 japanese/ibus-anthy/distinfo  |  6 +++---
 japanese/ibus-anthy/pkg-plist | 11 ++++++++++-
 3 files changed, 14 insertions(+), 5 deletions(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-11-04 01:47:45 UTC
A commit in branch 2024Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8447a507a95bc494f8d9a31dfddc8f2f484d132c

commit 8447a507a95bc494f8d9a31dfddc8f2f484d132c
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-11-01 13:03:10 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-11-04 01:46:59 +0000

    japanese/ibus-anthy: Update to 1.5.16

    This update includes a fix to support Python 3.11+. As the default
    Python version has been updated to 3.11 on 20240529, this update is
    needed.

    PR:             282462
    Reported by:    Paula Breton <freebsd@breton.xyz>
    Approved by:    WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer)
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.16
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.15
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.14
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.13
    Changes:        https://github.com/ibus/ibus-anthy/releases/tag/1.5.12

    (cherry picked from commit 1ab7cc7fb4354a708ce71af86036c75513c225e9)

 japanese/ibus-anthy/Makefile  |  2 +-
 japanese/ibus-anthy/distinfo  |  6 +++---
 japanese/ibus-anthy/pkg-plist | 11 ++++++++++-
 3 files changed, 14 insertions(+), 5 deletions(-)
Comment 9 Koichiro Iwao freebsd_committer freebsd_triage 2024-11-04 01:51:21 UTC
Committed, thank you both!