Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942034 - dev-python/pillow-11.0.0 - fails test_file_libtiff.py tests on ppc
Summary: dev-python/pillow-11.0.0 - fails test_file_libtiff.py tests on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-10-23 20:52 UTC by ernsteiswuerfel
Modified: 2024-11-05 07:25 UTC (History)
4 users (show)

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


Attachments
build.log.xz (ppc, 11.0.0) (pillow-11.0.0:20241023-203155.log.xz,359.93 KB, application/x-xz)
2024-10-23 20:52 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 10.4.0) (pillow-10.4.0:20241020-214928.log.xz,357.57 KB, application/x-xz)
2024-10-23 20:53 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 10.3.0) (pillow-10.3.0:20241020-214553.log.xz,355.80 KB, application/x-xz)
2024-10-23 20:53 UTC, ernsteiswuerfel
Details
emerge --info (file_942034.txt,6.02 KB, text/plain)
2024-10-23 20:54 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-10-23 20:52:29 UTC
Created attachment 906609 [details]
build.log.xz (ppc, 11.0.0)

[...]
FAILED Tests/test_file_pdf.py::test_monochrome - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_bytesio - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_ycbcr - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_exif_ifd - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_crashing_metadata - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_page_number_x_0 - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_write_icc[True] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_tiff_with_jpegtables - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_sampleformat_write - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_block_tile_tags[jpeg] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_tiff - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_large - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_sampleformat_not_corrupted - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_multistrip[tiff_adobe_deflate] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_tiff_file - RuntimeError: Error setting from dictionary
FAILED Tests/test_tiff_ifdrational.py::test_ifd_rational_save[True] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_multistrip[jpeg] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_tiff_bytesio - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_single_strip[True] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_single_strip[False] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_non_disk_file_object - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_zero[tiff_adobe_deflate] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_save_many_compressed - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_write - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_write_metadata[False] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_write_metadata[True] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff_small.py::TestFileLibTiffSmall::test_g4_hopper_file - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff_small.py::TestFileLibTiffSmall::test_g4_hopper_bytesio - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_additional_metadata - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff_small.py::TestFileLibTiffSmall::test_g4_hopper - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_custom_metadata[True] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_bw_compression_w_rgb[tiff_ccitt] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_bw_compression_w_rgb[group4] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_cmyk_save - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_palette_save[im0] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g4_string_info - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_big_endian - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_quality - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_osubfiletype - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_little_endian - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_tiff_deflate_compression - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_g3_compression - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_compressions - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_palette_save[im1] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_int_dpi - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_bw_compression_w_rgb[group3] - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_tiff_jpeg_compression - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_blur - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_xmlpacket_tag - RuntimeError: Error setting from dictionary
FAILED Tests/test_file_libtiff.py::TestFileLibTiff::test_subifd - RuntimeError: Error setting from dictionary
===================== 50 failed, 4629 passed, 61 skipped, 5 xfailed in 50.40s ======================
 * pytest failed with python3.12
 * ERROR: dev-python/pillow-11.0.0::gentoo failed (test phase):
Comment 1 ernsteiswuerfel archtester 2024-10-23 20:53:31 UTC
Created attachment 906610 [details]
build.log.xz (ppc, 10.4.0)

Same test failures on previous stables 10.4.0 and 10.3.0, so no regression.
Comment 2 ernsteiswuerfel archtester 2024-10-23 20:53:57 UTC
Created attachment 906612 [details]
build.log.xz (ppc, 10.3.0)
Comment 3 ernsteiswuerfel archtester 2024-10-23 20:54:41 UTC
Created attachment 906613 [details]
emerge --info
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-11-02 12:51:44 UTC
Apparently this got broken while fixing a minor issue on Windows with a completely wrong fix (passing int64_t to vaargs where uint32_t is expected) that just happens to work everywhere else.  Sigh.
Comment 5 Larry the Git Cow gentoo-dev 2024-11-03 15:43:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99757c974c3490e80cd8741493292a5749f333fe

commit 99757c974c3490e80cd8741493292a5749f333fe
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-11-03 15:40:02 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-11-03 15:42:56 +0000

    dev-python/pillow: Revert libtiff arg passing change that broke PPC
    
    Revert a change in how Pillow passes arguments that results
    in an int64_t being passed where libtiff expects uint32_t.  This
    miraculously doesn't seem to break most platforms, but it is still
    clearly wrong and breaks ppc32.
    
    Closes: https://bugs.gentoo.org/942034
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../pillow/files/pillow-11.0.0-wrong-arg.patch     |  32 +++++
 dev-python/pillow/pillow-11.0.0-r1.ebuild          | 138 +++++++++++++++++++++
 2 files changed, 170 insertions(+)