From 7b563378ae10836705dc67f948dc0b8b0eaf5370197aa1d5490a1e84f02dbb2c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 Jun 2015 20:08:49 +0000 Subject: [PATCH] - add 0001-Ico-files-are-little-endian-ref-1204.patch: fix for s390x OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=34 --- ...Ico-files-are-little-endian-ref-1204.patch | 42 +++++++++++++++++++ fix-textsize-equal.patch | 8 ++-- python-Pillow.changes | 5 +++ python-Pillow.spec | 2 + 4 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 0001-Ico-files-are-little-endian-ref-1204.patch diff --git a/0001-Ico-files-are-little-endian-ref-1204.patch b/0001-Ico-files-are-little-endian-ref-1204.patch new file mode 100644 index 0000000..6cdc4ad --- /dev/null +++ b/0001-Ico-files-are-little-endian-ref-1204.patch @@ -0,0 +1,42 @@ +From 93461e6faa9a5a2676101394bd2fae68040f6b53 Mon Sep 17 00:00:00 2001 +From: Eric Soroos +Date: Wed, 13 May 2015 03:05:45 -0700 +Subject: [PATCH] Ico files are little endian, ref #1204 + +--- + PIL/IcoImagePlugin.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +Index: Pillow-2.8.1/PIL/IcoImagePlugin.py +=================================================================== +--- Pillow-2.8.1.orig/PIL/IcoImagePlugin.py ++++ Pillow-2.8.1/PIL/IcoImagePlugin.py +@@ -49,7 +49,7 @@ def _save(im, fp, filename): + filter(lambda x: False if (x[0] > width or x[1] > height or + x[0] > 255 or x[1] > 255) else True, sizes) + sizes = sorted(sizes, key=lambda x: x[0]) +- fp.write(struct.pack("H", len(sizes))) # idCount(2) ++ fp.write(struct.pack("