Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427288 - app-dicts/myspell-it/-fr forget to install dic/aff files
Summary: app-dicts/myspell-it/-fr forget to install dic/aff files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 427228
  Show dependency tree
 
Reported: 2012-07-20 09:54 UTC by sphakka
Modified: 2012-07-25 17:36 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 sphakka 2012-07-20 09:54:08 UTC
It looks like myspell-it/fr forget to install the actual dic/aff files, in place of them I only see circular symlinks:

# pwd
/usr/share/hunspell
# ll fr* it*
lrwxrwxrwx 1 root root      36 Jul 19 16:34 fr-classique.aff -> /usr/share/hunspell/fr-classique.aff
lrwxrwxrwx 1 root root      36 Jul 19 16:34 fr-classique.dic -> /usr/share/hunspell/fr-classique.dic
...
lrwxrwxrwx 1 root root       29 Jul 19 16:34 it_IT.aff -> /usr/share/hunspell/it_IT.aff
lrwxrwxrwx 1 root root       29 Jul 19 16:34 it_IT.dic -> /usr/share/hunspell/it_IT.dic

The bug manifests itself in SeaMonkey (Bug #427228 -- https://bugs.gentoo.org/show_bug.cgi?id=427228).


Reproducible: Always
Comment 1 sphakka 2012-07-20 10:08:16 UTC
I also see structural differences between myspell-it/fr ebuild and others, like myspell-en/uk... Are those ebuild broken? It looks like there's some general incoherence across myspell-* ebuilds...
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2012-07-25 13:16:09 UTC
The bug is invalid from what I see, the files are in the hunspell folder and myspell folder contain the symlinks:

>>> /usr/share/hunspell/it_IT.dic
>>> /usr/share/hunspell/it_IT.aff
>>> /usr/share/myspell/it_IT.dic -> /usr/share/hunspell/it_IT.dic
>>> /usr/share/myspell/it_IT.aff -> /usr/share/hunspell/it_IT.aff

>>> /usr/share/hunspell/fr-reforme1990.dic
>>> /usr/share/hunspell/fr-reforme1990.aff
>>> /usr/share/hunspell/fr_FR.dic
>>> /usr/share/hunspell/fr_FR.aff
>>> /usr/share/hunspell/fr-classique.dic
>>> /usr/share/hunspell/fr-classique.aff
>>> /usr/share/hunspell/fr-moderne.dic
>>> /usr/share/hunspell/fr-moderne.aff
>>> /usr/share/myspell/fr-reforme1990.dic -> /usr/share/hunspell/fr-reforme1990.dic
>>> /usr/share/myspell/fr-reforme1990.aff -> /usr/share/hunspell/fr-reforme1990.aff
>>> /usr/share/myspell/fr_FR.dic -> /usr/share/hunspell/fr_FR.dic
>>> /usr/share/myspell/fr_FR.aff -> /usr/share/hunspell/fr_FR.aff
>>> /usr/share/myspell/fr-classique.dic -> /usr/share/hunspell/fr-classique.dic
>>> /usr/share/myspell/fr-classique.aff -> /usr/share/hunspell/fr-classique.aff
>>> /usr/share/myspell/fr-moderne.dic -> /usr/share/hunspell/fr-moderne.dic
>>> /usr/share/myspell/fr-moderne.aff -> /usr/share/hunspell/fr-moderne.aff

scarabeus@htpc: /usr/share/hunspell $ l
celkem 6,9M
drwxr-xr-x   2 root root 4,0K 25. čec 15.13 ./
drwxr-xr-x 109 root root 4,0K 25. čec 15.12 ../
-rw-r--r--   1 root root 325K 25. čec 15.13 fr-classique.aff
-rw-r--r--   1 root root 1,1M 25. čec 15.13 fr-classique.dic
-rw-r--r--   1 root root 397K 25. čec 15.13 fr_FR.aff
-rw-r--r--   1 root root 1,1M 25. čec 15.13 fr_FR.dic
-rw-r--r--   1 root root 325K 25. čec 15.13 fr-moderne.aff
-rw-r--r--   1 root root 1,1M 25. čec 15.13 fr-moderne.dic
-rw-r--r--   1 root root 373K 25. čec 15.13 fr-reforme1990.aff
-rw-r--r--   1 root root 1,1M 25. čec 15.13 fr-reforme1990.dic
-rw-r--r--   1 root root  79K 25. čec 15.12 it_IT.aff
-rw-r--r--   1 root root 1,3M 25. čec 15.12 it_IT.dic


Please reopen if you figure whats wrong with your system.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-07-25 13:18:52 UTC
Also from looking on what I wrote in the eclass there is no way for user to define the dirs, so really I have no idea what is with your system:

    # Following the debian directory layout here.
    # DICT: /usr/share/hunspell
    # THES: /usr/share/mythes
    # HYPH: /usr/share/hyphen
    # We just need to copy the required files to proper places.

    # TODO: backcompat dosym remove when all dictionaries and libreoffice
    #       ebuilds in tree use only the new paths

    insinto /usr/share/hunspell
    for x in "${MYSPELL_DICT[@]}"; do
        target="${x##*/}"
        newins "${x}" "${target}" || die
        dosym /usr/share/hunspell/"${target}" /usr/share/myspell/"${target}" || die
    done

    insinto /usr/share/mythes
    for x in "${MYSPELL_THES[@]}"; do
        target="${x##*/}"
        newins "${x}" "${target}" || die
        dosym /usr/share/mythes/"${target}" /usr/share/myspell/"${target}" || die
    done

    insinto /usr/share/hyphen
    for x in "${MYSPELL_HYPH[@]}"; do
        target="${x##*/}"
        newins "${x}" "${target}" || die
        dosym /usr/share/hyphen/"${target}" /usr/share/myspell/"${target}" || die
    done
Comment 4 sphakka 2012-07-25 17:36:37 UTC
Ouch, I just discovered that I had a symlink

  /usr/share/hunspell -> /usr/share/myspell

so, no wonder that any symlink created in /usr/share/myspell ended up stomping on itself... Removing the rogue symlink (no idea why it was there) and reinstalling fixes the problem!
Sorry for the confusion!