Bug 10411 - leptonica package wrongly built due to missing Requirebuild directives
Summary: leptonica package wrongly built due to missing Requirebuild directives
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure mga3-64-ok mga3-32-ok
Keywords: Triaged, validated_update
Depends on:
Blocks: 10403
  Show dependency treegraph
 
Reported: 2013-06-03 15:01 CEST by Pablo Saratxaga
Modified: 2014-05-08 18:07 CEST (History)
7 users (show)

See Also:
Source RPM: leptonica-1.69-2.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Pablo Saratxaga 2013-06-03 15:01:58 CEST
Description of problem:
libleptonica is build without tiff,gif,png,zlib support; making it quite useless.
(tesseract is non functional for example)
due to missing statements in spec file (so, the needed devel libs are not triggered in automated package build)

solution:
add following lines to spec file:

BuildRequires: tiff-devel
BuildRequires: jpeg-devel
BuildRequires: png-devel
BuildRequires: libgif-devel
BuildRequires: zlib-devel

I tested regenerating the pacakge locally with the libs present, it built ok and the functionality was in ok.

Reproducible: 

Steps to Reproduce:
Pablo Saratxaga 2013-06-03 15:02:37 CEST

Blocks: (none) => 10403

Pablo Saratxaga 2013-06-03 15:04:02 CEST

CC: (none) => pablo

Comment 1 Thierry Vignaud 2013-06-03 20:52:28 CEST
Welcome back Pablo :-)
Just fixed in Cauldron.

CC: (none) => thierry.vignaud

Comment 2 Pablo Saratxaga 2013-06-05 10:41:57 CEST
(it's nice to be back :) )
The cauldron rpm fixes the issue.

IMHO a quick update for mga3 should be done (linked with libpng15), as the current version in mga3 makes it completly unfunctional.
I did a simple rpm rebuild on mga3 (with all the needed *-devel installed) and the resulting rpm worked ok.
Comment 3 Thierry Vignaud 2013-06-05 12:45:13 CEST
Would you like to become a contributor?
Manuel Hiebel 2013-06-08 16:35:04 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => zen25000

Comment 4 Barry Jackson 2013-06-19 11:38:54 CEST
Update Advisory

The following have been submitted to 3/core/updates_testing to fix this bug.

libleptonica3-1.69-2.1.mga3.i586.rpm
libleptonica-devel-1.69-2.1.mga3.i586.rpm
leptonica-debuginfo-1.69-2.1.mga3.i586.rpm

from
leptonica-1.69-2.1.mga3.src.rpm

Keywords: (none) => validated_update
Assignee: zen25000 => qa-bugs
CC: (none) => sysadmin-bugs

Comment 5 Thomas Backlund 2013-06-19 11:44:07 CEST
Only QA can set validated_update

Keywords: validated_update => (none)
CC: (none) => tmb

Comment 6 claire robinson 2013-06-19 13:03:22 CEST
Testing mga3 64

Before
------
$ tesseract Pictures/BuzzwordBingo.jpg tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Error in pixReadStreamJpeg: function not present
Error in pixReadStream: jpeg: no pix returned
Error in pixRead: pix not read
Unsupported image type.

$ tesseract Pictures/mapoftheinternet.png tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Error in pixReadStreamPng: function not present
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
Unsupported image type.

$ tesseract Pictures/tile-alien.gif tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Error in pixReadStreamGif: function not present
Error in pixReadStream: gif: no pix returned
Error in pixRead: pix not read
Unsupported image type.

After
-----

Will test as soon as my mirror updates, having ISP problems this week.
Comment 7 Barry Jackson 2013-06-19 14:54:25 CEST
(In reply to Thomas Backlund from comment #5)
> Only QA can set validated_update

Yes of course - I don't understand why you made that comment, did I do something wrong?

CC: (none) => zen25000

Comment 8 Barry Jackson 2013-06-19 15:05:12 CEST
Ah OK now I see it in email - I have no idea how that got changed though, I certainly did not set that intentionally - baffled :\

Thinking back I tried to use Manuel's Greasemonkey script to change the assignee to qa (using the QA button) but it did not do what I expected. I thought I had reverted all it's changes but maybe that did it.

I will not touch the QA button again ;)
Comment 9 claire robinson 2013-06-19 15:57:31 CEST
Use it all you like Barry, I think you owe us some testing though ;)
Comment 10 claire robinson 2013-06-19 17:36:44 CEST
Testing complete mga3 64

$ tesseract Pictures/BuzzwordBingo.jpg tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
$ less tess.txt

$ tesseract Pictures/mapoftheinternet.png tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
$ less tess.txt

$ tesseract Pictures/tile-alien.gif tess
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Empty page!!
Empty page!!

Whiteboard: (none) => has_procedure mga3-64-ok

Comment 11 Manuel Hiebel 2013-06-20 20:42:45 CEST
(In reply to Barry Jackson from comment #8)
> Ah OK now I see it in email - I have no idea how that got changed though, I
> certainly did not set that intentionally - baffled :\
> 
> Thinking back I tried to use Manuel's Greasemonkey script to change the
> assignee to qa (using the QA button) but it did not do what I expected. I
> thought I had reverted all it's changes but maybe that did it.
> 
> I will not touch the QA button again ;)

Fixed in some way in the version 0.8.9
Comment 12 Rémi Verschelde 2013-06-22 12:13:45 CEST
Testing complete mga3 i586

Trested with tesseract using png, gif, jpeg, tif input format, both with English and French OCR. Works nicely.

Once again, QA lets me discover a nice piece of software \o/

--

Validating update. Please commit the advisory and push the update.

Update advisory (based on comment 4 and comment 0):
===============
libleptonica was built without tiff, gif, png, jpeg and zlib support; making it quite useless. As an example, tesseract was non functional because of this (mga#10403).

RPMs
====
libleptonica3-1.69-2.1.mga3.i586.rpm
libleptonica-devel-1.69-2.1.mga3.i586.rpm
leptonica-debuginfo-1.69-2.1.mga3.i586.rpm

SRPM
====
leptonica-1.69-2.1.mga3.src.rpm

Keywords: (none) => validated_update
CC: (none) => remi
Whiteboard: has_procedure mga3-64-ok => has_procedure mga3-64-ok mga3-32-ok

Comment 13 Lewis Smith 2013-06-24 19:48:32 CEST
MGA3-32-OK
[Confirmation of other tests, copy ex bug 10403]
Installed 'release' tesseract, basic fault re-produced.
Updated
 tesseract-3.02.02-3.1.mga3.i586.rpm
 libtesseract3-3.02.02-3.1.mga3.i586.rpm
 tesseract-eng-3.02.02-3.1.mga3.noarch.rpm
 tesseract-fra-3.02.02-3.1.mga3.noarch.rpm
 libleptonica3-1.69-2.1.mga3.i586.rpm
De-coded successfully (relatively) an English TIF with various font sizes incl italic; and a French JPEG landscape double-page.
Not sure to what extent libleptonica3 was involved in this.

CC: (none) => lewyssmith

Comment 14 claire robinson 2013-06-26 09:12:03 CEST
Advisory uploaded
Comment 15 Nicolas Vigier 2013-06-26 20:25:35 CEST
http://advisories.mageia.org/MGAA-2013-0040.html

Status: NEW => RESOLVED
CC: (none) => boklm
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:07:11 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.