A new version of tesseract has been released some days ago, 1.04b (the "b" doesn't stands for "beta", is a bugfix upgrade over the 1.04 version). Also the webpage of the project has finally changed to the one in the URL field, this should be changed in the ebuild also (in the new one and maybe in the older ones). Excuse me for not providing an update ebuild, I have no time now for this kind of things. I write this bugreport in hope than someone with more experience and time can do it. Reproducible: Always Steps to Reproduce:
Created attachment 121072 [details] tesseract-1.04b.ebuild New ebuild
Created attachment 121076 [details, diff] tesseract-1.04b.xterm-path.patch xterm patch
Created attachment 121077 [details, diff] tesseract-1.04b-globals.patch globals patch
It work for my AMD64
I receive the following error on my x86: Error: Unable to open unicharset! Fatal error: No error trap defined! Signal_termination_handler called with signal 3000 Signal_exit 30 SIGNAL ABORT. LocCode: 3 SignalCode: 3
Found the reason for the unicharset problem (via strace): Tesseract tries to open the following file: /usr/share/tessdata/eng.unicharset ... but this file will be installed by the ebuild in /usr/lib/tesseract/tessdata/eng.unicharset
(In reply to comment #6) > Found the reason for the unicharset problem (via strace): > > Tesseract tries to open the following file: > /usr/share/tessdata/eng.unicharset > > ... but this file will be installed by the ebuild in > /usr/lib/tesseract/tessdata/eng.unicharset > Can you post command which you run when received this error ?
Created attachment 121370 [details] tesseract-1.04b.ebuild Try this new ebuild, it must work.
Hello Evgeniy, First the command which I run: > tesseract phototest.tif testout (the image phototest.tif is in the tesseract tarball) The new ebuild works fine, even withou the following line in src_unpack(): sed -i -e "s/datadir = \${prefix}\/share\/tessdata/datadir = \${prefix}\/$(get_libdir)\/${PN}/" ${WORKDIR}/tesseract-1.04/tessdata/Makefile I think this isn't necessary. Thanx
(In reply to comment #9) > Hello Evgeniy, > First the command which I run: > > tesseract phototest.tif testout > (the image phototest.tif is in the tesseract tarball) > > The new ebuild works fine, even withou the following line in src_unpack(): > sed -i -e "s/datadir = \${prefix}\/share\/tessdata/datadir = > \${prefix}\/$(get_libdir)\/${PN}/" ${WORKDIR}/tesseract-1.04/tessdata/Makefile > > I think this isn't necessary. > > Thanx > Without --datadir=/usr/$(get_libdir)/${PN} option on econf line ?
The --datadir=/usr/$(get_libdir)/${PN} option is necessary. The sed-thing not.
Done.