FS#59401 - [hunspell-en_US] Need alias for en_US itself since dictionary is named en_US-large nowadays

Attached to Project: Arch Linux
Opened by Oscar (Titan-C) - Friday, 20 July 2018, 14:16 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 12 August 2018, 18:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 11
Private No

Details

Description:

Started receiving the message
"Can't open affix or dictionary files for dictionary named "en_US"" with recent update.

Additional info:
* hunspell-en_US 2018.04.16-1

Steps to reproduce:
Update dictionary to current version. And have "en_US" as locale. Since dictionary can't be found hunspell does not work.

Proposed solution:
change variable in PKGBUILD to

en_US_aliases="en_PH en_US"

Would prepare the patch myself but I don't know how.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 12 August 2018, 18:17 GMT
Reason for closing:  Fixed
Comment by Martin Morlot (mmdoublem) - Tuesday, 24 July 2018, 08:25 GMT
Can be fixed by:

ln -s /usr/share/hunspell/en_US-large.dic usr/share/hunspell/en_US.dic
ln -s /usr/share/hunspell/en_US-large.aff /usr/share/hunspell/en_US.aff

the same error is present for hunspell-en_CA
Comment by Clemmitt Sigler (cmsigler) - Tuesday, 24 July 2018, 23:07 GMT
I believe the bug is in hunspell-en 2018.04.16-1. That package installs all the symlinks from *.{dic,aff} -> *-large.{dic,aff}. The symlink /usr/share/hunspell/en_US.{dic,aff} -> en_US-large.{dic,aff} is missing from hunspell-en 2018.04.16-1.

NOTE that this causes spellcheck to break for me in libreoffice-fresh with en_US-based locale (LANG=en_US.utf8).

HTH.

Clemmitt
Comment by f (bakgwailo) - Wednesday, 25 July 2018, 02:28 GMT
I can also confirm that I am seeing this my two system I updated. Downgrading to the previous versions seems to solve things.
Comment by Andreas Radke (AndyRTR) - Thursday, 09 August 2018, 19:35 GMT
Please test 2018.04.16-2 with symlinks added for en_US, en_CA and en_AU.
Comment by Clemmitt Sigler (cmsigler) - Thursday, 09 August 2018, 20:54 GMT
@Andreas,

I installed hunspell-en 2018.04.16-2 and all four hunspell-en_XX dependencies from testing, then tested by editing documents in LibreOffice Fresh. Spellcheck again works as expected. Thank you!

NOTE: If anyone hacked in soft links from /usr/share/hunspell/en_US.{dic,aff} -> /usr/share/hunspell/en_US-large.{dic,aff} they'll need to be rm'ed before installing the new packages. Obviously :)

Clemmitt
Comment by Christopher Napoli (Annoyingduck) - Thursday, 09 August 2018, 20:59 GMT
Clemmitt, I did "hack" in the links between the files, what's the correct command to remove the symlinks for when the updated packages reach the stable repos?
Comment by loqs (loqs) - Thursday, 09 August 2018, 21:08 GMT
@AndyRTR tested hunspell-en 2018.04.16-2 working as expected. Thank You.
Would be nice as a wish list item if the dependant packages supplied the symlinks so installing all four was not required.
Comment by Keith Curtis (KeithCu) - Friday, 10 August 2018, 00:50 GMT
Fixed for me from testing bits too. Thank you! At first I thought LibreOffice was mis-behaving. This is the first Arch bug I've run into in 5 years, and it's fixed within a day of me noticing it. Very nice ;-)
Comment by Clemmitt Sigler (cmsigler) - Friday, 10 August 2018, 01:07 GMT
@Annoyingduck,

Very simple:

$ sudo rm -i /usr/share/hunspell/en_US.dic /usr/share/hunspell/en_US.aff

HTH

Clemmitt
Comment by nl6720 (nl6720) - Saturday, 11 August 2018, 16:40 GMT
The en_US.dic symlink should be packaged in the hunspell-en_US package.
Comment by Andreas Radke (AndyRTR) - Sunday, 12 August 2018, 18:17 GMT
Symlinks moved in 2018.04.16-3 - also dropped unneeded generic all-in-one hunspell-en pkg.

Loading...