TritonDataCenter / pkgsrc

NetBSD/pkgsrc fork for our binary package repositories
https://pkgsrc.smartos.org/
131 stars 51 forks source link

pkgsrc enchant2 does not find dictionaries on macOS #368

Open rnkn opened 9 months ago

rnkn commented 9 months ago

Hello,

I've encountered an interesting problem. When building the enchant2 spellchecker from pkgsrc on macOS it builds successfully but then fails to find the AppleSpell dictionaries, whereas when building from the release tarball it succeeds in finding the dictionaries and working as expected.

To reproduce:

  1. $ cd textproc/enchant2
  2. $ export PKG_OPTIONS.enchant2 = -hunspell
  3. $ bmake
  4. # bmake install
  5. # echo '*:AppleSpell' > /opt/pkg/etc/enchant.ordering
  6. $ enchant-lsmod-2 -list-dicts

Expected results:

Output of AppleSpell dictionaries:

de_DE (AppleSpell)
en_AU (AppleSpell)
en_CA (AppleSpell)
en_GB (AppleSpell)
en_US (AppleSpell)
es_ES (AppleSpell)
fr_FR (AppleSpell)
hu_HU (AppleSpell)
it_IT (AppleSpell)
nl_NL (AppleSpell)
pt_BR (AppleSpell)
sv_SE (AppleSpell)

Actual results:

Nothing.

Whereas when built from source I get the expected results.

Please let me know if this should be reported to pkgsrc/NetBSD instead.