Bug 2055109

Summary: perl-PDF-API2-2.043-2.fc37 FTBFS: t/tiff.t fails with lcms2-2.13-1.fc36
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-PDF-API2Assignee: Jitka Plesnikova <jplesnik>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: jplesnik, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-16 10:40:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1992484, 2045102    

Description Petr Pisar 2022-02-16 10:06:42 UTC
After upgrading lcms2 from 2.12-3.fc36 to 2.13-1.fc36, t/tiff.t fails like this:

$ perl -Ilib t/tiff.t
1..9
ok 1 - '$pdf->image_tiff(filename)' isa 'PDF::API2::Resource::XObject::Image::TIFF'
ok 2 - Image from filename has a width
ok 3 - Add TIFF to PDF
ok 4 - '$pdf->image_tiff(), LZW compression' isa 'PDF::API2::Resource::XObject::Image::TIFF'
ok 5 - Add TIFF to PDF
ok 6 - Fail fast if the requested file doesn't exist
ok 7 # skip tiff2pdf doesn't deal with the alpha layer properly either in this case
ok 8 # skip files created with tiffcp -c g3 previously produced the 'message chunked ccitt g4 tif not supported'
not ok 9 - lzw (converted to flate)
#   Failed test 'lzw (converted to flate)'
#   at t/tiff.t line 106.
#          got: '# ImageMagick pixel enumeration: 1,1,255,gray
# 0,0: (0,0,0)  #000000  gray(0)
# '
#     expected: '# ImageMagick pixel enumeration: 1,1,255,gray
# 0,0: (248.008,248.008,248.008)  #F8F8F8  gray(97.258%)
# '
# Looks like you failed 1 test of 9.

There seems to be changes in lmcs-2.13.0 regarding alpha in TIFF:

2.13 Featured release
-----------------------
Added support for premultiplied alpha
tifficc can now handle alpha channels, both unassociated and premultiplied
Better documentation
CGATS parser can now deal with very long strings
Added Projects for Visual Studio 2020
Travis CI discontinued, GitHub actions used instead
Added a very preliminar meson build script (thanks to xclaesse)
Added ARM64 target to visual studio 2019 (thanks to gaborkertesz-linaro)
Added thread safe code to get time
Added automatic linear space detection 
Added cmsGetStageContextID function
Added cmsDetectRGBProfileGamma function
configure now accepts --without-fastfloat to turn plugin off
autogen.sh has now a --distclean toggle to get rid of all autotools generated files
Checked to work on STM32 Cortex-A, Cortex-M families
Bug & typos fixing (thanks to many reporters and contributors)

Comment 1 Petr Pisar 2022-02-16 10:40:34 UTC
That's a bug in lcms2 fixed in a new upstream release 2.13.1 (bug #2050365).

*** This bug has been marked as a duplicate of bug 2050365 ***