Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902893 - =dev-python/pillow-9.4.0 fails tests with USE="-lcms"
Summary: =dev-python/pillow-9.4.0 fails tests with USE="-lcms"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-24 11:51 UTC by MW
Modified: 2023-03-27 17:04 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info.txt,6.12 KB, text/plain)
2023-03-24 11:52 UTC, MW
Details
gzipped build.log (build.log.gz,68.18 KB, application/gzip)
2023-03-24 14:46 UTC, MW
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MW 2023-03-24 11:51:57 UTC
Emerging =dev-python/pillow-9.4.0 with USE="-lcms test" generates the following error during test phase:

ImportError: cannot import name '_imagingcms' from 'PIL'


The error does not arise with USE="lcms test".
Comment 1 MW 2023-03-24 11:52:21 UTC
Created attachment 858827 [details]
emerge --info
Comment 2 MW 2023-03-24 11:55:30 UTC
Adding lcms to REQUIRED_USE should be enough here.
Comment 3 MW 2023-03-24 14:46:51 UTC
Created attachment 858833 [details]
gzipped build.log

(Apparently, build.log was slightly too large, so it was rejected in my initial report.)

My fix:

REQUIRED_USE="test? ( jpeg jpeg2k lcms tiff truetype )"
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-03-27 17:03:51 UTC
Thank you for the report!
Comment 5 Larry the Git Cow gentoo-dev 2023-03-27 17:04:55 UTC
The bug has been closed via the following commit(s):

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

commit a05376a6790d2b50c704e5e77339383b30cf4d02
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-03-27 17:04:32 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-03-27 17:04:52 +0000

    dev-python/pillow: Require USE=lcms for tests
    
    Closes: https://bugs.gentoo.org/902893
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pillow/pillow-9.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)