Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709742 - kde-plasma/plasma-desktop-5.18.0 USE=emoji for media-fonts/noto-emoji picker support
Summary: kde-plasma/plasma-desktop-5.18.0 USE=emoji for media-fonts/noto-emoji picker ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay
Depends on: 716074
Blocks:
  Show dependency tree
 
Reported: 2020-02-15 19:20 UTC by Marco Genasci
Modified: 2020-09-29 12:49 UTC (History)
4 users (show)

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


Attachments
proper fontconfig file (75-noto-color-emoji.conf,4.09 KB, text/plain)
2020-05-23 01:54 UTC, Georgy Yakovlev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2020-02-15 19:20:44 UTC
kde-plasma/plasma-desktop-5.18.0[ibus] enable new emoji picker [1] but without media-fonts/noto-emoji this not work very well, many emoji are missing.

[1] https://pointieststick.com/2019/12/08/this-week-in-kde-easy-emoji-input-and-more/

Reproducible: Always
Comment 1 Till Schäfer 2020-03-07 00:25:40 UTC
Maybe, there should be a more meaningful use flag "emoji" or something like that on the plasma meta package, that depends on plasma-desktop[ibus] and noto-emoji. 

However, it should depend on a more recent, that in tree version of noto-emoji. With the current version of noto-emoji, the emoji-picker is broken (shows only a few emoji and and all of them are black/white. See Bug 701702 and https://www.reddit.com/r/kde/comments/f34ean/the_new_emoji_picker/
Comment 2 Andreas Sturmlechner gentoo-dev 2020-03-21 19:32:21 UTC
app-i18n/ibus itself has an emoji flag, does this support depend on it being enabled as well?
Comment 3 Marco Genasci 2020-03-22 10:48:44 UTC
Yes ibus need emoji use flag enabled, without this emoji-picker window is empty
Comment 4 Larry the Git Cow gentoo-dev 2020-03-22 15:44:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=fef7fd441a44f4d38435a326bf21172eb26e3589

commit fef7fd441a44f4d38435a326bf21172eb26e3589
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-03-22 15:32:32 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-03-22 15:44:07 +0000

    kde-plasma/plasma-desktop: Add USE emoji
    
    Bug: https://bugs.gentoo.org/709742
    Package-Manager: Portage-2.3.94, Repoman-2.3.21
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/plasma-desktop/metadata.xml             |  1 +
 .../plasma-desktop-5.18.49.9999.ebuild             | 22 +++++++++++++++++++---
 .../plasma-desktop/plasma-desktop-9999.ebuild      | 20 ++++++++++++++++++--
 3 files changed, 38 insertions(+), 5 deletions(-)
Comment 5 Andreas Sturmlechner gentoo-dev 2020-03-22 15:45:44 UTC
(In reply to Till Schäfer from comment #1)
> However, it should depend on a more recent, that in tree version of
> noto-emoji. With the current version of noto-emoji, the emoji-picker is
> broken (shows only a few emoji and and all of them are black/white. See Bug
> 701702 and https://www.reddit.com/r/kde/comments/f34ean/the_new_emoji_picker/

I have installed media-fonts/noto-emoji-20200311 but what I see still matches your description.
Comment 6 Till Schäfer 2020-03-23 12:51:26 UTC
I can confirm, that the problem persists after upgrading to media-fonts/noto-emoji-20200311. I have also tried to upgrade to fonttools 4.0 with no luck (dev-python/defcon PYTHON_TARGETS: -python2_7 is needed for that).
Comment 7 Till Schäfer 2020-03-23 13:16:05 UTC
found a way to get it working by looking at the arch changes mentioned in the reddit discussion. 

seems like arch installs and activates the following fallback rule for noto fonts 

https://git.archlinux.org/svntogit/packages.git/tree/trunk/66-noto-color-emoji.conf?h=packages/noto-fonts-emoji

When i install that file to /etc/font/conf.avail and enable it (eselect fontconfig enable 66-noto-color-emoji.conf), the emoji picker shows colored emojis.
Comment 8 Georgy Yakovlev archtester gentoo-dev 2020-05-23 01:54:32 UTC
Created attachment 640948 [details]
proper fontconfig file

I found that fontconfig file above from arch repos is not enough to enable system-wide emoji support, attaching file that works consistently everywhere (tested qt apps, gtk apps, chromium, firefox and some random text editors)

this should really be a part of noto-emoji package.
Comment 9 Andreas Sturmlechner gentoo-dev 2020-08-30 20:01:50 UTC
So, what do we do with this now? Plasma 5.19.5 is just around the corner which will be our next stable candidate.
Comment 10 Larry the Git Cow gentoo-dev 2020-09-29 12:49:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bab4991442bc50bbca56075d3842cc2bf90a4a4

commit 0bab4991442bc50bbca56075d3842cc2bf90a4a4
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-09-28 23:11:20 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-09-29 12:46:45 +0000

    kde-plasma/plasma-desktop: Add IUSE=emoji
    
    Closes: https://bugs.gentoo.org/709742
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...5.19.5-force-emojier-use-color-emoji-font.patch | 24 ++++++++++++++++++++++
 kde-plasma/plasma-desktop/metadata.xml             |  1 +
 .../plasma-desktop/plasma-desktop-5.19.5.ebuild    | 10 +++++++--
 3 files changed, 33 insertions(+), 2 deletions(-)