[Python-modules-team] Bug#948704: stretch-pu: package sorl-thumbnail/12.3+git20160928-2+deb9u1
Adrian Bunk
bunk at debian.org
Sun Jan 12 11:19:42 GMT 2020
Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian.org at packages.debian.org
Usertags: pu
* workaround a pgmagick exception (Closes: #902522)
https://tests.reproducible-builds.org/debian/rb-pkg/stretch/amd64/sorl-thumbnail.html
FTBFS and likely also runtime breakage, seems the problem was
backported to stretch with some graphicsmagick/imagemagick
security update.
-------------- next part --------------
diff -Nru sorl-thumbnail-12.3+git20160928/debian/changelog sorl-thumbnail-12.3+git20160928/debian/changelog
--- sorl-thumbnail-12.3+git20160928/debian/changelog 2017-04-27 01:10:48.000000000 +0300
+++ sorl-thumbnail-12.3+git20160928/debian/changelog 2020-01-12 13:05:20.000000000 +0200
@@ -1,3 +1,10 @@
+sorl-thumbnail (12.3+git20160928-2+deb9u1) stretch; urgency=medium
+
+ * Non-maintainer upload.
+ * workaround a pgmagick exception (Closes: #902522)
+
+ -- Adrian Bunk <bunk at debian.org> Sun, 12 Jan 2020 13:05:20 +0200
+
sorl-thumbnail (12.3+git20160928-2) unstable; urgency=medium
* Disable support for Wand again, because tests crash on i386
diff -Nru sorl-thumbnail-12.3+git20160928/debian/patches/series sorl-thumbnail-12.3+git20160928/debian/patches/series
--- sorl-thumbnail-12.3+git20160928/debian/patches/series 2016-10-04 03:04:18.000000000 +0300
+++ sorl-thumbnail-12.3+git20160928/debian/patches/series 2020-01-12 13:05:20.000000000 +0200
@@ -1,3 +1,4 @@
+workaround-pgmagick-exception.patch
orientation.patch
disable_http_tests.patch
icc_profile.patch
diff -Nru sorl-thumbnail-12.3+git20160928/debian/patches/workaround-pgmagick-exception.patch sorl-thumbnail-12.3+git20160928/debian/patches/workaround-pgmagick-exception.patch
--- sorl-thumbnail-12.3+git20160928/debian/patches/workaround-pgmagick-exception.patch 1970-01-01 02:00:00.000000000 +0200
+++ sorl-thumbnail-12.3+git20160928/debian/patches/workaround-pgmagick-exception.patch 2020-01-12 13:03:12.000000000 +0200
@@ -0,0 +1,22 @@
+Description: workaround an exception with newer pgmagick version
+Author: W. Martin Borgert <debacle at debian.org>
+Origin: vendor
+Bug: https://github.com/jazzband/sorl-thumbnail/issues/558
+Bug-Debian: https://bugs.debian.org/902522
+Last-Update: 2018-08-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/sorl/thumbnail/engines/pgmagick_engine.py
++++ b/sorl/thumbnail/engines/pgmagick_engine.py
+@@ -26,7 +26,10 @@
+ def is_valid_image(self, raw_data):
+ blob = Blob()
+ blob.update(raw_data)
+- im = Image(blob)
++ try:
++ im = Image(blob)
++ except RuntimeError:
++ return False
+ return im.isValid()
+
+ def _cropbox(self, image, x, y, x2, y2):
More information about the Python-modules-team
mailing list