Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833865 - app-i18n/ibus-1.5.25-r1 fails at install step
Summary: app-i18n/ibus-1.5.25-r1 fails at install step
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-22 03:37 UTC by Dale Lukas Peterson
Modified: 2022-04-14 20:29 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.bz2,30.40 KB, application/x-bzip)
2022-02-22 03:39 UTC, Dale Lukas Peterson
Details
environment (environment,137.31 KB, text/plain)
2022-02-22 03:39 UTC, Dale Lukas Peterson
Details
emerge --info '=app-i18n/ibus-1.5.25-r1::gentoo' (emerge_info.txt,6.89 KB, text/plain)
2022-02-22 03:42 UTC, Dale Lukas Peterson
Details
emerge -pqv '=app-i18n/ibus-1.5.25-r1::gentoo' (emerge_pqv.txt,172 bytes, text/plain)
2022-02-22 03:43 UTC, Dale Lukas Peterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Lukas Peterson 2022-02-22 03:37:34 UTC
For some reason, I see the following:
/usr/bin/install: cannot stat './dicts/emoji-gd.dict': No such file or directory
install-xattr: failed to stat ./dicts/emoji-gd.dict: No such file or directory
Comment 1 Dale Lukas Peterson 2022-02-22 03:39:17 UTC
Created attachment 765592 [details]
build.log
Comment 2 Dale Lukas Peterson 2022-02-22 03:39:37 UTC
Created attachment 765593 [details]
environment
Comment 3 Dale Lukas Peterson 2022-02-22 03:42:32 UTC
Created attachment 765594 [details]
emerge --info '=app-i18n/ibus-1.5.25-r1::gentoo'
Comment 4 Dale Lukas Peterson 2022-02-22 03:43:00 UTC
Created attachment 765595 [details]
emerge -pqv '=app-i18n/ibus-1.5.25-r1::gentoo'
Comment 5 Dale Lukas Peterson 2022-02-22 03:59:01 UTC
The directory ibus-1.5.25-r1/work/ibus-1.5.25/src/dicts contains many emoji-*.dict files but emoji-gd.dict is not present there or anywhere else in the build directory. For some reason the file is not created, though the output buried in the build.log is a bit inconsistent:

Fail to generate dicts/emoji-gd.dict
/bin/sh: line 34: abrt: command not found
Generated derived dicts/emoji-gd.dict

Prior to this line it appears that this is the root cause:
(emoji-parser:1756): IBUS-^[[1;33mWARNING^[[0m **: ^[[34m19:46:44.612^[[0m: Failed to parse /usr/share/unicode/cldr/common/annotations/gd.xml: Error on line 3347 char 30: ?4ype? is not a valid name

This file exists on my system and is provided by app-i18n/unicode-cldr-40.0. I tried re-emerging it but that didn't change anything about that file nor did it fix the failure in ibus.
Comment 6 Dale Lukas Peterson 2022-02-22 04:22:46 UTC
In the unicode cldr release file https://unicode.org/Public/cldr/40/cldr-common-40.0.zip it appears there are 4 files named "gd.xml":

$ find . -name gd.xml -exec ls -al {} \;
-rw-r--r-- 1 luke luke 302310 Oct 29 16:57 ./common/annotations/gd.xml
-rw-r--r-- 1 luke luke 619563 Oct 29 16:57 ./common/main/gd.xml
-rw-r--r-- 1 luke luke 1802 Oct 29 16:57 ./common/casing/gd.xml
-rw-r--r-- 1 luke luke 539458 Oct 29 16:57 ./common/annotationsDerived/gd.xml

The first of these (common/annotations/gd.xml) is the one that gets installed to /usr/share/unicode/cldr/common/annotations/gd.xml (verified by diff).


Before I file a bug upstream, can somebody first confirm for me whether perhaps one of these other gd.xml files should instead be used?
Comment 7 Dale Lukas Peterson 2022-02-23 03:53:09 UTC
Exploring this a bit more, I can't recreate the error if I execute the command manually:

t480s /var/tmp/portage/app-i18n/ibus-1.5.25-r1/work/ibus-1.5.25/src # ll dicts/emoji-gd.dict 
ls: cannot access 'dicts/emoji-gd.dict': No such file or directory
t480s /var/tmp/portage/app-i18n/ibus-1.5.25-r1/work/ibus-1.5.25/src # ./emoji-parser --unicode-emoji-dir /usr/share/unicode/emoji --xml /usr/share/unicode/cldr/common/annotations/gd.xml --xml-derived /usr/share/unicode/cldr/common/annotations/../annotationsDerived/gd.xml --out dicts/emoji-gd.dict
t480s /var/tmp/portage/app-i18n/ibus-1.5.25-r1/work/ibus-1.5.25/src # ll dicts/emoji-gd.dict 
-rw-r--r-- 1 root root 982364 Feb 22 19:44 dicts/emoji-gd.dict

I tried to re-emerge the package and magically, it succeeded. I don't know why -- I haven't restarted, eix-sync'd, or done any other updates. I guess the system is self healing or something?
Comment 8 Matt Turner gentoo-dev 2022-04-14 20:29:57 UTC
(In reply to Dale Lukas Peterson from comment #5)
> Prior to this line it appears that this is the root cause:
> (emoji-parser:1756): IBUS-^[[1;33mWARNING^[[0m **: ^[[34m19:46:44.612^[[0m:
> Failed to parse /usr/share/unicode/cldr/common/annotations/gd.xml: Error on
> line 3347 char 30: ?4ype? is not a valid name

The obvious question is what's on line 3347?

"4ype" looks like some kind of corruption. The file has tons of type="..." bits in it.

ibus builds with both app-i18n/unicode-cldr 37.0 and 40.0 for me.