warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'Pillow.egg-info/SOURCES.txt' warning: build_py: byte-compiling is disabled, skipping. running build_ext The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html Traceback (most recent call last): File "setup.py", line 788, in <module> raise RequiredDependencyException(msg) __main__.RequiredDependencyException: The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html * ERROR: dev-python/pillow-4.2.1-r1::gentoo failed (compile phase): * (no error message) Portage 2.3.10 (python 2.7.14-final-0, default/linux/amd64/13.0, gcc-7.2.0, glibc-2.25-r5, 4.13.4-gentoo x86_64) ================================================================= System uname: Linux-4.13.4-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.4.1 KiB Mem: 16402744 total, 13734588 free KiB Swap: 0 total, 0 free sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p1.0) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.14::gentoo, 3.4.6::gentoo dev-util/cmake: 3.9.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.31.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1::gentoo sys-devel/gcc: 7.2.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sqlite sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint intel mach64 nouveau nv r128 radeon savage sis trident v4l vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
And it auto-depends on things if they are installed but useflags unset: !!! existing preserved libs: >>> package: media-libs/libjpeg-turbo-1.5.2 * - /usr/lib64/libjpeg.so.62 * - /usr/lib64/libjpeg.so.62.2.0 * used by /usr/lib64/python2.7/site-packages/PIL/_imaging.so (dev-python/pillow-4.2.1-r1) * used by /usr/lib64/python3.4/site-packages/PIL/_imaging.cpython-34m.so (dev-python/pillow-4.2.1-r1) >>> package: media-libs/lcms-2.8-r2 * - /usr/lib64/liblcms2.so.2 * - /usr/lib64/liblcms2.so.2.0.8 * used by /usr/lib64/python2.7/site-packages/PIL/_imagingcms.so (dev-python/pillow-4.2.1-r1) * used by /usr/lib64/python3.4/site-packages/PIL/_imagingcms.cpython-34m.so (dev-python/pillow-4.2.1-r1) >>> package: media-libs/freetype-2.8.1 * - /usr/lib64/libfreetype.so.6 * - /usr/lib64/libfreetype.so.6.15.0 * used by /usr/lib64/python2.7/site-packages/PIL/_imagingft.so (dev-python/pillow-4.2.1-r1) * used by /usr/lib64/python3.4/site-packages/PIL/_imagingft.cpython-34m.so (dev-python/pillow-4.2.1-r1)
Is this bug still valid? I see Patrick that you've made jpeg dependency unconditional in your bump to v4.3, so that's one fixed thing. As for hard dependency on freetype (your second comment), I don't have the same behavior here. With the default use flags, _imagingcms and _imagingft are not installed on my system.
Oh, I see, I think that https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eec063365f7f66cbcf5416846fc6bab63a16a7a0 fixed it. Patrick, can you confirm?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a294ee52a39ed64ee53d3fe4cc65e2638e523e4c commit a294ee52a39ed64ee53d3fe4cc65e2638e523e4c Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-06-28 02:10:34 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-06-28 02:10:34 +0000 dev-python/pillow: restore jpeg USE flag Also wire-up the compile phase correctly instead of abusing mydistutilsargs. Closes: https://bugs.gentoo.org/632418 Package-Manager: Portage-2.3.40_p15, Repoman-2.3.9_p247 dev-python/pillow/pillow-4.3.0.ebuild | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-)