Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562188 - dev-python/pillow-3.0.0 jpeg use flag ignored
Summary: dev-python/pillow-3.0.0 jpeg use flag ignored
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:
: 562858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-04 08:06 UTC by Märt Bakhoff
Modified: 2015-10-12 18:23 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,14.00 KB, text/plain)
2015-10-04 08:07 UTC, Märt Bakhoff
Details
emerge --info (emerge-info.log,4.89 KB, text/plain)
2015-10-04 08:08 UTC, Märt Bakhoff
Details
ebuild with fixes for jpeg and zlib USE flags (pillow-3.0.0.ebuild,2.55 KB, text/plain)
2015-10-09 11:58 UTC, Sam Jorna (wraeth)
Details
patch for pillow-3.0.0.ebuild (pillow-3.0.0.ebuild.patch,580 bytes, patch)
2015-10-09 13:34 UTC, Sam Jorna (wraeth)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Märt Bakhoff 2015-10-04 08:06:47 UTC
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
Comment 1 Märt Bakhoff 2015-10-04 08:07:58 UTC
Created attachment 413648 [details]
build.log
Comment 2 Märt Bakhoff 2015-10-04 08:08:24 UTC
Created attachment 413650 [details]
emerge --info
Comment 3 Neil Bothwick 2015-10-05 07:49:52 UTC
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.
Comment 4 Sam Jorna (wraeth) gentoo-dev 2015-10-09 11:58:34 UTC
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
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2015-10-09 13:29:21 UTC
Can both users please testrun the adjusted ebuild
Comment 6 Sam Jorna (wraeth) gentoo-dev 2015-10-09 13:34:27 UTC
Created attachment 414202 [details, diff]
patch for pillow-3.0.0.ebuild

Unified diff of changes made for attachment 414198 [details].
Comment 7 Märt Bakhoff 2015-10-09 16:09:17 UTC
Patch from attachment 414202 [details, diff] works for me with USE="zlib -doc -examples -jpeg -jpeg2k -lcms {-test} -tiff -tk -truetype -webp". Thanks!
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2015-10-10 15:40:25 UTC
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
Comment 9 Brian Evans (RETIRED) gentoo-dev 2015-10-12 18:23:54 UTC
*** Bug 562858 has been marked as a duplicate of this bug. ***