[R-pkg-team] Bug#1028130: r-cran-hunspell: please don't use internal en_US and en_GB dictionaries

Andreas Tille andreas at an3as.eu
Mon Jan 9 20:18:23 GMT 2023


Control: tags -1 help

I pushed some changes to git[1] that should fix this bug.

Unfortunately the package does not build any more (even without my
changes)[2] due to

Error: package or namespace load failed for 'hunspell' in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/builds/r-pkg-team/r-cran-hunspell/debian/output/source_dir/debian/r-cran-hunspell/usr/lib/R/site-library/00LOCK-source_dir/00new/hunspell/libs/hunspell.so':
  /builds/r-pkg-team/r-cran-hunspell/debian/output/source_dir/debian/r-cran-hunspell/usr/lib/R/site-library/00LOCK-source_dir/00new/hunspell/libs/hunspell.so: undefined symbol: _Z6u8_u16RSt6vectorI6w_charSaIS0_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
Error: loading failed
Execution halted

I checked inside the pbuilder environment

 # R CMD INSTALL -l /build/r-cran-hunspell-3.0.2\+dfsg2/debian/r-cran-hunspell/usr/lib/R/site-library  .
 # strings src/hunspell.so | grep _Z6u8_u16RSt6vectorI6w_charSaIS0_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb                                                   
 _Z6u8_u16RSt6vectorI6w_charSaIS0_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
 _Z6u8_u16RSt6vectorI6w_charSaIS0_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
 _Z6u8_u16RSt6vectorI6w_charSaIS0_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb

so that symbol exists.  I have no idea how to proceed from here.

Any help would be welcome
    Andreas.

[1] https://salsa.debian.org/r-pkg-team/r-cran-hunspell
[2] https://salsa.debian.org/r-pkg-team/r-cran-hunspell/-/jobs/3770516

Am Sat, Jan 07, 2023 at 04:28:28PM +0100 schrieb Rene Engelhard:
> Package: r-cran-hunspell
> Version: 3.0.2+dfsg-1
> Severity: important
> Tags: patch
> 
> Dear Maintainer,
> 
> I just noticed
> 
> /usr/lib/R/site-library/hunspell/dict/en_GB.aff
> /usr/lib/R/site-library/hunspell/dict/en_GB.dic
> /usr/lib/R/site-library/hunspell/dict/en_US.aff
> /usr/lib/R/site-library/hunspell/dict/en_US.dic
> /usr/lib/R/site-library/hunspell/dict/readme.txt
> 
> uh? There is
> 
> hunspell-en-gb
> hunspell-en-us
> 
> and gazillions of other dictionaries?
> 
> That one even says
> 
> Dec 2018: Updated en_US / en_GB from
>   https://extensions.libreoffice.org/extensions/english-dictionaries/2018-11.01
> 
> If there's no mechanism in R to
> handle them it seems they look in /usr/lib/R/site-library/hunspell? So
> there just can be a symlink
> 
> /usr/lib/R/site-library/hunspell/dict -> /usr/share/hunspell ?
> 
> Filing it as important as that fits its definition:
> 
> 1 important  a bug which has a major effect on the usability of a package, without rendering it completely unusable to everyone.
> 
> It doesn't seem to support anything else than en_US and en_GB, so...
> 
> Regards,
> 
> Rene
> 
> _______________________________________________
> R-pkg-team mailing list
> R-pkg-team at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/r-pkg-team
> 

-- 
http://fam-tille.de



More information about the R-pkg-team mailing list