Bug 180781 - version bump: app-text/tesseract-1.04b
Bug#: 180781 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: chutzpah@gentoo.org Reported By: juantxorena@gmail.com
Component: Ebuilds
URL:  http://code.google.com/p/tesseract-ocr/
Summary: version bump: app-text/tesseract-1.04b
Keywords:  
Status Whiteboard: 
Opened: 2007-06-03 19:10 0000
Description:   Opened: 2007-06-03 19:10 0000
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:

------- Comment #1 From Evgeniy Kliymovich 2007-06-03 21:41:32 0000 -------
Created an attachment (id=121072) [details]
tesseract-1.04b.ebuild

New ebuild

------- Comment #2 From Evgeniy Kliymovich 2007-06-03 21:42:49 0000 -------
Created an attachment (id=121076) [details]
tesseract-1.04b.xterm-path.patch

xterm patch

------- Comment #3 From Evgeniy Kliymovich 2007-06-03 21:43:44 0000 -------
Created an attachment (id=121077) [details]
tesseract-1.04b-globals.patch

globals patch

------- Comment #4 From Evgeniy Kliymovich 2007-06-03 21:44:48 0000 -------
It work for my AMD64

------- Comment #5 From valli 2007-06-06 13:58:06 0000 -------
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

------- Comment #6 From valli 2007-06-06 14:36:15 0000 -------
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

------- Comment #7 From Evgeniy Kliymovich 2007-06-07 01:50:25 0000 -------
(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 ?

------- Comment #8 From Evgeniy Kliymovich 2007-06-07 02:47:30 0000 -------
Created an attachment (id=121370) [details]
tesseract-1.04b.ebuild

Try this new ebuild, it must work.

------- Comment #9 From valli 2007-06-07 08:24:48 0000 -------
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

------- Comment #10 From Evgeniy Kliymovich 2007-06-07 11:43:30 0000 -------
(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 ?

------- Comment #11 From valli 2007-06-08 07:53:31 0000 -------
The --datadir=/usr/$(get_libdir)/${PN} option is necessary.
The sed-thing not.

------- Comment #12 From Patrick McLean 2007-07-10 18:32:07 0000 -------
Done.