upgrading to pillow-3.0.0 [zlib -doc -examples -jpeg -jpeg2k -lcms {-test} -tiff -tk -truetype -webp] fails to build: running build_ext ValueError: --enable-jpeg requested but jpeg not found, aborting. Reproducible: Always
Created attachment 413648 [details] build.log
Created attachment 413650 [details] emerge --info
I get the same even though I have jpeg libraries installed % qlist -ICv jpeg media-libs/libjpeg-turbo-1.4.1 media-libs/openjpeg-2.1.0-r1 virtual/jpeg-0-r2 Setting USE="jpeg" results in a successful emerge without pulling in any other packages.
Created attachment 414198 [details] ebuild with fixes for jpeg and zlib USE flags According to upstream issue 1439 [1] the jpeg and zlib features were added to a required set as a one-size-fits-most configuration with the additional comment "If the user doesn't want them, they need to be explicitly disabled." It is worth noting that this also occurs with USE="-zlib". Attached ebuild alters the required libraries based on USE flags. Four separate runtests shows it working with all combinations of jpeg and zlib flags set. 1: https://github.com/python-pillow/Pillow/pull/1439
Can both users please testrun the adjusted ebuild
Created attachment 414202 [details, diff] patch for pillow-3.0.0.ebuild Unified diff of changes made for attachment 414198 [details].
Patch from attachment 414202 [details, diff] works for me with USE="zlib -doc -examples -jpeg -jpeg2k -lcms {-test} -tiff -tk -truetype -webp". Thanks!
commit b409ada9dd9d09b5d7443b99613b78c348e48a45 Author: Justin Lecher <jlec@gentoo.org> Date: Sat Oct 10 17:39:58 2015 +0200 dev-python/pillow: Do not require anything unconditionally Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562188 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b409ada9dd9d09b5d7443b99613b78c348e48a45
*** Bug 562858 has been marked as a duplicate of this bug. ***