Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297553 - app-text/tesseract - Enhancements to build shared libs with libtool
Summary: app-text/tesseract - Enhancements to build shared libs with libtool
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Patrick McLean
URL: http://code.google.com/p/tesseract-oc...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-19 18:00 UTC by James Le Cuirot
Modified: 2012-07-12 20:24 UTC (History)
2 users (show)

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


Attachments
tesseract-2.04-r1.ebuild (tesseract-2.04-r1.ebuild,2.26 KB, text/plain)
2009-12-19 18:02 UTC, James Le Cuirot
Details
tesseract-pic.patch (tesseract-pic.patch,483 bytes, patch)
2010-05-24 21:49 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2009-12-19 18:00:25 UTC
All packages in the tree that are currently depending on tesseract have it as an RDEPEND so I assume that they all use it through the tesseract binary program. However I needed to use it at the API level. Upstream does not make use of libtool and so it only installs static libraries. I found that I wasn't able to link to these due to PIC issues so I came up with some new autotools scripts and a corresponding ebuild.

There are issues (like I wasn't able to build the libtesseract_full bundle) but none of these should affect anything in the tree. libtesseract_full appears to have gone from the upcoming 3.0 release. I originally wrote scripts for this release but I couldn't get it to work properly. Unfortunately upstream seems to be in a coma.
Comment 1 James Le Cuirot gentoo-dev 2009-12-19 18:02:38 UTC
Created attachment 213489 [details]
tesseract-2.04-r1.ebuild

The ebuild. See the given URL for details upstream.

I may try to create an ebuild for Audiveris, the program I'm using with Tesseract, but it's written in Java and has many dependencies. Could be tricky.
Comment 2 James Le Cuirot gentoo-dev 2009-12-22 17:46:18 UTC
I've managed to package Audiveris and am now ready to commit it to java-overlay. I don't want to have to commit a copy of Tesseract to the overlay if it can be helped so I'd appreciate it if this could be looked at.
Comment 3 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2010-02-08 20:05:04 UTC
I'm not sure that kind of stuff should be added by Gentoo.
IMO, upstream should accept your patches before Gentoo use them.
Comment 4 James Le Cuirot gentoo-dev 2010-02-08 21:18:49 UTC
Upstream hasn't made a single commit and hasn't commented on a single issue since August. That's a worrying sign on a project as big as this. It looks to me as though someone from Google took up the project, got it working as well as they needed to, and moved on.

Without this, a package for Audiveris literally will not build on amd64, among others, due to the PIC issues. This is nothing special about Tesseract, it's a fix we would apply to any library. I agree that upstream being dead is an issue but none of the other OCR libraries on Linux are close to being as good as this one.

If it helps, maybe we could get someone who really knows about PIC and autotools (e.g. flameeyes) to take a look at it.
Comment 5 James Le Cuirot gentoo-dev 2010-02-08 21:28:12 UTC
I should add that I'd like to package Audiveris for other distros too (or at least Ubuntu) so I'll be approaching them about this issue as well.
Comment 6 James Le Cuirot gentoo-dev 2010-05-24 21:49:18 UTC
Created attachment 232787 [details, diff]
tesseract-pic.patch

I've decided to change tack on this slightly. In the past few days, there have been new commits upstream but I still feel that getting this stuff committed for 2.04 would be a stretch. The upcoming 3.0 seems like a safer bet.

I still want to use 2.04 for now though and I've also noticed that Ubuntu's amd64 Tesseract package has been built with -fPIC, allowing its static libraries to be linked into shared libraries.

I therefore propose that you apply the attached patch and build with -fPIC on amd64.
Comment 7 James Le Cuirot gentoo-dev 2010-06-11 22:32:26 UTC
3.0 has now been given the libtool treatment in SVN, which is great, but I'd still like the simple ebuild patch applied for 2.04. Please, I can't make it any easier!
Comment 8 Haze 2010-10-27 19:47:17 UTC
Hello.
When I make "ebuild tesseract-2.04-r1.ebuild digest" , it can't find the file "tesseract-2.04-autotools.tar.gz" 

>>>
!!! Couldn't download 'tesseract-2.04-autotools.tar.gz'. Aborting.
!!! Fetch failed for tesseract-2.04-autotools.tar.gz, can't update Manifest
<<<

So what I must do for make the digest of this package please?
When I'm going to url in the ebuild, I don't see and find this file...
I have tucan installed but he want the last tesseract with the linguas_en IUSE.. So I'm disappointing. 

Thnaks a lot.
Comment 9 James Le Cuirot gentoo-dev 2010-10-27 20:30:21 UTC
gentooexperimental.org has been down for months and I don't know if it'll ever return. This should probably be closed now because version 3 has been released with libtool support.
Comment 10 Haze 2010-10-27 21:35:06 UTC
(In reply to comment #9)
> gentooexperimental.org has been down for months and I don't know if it'll ever
> return. This should probably be closed now because version 3 has been released
> with libtool support.
> 

OK thats good , i had found the file on the "dev.gentooexperimental.org" server.

2 hours ago the server was down but now it's working.

Sorry for the useless post.
Comment 11 James Le Cuirot gentoo-dev 2012-07-12 20:24:40 UTC
Tesseract 3 was released a good while back and as well as supporting shared libraries, it's just much better so I'm closing this now.