Bug#745714: missing multiarch paths on !linux
Package: src:pillow
Version: 2.3.0-2
Severity: normal
Tags: patch
Hi!
pillow currently does add multiarc paths on linux only. As a result,
no decoders are built. The patch below should also add these on the
other debian architectures.
--- pillow-2.3.0.orig/setup.py
+++ pillow-2.3.0/setup.py
@@ -254,7 +254,8 @@ class pil_build_ext(build_ext):
except:
pass # homebrew not installed
- elif host_platform.startswith("linux"):
+ elif host_platform.startswith("linux") or \
+ host_platform.startswith("gnu"): # Hurd / kFreeBSD
self.add_multiarch_paths()
elif host_platform.startswith("netbsd"):
It currently still fails to build with the message below but I think
it's unrelated
Writing /tmp/pillow-2.3.0/debian/python-sane/usr/lib/python2.7/dist-packages/pysane-2.0.egg-info
mkdir -p debian/python-pil/usr/include/python2.7
install -o root -g root -m 644 \
libImaging/Imaging.h \
libImaging/ImPlatform.h \
libImaging/ImDib.h \
debian/python-pil/usr/include/python2.7
dh_movefiles -ppython-pil.imagetk \
--sourcedir=debian/python-pil \
usr/lib/python2.7/$(basename $(_py_=2.7; python${_py_#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())'))/PIL/_imagingtk.so \
usr/lib/python2.7/$(basename $(_py_=2.7; python${_py_#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())'))/PIL/ImageTk.py
dh_movefiles: debian/python-pil/usr/lib/python2.7/dist-packages/PIL/_imagingtk.so not found (supposed to put it in python-pil.imagetk)
make: *** [install-python2.7] Error 1
Christoph
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 10.0-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: