Summary: | app-text/cuneiform (New package) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aleksandr Yakimov <yaleks> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | VERIFIED FIXED | ||
Severity: | enhancement | CC: | aspotashev, chutzpah, dREPLACEeLETTEReEjBYeLETTEReA, pva, spock, tex, yamadharma |
Priority: | High | Keywords: | EBUILD, InOverlay |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://launchpad.net/cuneiform-linux | ||
Whiteboard: | [sunrise-overlay] | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 267746, 278013 | ||
Attachments: |
cuneiform-0.3.ebuild
r215..218 cuneiform-0.2.ebuild r204, r215..218 cuneiform-0.3.ebuild cuneiform-0.3-pragma-fix.patch.bz2 cuneiform-0.3.1.ebuild Ebuild for cuneiform 0.5 app-text/cuneiform/files/visibility.patch app-text/cuneiform/cuneiform-0.5.ebuild cuneiform_bug.png, emerge --info, environment |
Description
Aleksandr Yakimov
2008-08-15 14:11:28 UTC
Created attachment 162965 [details]
cuneiform-0.3.ebuild
Sorry for spam (refixing summary)... Created attachment 162992 [details, diff]
r215..218
Support for "make install" in cuneiform-linux-0.2
Created attachment 163041 [details]
cuneiform-0.2.ebuild
cuneiform-linux-0.3 is not usable. This is a more stable version.
Created attachment 163042 [details]
r204, r215..218
Support for "make install" in cuneiform-linux-0.2
For the record, cuneiform-0.2 is not 64 bit clean. I get the following error on amd64: [ 69%] Building CXX object cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/sources/main/pagetree.o /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:229: warning: converting to non-pointer type 'unsigned int' from NULL /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp: In function 'int ConsMess(const char*, ...)': /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:246: warning: converting to non-pointer type 'unsigned int' from NULL /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:268: error: cast from 'COPYDATASTRUCT*' to 'int' loses precision /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp: In function 'BOOL PageTree(char*, CRtfPage*, char*)': /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:1885: warning: comparison is always true due to limited range of data type make[2]: *** [cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/sources/main/pagetree.o] Error 1 make[1]: *** [cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/all] Error 2 make: *** [all] Error 2 (In reply to comment #1) > Created an attachment (id=162965) [edit] > cuneiform-0.3.ebuild > Install fail on amd64 >>> Completed installing cuneiform-0.3 into /var/tmp/portage/app-text/cuneiform-0.3/image/ strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment usr/lib/libwindummy.so usr/lib/libccom.so usr/lib/libcstr.so usr/lib/librstr.so usr/lib/librpstr.so usr/lib/libcline.so usr/lib/libfon.so usr/lib/libleo.so usr/lib/libevn32.so usr/lib/libcpage.so usr/lib/libcimage.so usr/lib/libcfio.so usr/lib/libpuma.so usr/lib/librline.so usr/lib/librcutp.so usr/lib/libdif.so usr/lib/libmsk.so usr/lib/librling.so usr/lib/librlings.so usr/lib/libctb32.so usr/lib/librsadd.so usr/lib/libstd32.so usr/lib/libpass2.so usr/lib/librbal.so usr/lib/libmmx.so usr/lib/libr35.so usr/lib/libcpu.so usr/lib/librdib.so usr/lib/libloc.so usr/lib/libced.so usr/lib/libexc.so usr/lib/librimage.so usr/lib/librverline.so usr/lib/librout.so usr/lib/librblock.so usr/lib/librselstr.so usr/lib/librfrmt.so usr/lib/librshelllines.so usr/lib/liblns32.so usr/lib/librreccom.so usr/lib/libsmetric.so usr/lib/librneg.so usr/lib/librpic.so usr/lib/librstuff.so usr/lib/librmarker.so usr/lib/librcorrkegl.so usr/bin/cuneiform Files matching a file type that is not allowed: usr/lib/libwindummy.so usr/lib/libccom.so usr/lib/libcstr.so usr/lib/librstr.so usr/lib/librpstr.so usr/lib/libcline.so usr/lib/libfon.so usr/lib/libleo.so usr/lib/libevn32.so usr/lib/libcpage.so usr/lib/libcimage.so usr/lib/libcfio.so usr/lib/libpuma.so usr/lib/librline.so usr/lib/librcutp.so usr/lib/libdif.so usr/lib/libmsk.so usr/lib/librling.so usr/lib/librlings.so usr/lib/libctb32.so usr/lib/librsadd.so usr/lib/libstd32.so usr/lib/libpass2.so usr/lib/librbal.so usr/lib/libmmx.so usr/lib/libr35.so usr/lib/libcpu.so usr/lib/librdib.so usr/lib/libloc.so usr/lib/libced.so usr/lib/libexc.so usr/lib/librimage.so usr/lib/librverline.so usr/lib/librout.so usr/lib/librblock.so usr/lib/librselstr.so usr/lib/librfrmt.so usr/lib/librshelllines.so usr/lib/liblns32.so usr/lib/librreccom.so usr/lib/libsmetric.so usr/lib/librneg.so usr/lib/librpic.so usr/lib/librstuff.so usr/lib/librmarker.so usr/lib/librcorrkegl.so * * ERROR: app-text/cuneiform-0.3 failed. * Call stack: * misc-functions.sh, line 609: Called install_qa_check * misc-functions.sh, line 360: Called die * The specific snippet of code: * [[ ${abort} == yes ]] && die "multilib-strict check failed!" * The die message: * multilib-strict check failed! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-text/cuneiform-0.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/cuneiform-0.3/temp/environment'. * This ebuild is from an overlay: '/media/storage/repositories/selfip/' * !!! install_qa_check failed; exiting. (In reply to comment #6) > For the record, cuneiform-0.2 is not 64 bit clean. I get the following error on > amd64: > Do you see the "amd64" keyword in cuneiform-0.2? This version only for x86_32. Created attachment 163314 [details]
cuneiform-0.3.ebuild
~x86 only
Created attachment 163316 [details]
cuneiform-0.3-pragma-fix.patch.bz2
Cuneiform is now in the sunrise overlay. You can get the latest version from http://overlays.gentoo.org/svn/proj/sunrise/reviewed/app-text/cuneiform/ Created attachment 163477 [details] cuneiform-0.3.1.ebuild ~amd64 ~x86 Works out of the box, comment #7 fixed. Created attachment 173536 [details]
Ebuild for cuneiform 0.5
Ebuild for cuneiform 0.5 based on the ebuild for version 0.3.
Primary change: Sources require cmake >=2.6.0.
Created attachment 175932 [details, diff]
app-text/cuneiform/files/visibility.patch
Created attachment 175934 [details]
app-text/cuneiform/cuneiform-0.5.ebuild
(In reply to comment #14) > Created an attachment (id=175932) [edit] > app-text/cuneiform/files/visibility.patch > (In reply to comment #15) > Created an attachment (id=175934) [edit] > app-text/cuneiform/cuneiform-0.5.ebuild > This is from sunrise overlay. Not needed to publish this files here. See comment #11 Да, но там нет этого патча. А без него у меня нне компилится (binutils-2.19, amd64) (In reply to comment #17) > Да, но там нет этого патча. А без него у меня > нне компилится (binutils-2.19, amd64) > Really?! Just see http://overlays.gentoo.org/svn/proj/sunrise/reviewed/app-text/cuneiform/ChangeLog Факт. Проявил невнимательность. Виснет на распаковке: // hangs on unpacking
>>> Unpacking cuneiform-0.5.tar.bz2 to /mnt/sdd-18g/sdd8/tmp/portage/app-text/cuneiform-0.5/work
Битый архив? // broken archive?
(In reply to comment #20) > Виснет на распаковке: // hangs on unpacking > >>> Unpacking cuneiform-0.5.tar.bz2 to /mnt/sdd-18g/sdd8/tmp/portage/app-text/cuneiform-0.5/work > > Битый архив? // broken archive? > Check Manifest DIST cuneiform-0.5-visibility.patch.bz2 14938 RMD160 39f356066fde62b92e6588931e7bcee7a2186e53 SHA1 d8aeba54213d5672678c0399f62213ec1cc0da0f SHA256 6ce1b7af9068a1a64e301f38f83de90b70e6b7607d6bbe0c4575f70f5e686ba7 DIST cuneiform-0.5.tar.bz2 30109795 RMD160 16acbb0048c263b4443d5b0f1c9f8861e118a5c9 SHA1 d36c0e67d1da7bc7c2b3462128344d3a92ce845d SHA256 ab2f9a80d8d541cc00769fc7099846e3410607e9f3d7660b23d088ac03f4c7dd Use Sunrise overlay ( http://gentoo.ru/node/11137 ) and cuneiform-0.6. > Use Sunrise overlay ( http://gentoo.ru/node/11137 ) and cuneiform-0.6.
I hate both layman and svn, but thanks anyway ;)
While installing cuneiform-0.7 from the sunrise overlay, it hangs because of wrong file size: 2009-06-08 20:35:32 (4,11 MB/s) - »/usr/portage/distfiles/cuneiform-linux-0.7.tar.bz2« gespeichert [29158105/29158105] ('Filesize does not match recorded size', 29158105, 28758365) !!! Fetched file: cuneiform-linux-0.7.tar.bz2 VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 29158105 !!! Expected: 28758365 Refetching... File renamed to '/usr/portage/distfiles/cuneiform-linux-0.7.tar.bz2._checksum_failure_.E49sBs' (In reply to comment #23) > While installing cuneiform-0.7 from the sunrise overlay, it hangs because of > wrong file size: > Thanks for report. Fixed in SVN. Thank you guys. This package now in the main tree. Created attachment 206296 [details]
cuneiform_bug.png, emerge --info, environment
cuneiform -f text -o b.txt b.png
stalls indefinitely when running on ~amd64 on attached image (I have app-text/cuneiform-0.7). See attached .tar.gz for emerge --info and anonymized environment variables. On ~x86, there is a simple segfault.
I have additionnal bugs related to "*** glibc detected *** cuneiform: double free or corruption (!prev): 0x0000000000b62f20 ***", I also submit them if I get an answer to this bug. I think my bug cames from bash. This is the exact bash fragment with the deadlock that I complained in #26: { test $notesseract = 0 && convert ${costfile%.costs}.png b.bmp && tesseract b.bmp ${costfile%.costs}tess -l $tesslanguage # n'aime pas les tif 32 bits, donc je met des .bmp test $nocuneiform = 0 && cuneiform -f text -o ${costfile%.costs}cune.txt ${costfile%.costs}.png } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Tesseract Open Source OCR EngineA:.:' -e 's:Cuneiform for Linux [.0-9]*A:_:' | tr '\012A' 'A\012' This is a patch bash fragment which gives a segfault on my example image (so no more deadlock, I am happy): { test $notesseract = 0 && convert ${costfile%.costs}.png b.bmp && tesseract b.bmp ${costfile%.costs}tess -l $tesslanguage } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Tesseract Open Source OCR EngineA:.:' | tr '\012A' 'A\012' { # separation pour qu'il y ait moins de blocage du style http://bugs.gentoo.org/show_bug.cgi?id=234824#c26 test $nocuneiform = 0 && cuneiform -f text -o ${costfile%.costs}cune.txt ${costfile%.costs}.png } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Cuneiform for Linux [.0-9]*A:_:' | tr '\012A' 'A\012' So please do not take my bugreport #26 in consideration. (In reply to comment #26) > stalls indefinitely when running on ~amd64 on attached image (I have > app-text/cuneiform-0.7). Use cuneiform-0.8.0 from portage http://packages.gentoo.org/package/app-text/cuneiform No future actions for this bug. My Gentoo prefix on amd64 couldn't find the libraries in usr/lib64. This patch puts them in usr/lib, based on http://www.mail-archive.com/cuneiform@lists.launchpad.net/msg00073.html: --- install_files.cmake.old 2010-12-21 16:03:28.000000000 +0100 +++ install_files.cmake 2010-12-21 16:03:51.000000000 +0100 @@ -2,13 +2,8 @@ set(RELATIVE_DATADIR "share/cuneiform") set(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/${RELATIVE_DATADIR}") -include(CheckTypeSize) -check_type_size("void*" PTRSIZE) -if(PTRSIZE EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") - set(LIBDIR "lib64") -else() - set(LIBDIR "lib") -endif() +set(LIBDIR "lib/cuneiform-${CF_VERSION}") +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}") macro(library_hook name) set_target_properties(${name} PROPERTIES VERSION Jeffrey: please open new bug report. This one is closed. |