Source: pillow
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dear Maintainer,
debian/rules adds $DEB_HOST_MULTIARCH to $SOABI, but this is incorrect
for Python 3.5, where the arch triplet is already included in $SOABI.
Attached is a patch that only conditionally adds the triplet for
versions earlier than Python 3.5. It's probably not the most elegant
patch, but it wfm.
- -- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.0.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJVjcmwAAoJEBJutWOnSwa/3/IQAKQTa5TzCf6jkLwFeuvqkUj/
FOEhKGiQfePmwJqUDDnCM2Zc67Bgk8pJf5rO8557iihH4+6snI8ip6WQBmGTjTWJ
eVsKLdFgeLZDciIxoU0botwVnWBMb5NeokAwQZHhLSe2ELmYiu4s9jkC/N7vEgFZ
vD+vQg0jngFTX+Xxnro6y+3xXHeke6HvsBqThQ2Wn/QXq3v0jquhpKIg73CceQnM
O6u66u/EASGZm+fA0lsxucS55EZdmzh29hUYMwvU1E/kqtyNLw4seybQ7u9EdO7V
X5Vnry6Ss9w4ewxlKicnJ8cPc5ecMUdVZCL/du2e59DzG/mx9tgoLhPJVXAdg2TR
WVVLwRFrtmGr2FUvh7LJIGZehuq50ffAWS310+rNS7GE1MkZverILPlF3Jfn9kSB
jOZ1vJ6IZC1McH0Wu5kR9yqmMDSrt/SULmD+i/+2rQ9NxtEyCqDUMV+wsXZSN4rr
b+IPdGnWG1GzZUNmsxCAgdIhx956MnY44OWEdqrCuqoUlKSQTzcrULbATIgOKIlT
dHaSuuB+g3YLmcbwfsGw28RGIOPAMTUnLq8kwG65MML2yp8P1sklMi18I/wruW3k
dMSjZZAaPpdmGfXkhjfO+PYLE0taWxrtBveauDqU1l4kfUCePre0y8PTzjxkPd/k
xawN7C4XUbCCum3wuF6H
=z1HP
-----END PGP SIGNATURE-----
=== modified file 'debian/rules'
--- debian/rules 2015-06-01 17:15:59 +0000
+++ debian/rules 2015-06-26 21:48:20 +0000
@@ -155,7 +155,13 @@
libImaging/ImDib.h \
debian/python3-pil/$$incdir
- abitag=.$$(python$* -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")-$(DEB_HOST_MULTIARCH); \
+ if `python$* -c "import sys; sys.exit(sys.version_info < (3,5))"`; \
+ then \
+ abitag=.$$(python$* -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))"); \
+ else \
+ abitag=.$$(python$* -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")-$(DEB_HOST_MULTIARCH); \
+ fi; \
+ echo $$abitag; \
dh_movefiles -ppython3-pil.imagetk \
--sourcedir=debian/python3-pil \
usr/lib/python3/$(call py_sitename_sh, $*)/PIL/_imagingtk$$abitag.so \
@@ -177,7 +183,12 @@
! -type d ! \( -name '*.so' -o -name '*.h' \) | xargs rm -f
find debian/python3-pil*-dbg -depth -empty -exec rmdir {} \;
- abitag=.$$(python$*-dbg -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")-$(DEB_HOST_MULTIARCH); \
+ if `python$* -c "import sys; sys.exit(sys.version_info < (3,5))"`; \
+ then \
+ abitag=.$$(python$*-dbg -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))"); \
+ else \
+ abitag=.$$(python$*-dbg -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")-$(DEB_HOST_MULTIARCH); \
+ fi; \
dh_movefiles -ppython3-pil.imagetk-dbg \
--sourcedir=debian/python3-pil-dbg \
usr/lib/python3/$(call py_sitename_sh, $*)/PIL/_imagingtk$$abitag.so