aspell-dict-* packages lack .cmap and .cset files

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • vapnik spaknik
Owner
unassigned
Submitted by
vapnik spaknik
Severity
normal
V
V
vapnik spaknik wrote on 3 Mar 2022 12:30
Fw: missing files from aspell-dict package
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
1348747934.376562.1646307019953@mail.yahoo.com
I have installed the latest versions of aspell & aspell-dict-en via guix on a foreign distro:

Toggle quote (1 lines)
> guix package --list-installed=aspell\*
aspell                0.60.8               out    /gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8
aspell-dict-en    2020.12.07-0    out    /gnu/store/v90ifhzvln0p61i6xpadjj6qvjqvr4sb-aspell-dict-en-2020.12.07-0 

However, when recollindex tries to run this aspell command it emits an error:

Toggle quote (1 lines)
> aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
Error: The language "en" is not known. This is probably because: the file "/gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8/lib/aspell-0.60/en.dat" can not be opened for reading.

If I add a --data-dir option to point to the aspell-dict-en dir which contains en.dat I get a different error:
Toggle quote (1 lines)
> aspell --data-dir=~/.guix-profile/lib/aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
Error: The file "~/.guix-profile/lib/aspell/iso-8859-1.cset" can not be opened for reading. 

The aspell installation contains cset & cmap files in its lib/aspell-0.60/ subdir, but no dat files, whereas the aspell-dict-en contains dat files but not cset or cmap files. However, aspell expects them to be in the same directory, as they are in the debian aspell package (in /usr/lib/aspell).

Joe 

p.s. "vapnik spaknik" is a randomly chosen email name for the sake of anonymity, not a shady Russian cracker. I prefer to (try to) stay anonymous online because I took heed of Richard Stallmans warnings about the internet, not because I'm doing anything dodgy. I say these things because I worry that the current political situation may invoke a negative reaction to the name in the From field of this message, and reduce its chances of being answered.
L
L
Ludovic Courtès wrote on 16 Mar 2022 14:52
(name . vapnik spaknik)(address . vapniks@yahoo.com)(address . 54238@debbugs.gnu.org)
87y21admx0.fsf@gnu.org
Hello,

vapnik spaknik <vapniks@yahoo.com> skribis:

Toggle quote (17 lines)
> I have installed the latest versions of aspell & aspell-dict-en via guix on a foreign distro:
>
>> guix package --list-installed=aspell\*
> aspell                0.60.8               out    /gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8
> aspell-dict-en    2020.12.07-0    out    /gnu/store/v90ifhzvln0p61i6xpadjj6qvjqvr4sb-aspell-dict-en-2020.12.07-0 
>
> However, when recollindex tries to run this aspell command it emits an error:
>
>> aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
> Error: The language "en" is not known. This is probably because: the file "/gnu/store/xyz0ljdw4m25k8vhnl8261ywq7dvmr49-aspell-0.60.8/lib/aspell-0.60/en.dat" can not be opened for reading.
>
> If I add a --data-dir option to point to the aspell-dict-en dir which contains en.dat I get a different error:
>> aspell --data-dir=~/.guix-profile/lib/aspell --lang=en --encoding=utf-8 create master ~/recoll/aspdict.en.rws
> Error: The file "~/.guix-profile/lib/aspell/iso-8859-1.cset" can not be opened for reading. 
>
> The aspell installation contains cset & cmap files in its lib/aspell-0.60/ subdir, but no dat files, whereas the aspell-dict-en contains dat files but not cset or cmap files. However, aspell expects them to be in the same directory, as they are in the debian aspell package (in /usr/lib/aspell).

I replied before seeing this bug report at
and asked the following questions:

Toggle quote (6 lines)
> Normally ~/.guix-profile/etc/profile does:
>
> export ASPELL_DICT_DIR="$HOME/lib/aspell“
>
> Can you confirm that’s the case?

and:

Toggle quote (12 lines)
> I’m not familiar enough with Aspell. Do you think this is a
> misconfiguration of the ‘aspell-dict-en’ package and possibly other
> ‘aspell-dict-’ packages?
>
> --8<---------------cut here---------------start------------->8---
> $ find $(guix build aspell-dict-fr ) -name \*cset
> $ find $(guix build aspell-dict-fr ) -name \*cmap
> $ find $(guix build aspell-dict-en ) -name \*cmap
> --8<---------------cut here---------------end--------------->8---
>
> Let us know if you have clues on how to fix it.

Thanks in advance for your help,
Ludo’.
L
L
Ludovic Courtès wrote on 16 Mar 2022 14:53
control message for bug #54238
(address . control@debbugs.gnu.org)
87wngudmwh.fsf@gnu.org
retitle 54238 aspell-dict-* packages lack .cmap and .cset files
quit
?