Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180781 - version bump: app-text/tesseract-1.04b
Summary: version bump: app-text/tesseract-1.04b
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Patrick McLean
URL: http://code.google.com/p/tesseract-ocr/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-03 19:10 UTC by juantxorena@gmail.com
Modified: 2007-07-10 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tesseract-1.04b.ebuild (tesseract-1.04b.ebuild,1.24 KB, text/plain)
2007-06-03 21:41 UTC, Evgeniy Kliymovich
Details
tesseract-1.04b.xterm-path.patch (tesseract-1.04b.xterm-path.patch,525 bytes, patch)
2007-06-03 21:42 UTC, Evgeniy Kliymovich
Details | Diff
tesseract-1.04b-globals.patch (tesseract-1.04b-globals.patch,1.67 KB, patch)
2007-06-03 21:43 UTC, Evgeniy Kliymovich
Details | Diff
tesseract-1.04b.ebuild (tesseract-1.04b.ebuild,1.41 KB, text/plain)
2007-06-07 02:47 UTC, Evgeniy Kliymovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description juantxorena@gmail.com 2007-06-03 19:10:03 UTC
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 Evgeniy Kliymovich 2007-06-03 21:41:32 UTC
Created attachment 121072 [details]
tesseract-1.04b.ebuild

New ebuild
Comment 2 Evgeniy Kliymovich 2007-06-03 21:42:49 UTC
Created attachment 121076 [details, diff]
tesseract-1.04b.xterm-path.patch

xterm patch
Comment 3 Evgeniy Kliymovich 2007-06-03 21:43:44 UTC
Created attachment 121077 [details, diff]
tesseract-1.04b-globals.patch

globals patch
Comment 4 Evgeniy Kliymovich 2007-06-03 21:44:48 UTC
It work for my AMD64
Comment 5 valli 2007-06-06 13:58:06 UTC
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 valli 2007-06-06 14:36:15 UTC
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 Evgeniy Kliymovich 2007-06-07 01:50:25 UTC
(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 Evgeniy Kliymovich 2007-06-07 02:47:30 UTC
Created attachment 121370 [details]
tesseract-1.04b.ebuild

Try this new ebuild, it must work.
Comment 9 valli 2007-06-07 08:24:48 UTC
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 Evgeniy Kliymovich 2007-06-07 11:43:30 UTC
(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 valli 2007-06-08 07:53:31 UTC
The --datadir=/usr/$(get_libdir)/${PN} option is necessary.
The sed-thing not.
Comment 12 Patrick McLean gentoo-dev 2007-07-10 18:32:07 UTC
Done.