Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#37293 - [python2-pillow] Missing *.h files

Attached to Project: Community Packages
Opened by Buce (Buce) - Friday, 11 October 2013, 15:48 GMT
Last edited by Kyle Keen (keenerd) - Thursday, 17 October 2013, 06:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



python2-pillow provides/conflicts/replaces python2-imaging, but is missing the /usr/include/python2.7/*.h files that are included in python2-imaging.
This is causing builds of my minecraft-overviewer-git AUR package to fail with the following:

overviewer_core/src/overviewer.h:33:21: fatal error: Imaging.h: No such file or directory
#include <Imaging.h>
compilation terminated.
error: command 'gcc' failed with exit status 1

I was able to fix the issue locally by taking the following lines from python-imaging's PKGBUILD and adding them to python-pillow's abs PKGBUILD in the package_python2-pillow() function, just after the `install -Dm644 docs/LICENSE ...` line.

install -dm755 "${pkgdir}/usr/include/python2.7/"
install -m644 -t "${pkgdir}/usr/include/python2.7/" libImaging/*.h

After compiling and installing the resulting package, minecraft-overviewer-git built fine.

An easier workaround is to simply remove python2-pillow and install python2-imaging.

Additional info:
* package version(s)
python2-pillow 2.2.1-1

Steps to reproduce:
Try to compile a package which depends on python2-imaging's header files, e.g. minecraft-overviewer-git, and observe the error above.
This task depends upon

Closed by  Kyle Keen (keenerd)
Thursday, 17 October 2013, 06:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 2.2.1-2
Comment by Kyle Keen (keenerd) - Thursday, 17 October 2013, 06:09 GMT
Fixed for py3 as well. Not entirely happy with the path generation though.