Bug#982175: task-japanese-desktop: should explicitly prefer mozc over anthy

2021-03-08 Thread YOSHINO Yoshihito
Followup-For: Bug #982175
Package: task-japanese-desktop

Hi Holger,

Note that this bug is not related to the GNOME desktop nor ibus.
Instead, it is only related to uim and dpkg (and perhaps apt.)
So this fix should be safely released regardless of the ongoing
discussion around the GNOME desktop.

Thanks in advance,
-- 
YOSHINO Yoshihito 



Bug#982175: task-japanese-desktop: should explicitly prefer mozc over anthy

2021-02-09 Thread dai
Control: owner -1 debian-b...@lists.debian.org
Control: forwarded -1 
https://salsa.debian.org/installer-team/tasksel/-/merge_requests/15

Muto-san is currently emeritus status ( https://nm.debian.org/process/584/ ),
so I set this bug owner as debian-b...@lists.debian.org.
And I created MR. Can anyone approve and merge it?
-- 
Regards,
dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E


signature.asc
Description: PGP signature


Bug#982175: task-japanese-desktop: should explicitly prefer mozc over anthy

2021-02-06 Thread YOSHINO Yoshihito
Package: task-japanese-desktop
Version: 3.63
Tags: bullseye patch
Priority: important

Dear Maintainer,

Most Japanese users prefer "mozc" over "anthy" among several Japanese
input method engines.
Because mozc is supported upstream in limited architectures (x86 and
arm related only)
anthy has been used as a fall-back.
However, the recent bullseye debian installer does not configure the
system as expected.

When the buster (or earlier) debian installer installs japanese-desktop task
it configures (runs postinst maintainer scripts of) the uim-* input
method packages in the following order:
uim-anthy
uim-mozc

buster dpkg.log:
2021-01-31 12:47:57 install uim-anthy:all <なし> 1:1.8.8-4+deb10u3
2021-01-31 12:47:57 status half-installed uim-anthy:all 1:1.8.8-4+deb10u3
2021-01-31 12:47:57 status unpacked uim-anthy:all 1:1.8.8-4+deb10u3
(snip)
2021-01-31 12:51:44 install uim-mozc:amd64 <なし> 2.23.2815.102+dfsg-4
2021-01-31 12:51:44 status half-installed uim-mozc:amd64 2.23.2815.102+dfsg-4
2021-01-31 12:51:44 status unpacked uim-mozc:amd64 2.23.2815.102+dfsg-4
(snip)
2021-01-31 12:53:58 configure uim-anthy:all 1:1.8.8-4+deb10u3 <なし>
2021-01-31 12:53:58 status unpacked uim-anthy:all 1:1.8.8-4+deb10u3
2021-01-31 12:53:58 status half-configured uim-anthy:all 1:1.8.8-4+deb10u3
2021-01-31 12:53:58 status installed uim-anthy:all 1:1.8.8-4+deb10u3
(snip)
2021-01-31 12:54:04 configure uim-mozc:amd64 2.23.2815.102+dfsg-4 <なし>
2021-01-31 12:54:04 status unpacked uim-mozc:amd64 2.23.2815.102+dfsg-4
2021-01-31 12:54:04 status half-configured uim-mozc:amd64 2.23.2815.102+dfsg-4
2021-01-31 12:54:04 status installed uim-mozc:amd64 2.23.2815.102+dfsg-4

which makes uim input method framework configured in the desirable
preference ordering,
because the uim-* input method packages are structured as LIFO: last
configured package is preferred first.

However, the recent bullseye debian installer (perhaps recent apt or
dpkg algorithm) has been changed for some reason. It configures the
uim-* input method packages in the following order:
uim-mozc
uim-anthy

bullseye dpkg.log:
2021-01-31 10:55:44 install uim-anthy:all  1:1.8.8-7
2021-01-31 10:55:44 status half-installed uim-anthy:all 1:1.8.8-7
2021-01-31 10:55:44 status unpacked uim-anthy:all 1:1.8.8-7
(snip)
2021-01-31 10:58:47 install uim-mozc:amd64  2.26.4220.100+dfsg-2
2021-01-31 10:58:47 status half-installed uim-mozc:amd64 2.26.4220.100+dfsg-2
2021-01-31 10:58:47 status unpacked uim-mozc:amd64 2.26.4220.100+dfsg-2
(snip)
2021-01-31 11:00:36 configure uim-mozc:amd64 2.26.4220.100+dfsg-2 
2021-01-31 11:00:36 status unpacked uim-mozc:amd64 2.26.4220.100+dfsg-2
2021-01-31 11:00:36 status half-configured uim-mozc:amd64 2.26.4220.100+dfsg-2
2021-01-31 11:00:36 status installed uim-mozc:amd64 2.26.4220.100+dfsg-2
(snip)
2021-01-31 11:00:38 configure uim-anthy:all 1:1.8.8-7 
2021-01-31 11:00:38 status unpacked uim-anthy:all 1:1.8.8-7
2021-01-31 11:00:38 status half-configured uim-anthy:all 1:1.8.8-7
2021-01-31 11:00:38 status installed uim-anthy:all 1:1.8.8-7

Since depending on the dpkg configuration order is inherently fragile,
it should be avoided.
It should be better to adjust the dependency field in the task package.
The attached patch should fix this problem.

Thanks in advance,
-- 
YOSHINO Yoshihito 
--- tasksel-3.63/debian/control	2020-12-21 01:58:07.0 +0900
+++ tasksel-3.63/debian/control	2021-02-07 16:06:00.487409455 +0900
@@ -1410,8 +1410,7 @@
 	fonts-vlgothic,
 	fonts-ipafont,
 	uim,
-	uim-anthy,
-	uim-mozc,
+	uim-mozc | uim-anthy,
 	mozc-utils-gui,
 	anthy,
 	libreoffice-l10n-ja,