Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794991 - app-dicts/myspell-fr-5.7 doesn’t work with GTK/GNOME applications
Summary: app-dicts/myspell-fr-5.7 doesn’t work with GTK/GNOME applications
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-06-08 20:24 UTC by Guillaume Ayoub
Modified: 2021-06-10 06:45 UTC (History)
2 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 Guillaume Ayoub 2021-06-08 20:24:03 UTC
Since version 5.7, the French dictionary is not available for the spellchecker in GTK applications, at least Epiphany and Gedit. Version 4.5 works, other languages work (I’ve tested English and Estonian).

In Gedit for example, the French dictionary is not visible in the list of available dictionaries. Other languages are listed.

Reproducible: Always

Steps to Reproduce:
1. Install myspell-fr-5.7 and Gedit-40.1
2. List the available dictionaries in Gedit (in menu: tools > define language)

Actual Results:  
French is not in the list.

Expected Results:  
French is in the list.

[Error] Failed to load resource: the server responded with a status of 400 (400) (getapi.php, line 0)
[Error] {error: "Server AboWeb Error", error_description: "Exception in getCustomerInfo method", retry: 0}
	(anonymous function) (customer.factory.js:623)
	(anonymous function) (angular.js:130:411)
	$digest (angular.js:142:179)
	$apply (angular.js:145:409)
	l (angular.js:97:257)
	D (angular.js:101:375)
	(anonymous function) (angular.js:102:399)
Comment 1 Ionen Wolkens gentoo-dev 2021-06-09 07:35:21 UTC
Looking at gedit, with myspell-fr-4.5-r1, seems it's notably opening:
9439  access("/usr/share/hunspell/fr_FR.aff", F_OK) = 0

But with myspell-fr-5.7, all *fr_FR* files in the .oxt were renamed to hyph_fr.*, thes_fr.*, and fr-toutevariantes.aff (for all variants, so this is likely fr_FR.aff)

Seem to be same as bug #699660, which I guess could be solved by compat symlinks (haven't tried).
Comment 2 Guillaume Ayoub 2021-06-09 07:50:40 UTC
(In reply to Ionen Wolkens from comment #1)
> Looking at gedit, with myspell-fr-4.5-r1, seems it's notably opening:
> 9439  access("/usr/share/hunspell/fr_FR.aff", F_OK) = 0
> 
> But with myspell-fr-5.7, all *fr_FR* files in the .oxt were renamed to
> hyph_fr.*, thes_fr.*, and fr-toutevariantes.aff (for all variants, so this
> is likely fr_FR.aff)
> 
> Seem to be same as bug #699660, which I guess could be solved by compat
> symlinks (haven't tried).

Thanks a lot for your quick reply.

You’re right, linking fr-toutesvariantes.{aff,dic} to fr_FR.{aff,dic} fixes the problem.
Comment 3 Marco Scardovi (scardracs) 2021-06-09 08:05:15 UTC
Hi, I have opened a PR in order to rename fr-toutesvariantes.{aff,dic} to fr_FR.{aff,dic}
Comment 4 Larry the Git Cow gentoo-dev 2021-06-10 06:40:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a5d842b909384d604c3bd7d8a18178af4505c17

commit 8a5d842b909384d604c3bd7d8a18178af4505c17
Author:     Marco Scardovi <marco@scardovi.com>
AuthorDate: 2021-06-09 07:59:35 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-06-10 06:38:36 +0000

    app-dicts/myspell-fr: fix naming syntax of installed files
    
    Closes: https://bugs.gentoo.org/794991
    Package-Manager: Portage-3.0.19, Repoman-3.0.3
    Signed-off-by: Marco Scardovi <marco@scardovi.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-dicts/myspell-fr/myspell-fr-5.7-r1.ebuild | 44 +++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
Comment 5 Joonas Niilola gentoo-dev 2021-06-10 06:43:58 UTC
Confirmed french spellchecking works for me on latest Gedit now with "spell" USE flag enabled. Thanks Marco!
Comment 6 Marco Scardovi (scardracs) 2021-06-10 06:45:13 UTC
Perfect :D