Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316795 - app-text/cuneiform-0.9 version bump
Summary: app-text/cuneiform-0.9 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Peter Volkov (RETIRED)
URL: https://launchpad.net/cuneiform-linux
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-23 11:05 UTC by A.C.Heron
Modified: 2011-01-15 22:22 UTC (History)
4 users (show)

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


Attachments
app-text/cuneiform-0.9 (cuneiform-0.9.0.ebuild,1.22 KB, text/plain)
2010-04-24 11:27 UTC, A.C.Heron
Details
app-text/cuneiform-0.9 ebuild (cuneiform-0.9.0.ebuild,1.18 KB, text/plain)
2010-05-13 21:09 UTC, A.C.Heron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A.C.Heron 2010-04-23 11:05:14 UTC
New version has been released.

The ebuild includes updated SRC_URI and optional media-gfx/graphicsmagick[imagemagick] dependency as suggested by Peter Volkov: bug #314231
Comment 1 Aleksandr Yakimov 2010-04-23 13:03:37 UTC
Have you tested it? I've segfaults on recognition attempt.
Comment 2 A.C.Heron 2010-04-24 11:27:19 UTC
Created attachment 228993 [details]
app-text/cuneiform-0.9

Updated SRC_URI, added optional graphicsmagic dependency.
Comment 3 A.C.Heron 2010-04-24 11:33:50 UTC
Looks like the ebuild didn't upload the previous time, and I din't notice :(

Works fine with ImageMagic. Havent't tested with media-gfx/graphicsmagick. Do you want me to?

Also, I've noticed that 0.8.0 segfaulted on large images (over 17 Mpix). Supposedly this has been fixed by 0.9.0, but I haven't tested that either.
Comment 4 Aleksandr Yakimov 2010-04-24 13:46:54 UTC
Have you checked it on amd64?
Comment 5 A.C.Heron 2010-04-24 14:32:46 UTC
Yes. But not on x86. My emerge --info: http://nopaste.info/41459e2242.html
Comment 6 Aleksandr Yakimov 2010-04-24 16:08:46 UTC
For me 0.9.0 works only without imagemagick (checked with 6.5.8.8 and 6.6.1.2).
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-04-25 07:23:19 UTC
Yaleks, could you share with us some test case to reproduce problem on amd64?

(In reply to comment #3)
> Works fine with ImageMagic. Havent't tested with media-gfx/graphicsmagick. Do
> you want me to?

Please, do.
Comment 8 Aleksandr Yakimov 2010-04-25 08:54:04 UTC
Use cuneiform-linux-0.9.0/images/ from source tarball.
Comment 9 Aleksandr Yakimov 2010-04-25 08:59:53 UTC
$ cuneiform -l rus clipb.bmp
Cuneiform for Linux 0.9.0
$ less cuneiform-out.txt
Comment 10 A.C.Heron 2010-04-26 12:51:42 UTC
(In reply to comment #7)
> Please, do.

I've got /usr/include/GraphicsMagick/Magick++.h and /usr/lib64/libGraphicsMagick*, but cmake-2.6.4-r3 does not detect them as ImageMagick.

How do I need to patch cuneiform_src/CMakeLists.txt ? What else do I need to patch?
Comment 11 A.C.Heron 2010-04-26 15:33:17 UTC
Looks like CMake searches for Magic++.h in /usr/include/ and /usr/include/ImageMagic/, while GraphicsMagic installs it to /usr/include/GraphicsMagic/. 
Libraries have different paths and names too.

CMake has no module for GraphicsMagic. Does GraphicsMagic has options to duplicate directory structure and library names of ImageMagic? Otherwise there should be similar problem with every package using ImageMagic and CMake.
Comment 12 Aleksandr Yakimov 2010-04-26 19:31:59 UTC
(In reply to comment #10)
> (In reply to comment #7)
> How do I need to patch cuneiform_src/CMakeLists.txt ? What else do I need to
> patch?
> 
Please discuss this in bug #314231. This is not a very important issue (see meta bug #314431 ).
Comment 13 A.C.Heron 2010-05-13 21:09:03 UTC
Created attachment 231381 [details]
app-text/cuneiform-0.9 ebuild

Removed GraphicsMagick dependency.
Comment 14 Anton Bolshakov 2010-07-03 01:58:40 UTC
version 1.0 is out.
Comment 15 Aleksandr Yakimov 2010-07-03 07:08:35 UTC
(In reply to comment #14)
> version 1.0 is out.
> 
I know, but the same problems with ImageMagick.
Comment 16 Peter Volkov (RETIRED) gentoo-dev 2010-07-22 20:10:16 UTC
yaleks, two possible solutions here:
1. Bump it hardmasked
2. Drop amd64 keyword as if I understand correctly this is amd64 related problem.

What do you think? Also do you mean this bug:
https://bugs.launchpad.net/cuneiform-linux/+bug/261364 ?
Comment 17 Aleksandr Yakimov 2010-07-24 10:25:25 UTC
(In reply to comment #16)
> yaleks, two possible solutions here:
> 1. Bump it hardmasked
> 2. Drop amd64 keyword as if I understand correctly this is amd64 related
> problem.
We can bump it, but mask "imagemagick" for amd64.
Comment 18 Mark 2010-07-24 11:45:29 UTC
cuneiform 1.0.0 works for me on ~amd64 with ImageMagick 6.6.2.5 (and graphicsmagick 1.3.12) and the test files from $src/images folder and own scanned png-snippets in two languages.

I did not have any compiling or segfault problems.

I was able to create a buffer overflow though, with one own large testimage containing two languages and specifying the non-english one. But I guess this is another bug and will try to report it to the developers.
Comment 19 Peter Volkov (RETIRED) gentoo-dev 2010-07-24 12:22:38 UTC
yaleks, could you prepare and attach here diff for something to commit then? :)
Comment 20 Mark 2010-07-24 12:24:41 UTC
(In reply to comment #18)
> I was able to create a buffer overflow though, with one own large testimage
> containing two languages and specifying the non-english one. But I guess this
> is another bug and will try to report it to the developers.

as I found out, this is a compiler optimization problem: using -O1 or higher produces this overflow, so maybe you want to enforce -O0 in the ebuild to prevent this problem until the developers fixed it. 
Comment 21 Aleksandr Yakimov 2010-07-24 14:52:32 UTC
> 
$ cuneiform -l rus russian2bl.bmp
Cuneiform for Linux 1.0.0
PUMA_XFinalrecognition failed.

Not a segfault for me (the same with no "-l rus").
Comment 22 Aleksandr Yakimov 2010-07-24 15:44:14 UTC
(In reply to comment #19)
> yaleks, could you prepare and attach here diff for something to commit then? :)
> 
just copy cuneiform-0.8.0.ebuild to cuneiform-1.0.0.ebuild
and add ">app-text/cuneiform-0.8.0 imagemagick" to /usr/portage/profiles/arch/amd64/package.use.mask
Comment 23 Peter Volkov (RETIRED) gentoo-dev 2011-01-15 22:22:25 UTC
Ok, finally new version is in the tree. Crash mysteriously went away. We suspect this was imagemagick bug, but who knows...