summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-10-07 01:58:29 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-10-07 02:35:22 +0200
commit2a2d8d026d6ae11d8d3b48cce8b8e04cd174950e (patch)
tree22e2a9fbc2e9ff549adf5b31cfdebb9d2c75e3e2 /media-libs/jbig2dec/files
parentsys-kernel/git-sources: Linux patch 5.4-rc2 (diff)
downloadgentoo-2a2d8d026d6ae11d8d3b48cce8b8e04cd174950e.tar.gz
gentoo-2a2d8d026d6ae11d8d3b48cce8b8e04cd174950e.tar.bz2
gentoo-2a2d8d026d6ae11d8d3b48cce8b8e04cd174950e.zip
media-libs/jbig2dec: bump to v0.17
Tests re-enabled. Closes: https://bugs.gentoo.org/324275 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-libs/jbig2dec/files')
-rw-r--r--media-libs/jbig2dec/files/jbig2dec-0.17-fix-test_jbig2dec.py.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/jbig2dec/files/jbig2dec-0.17-fix-test_jbig2dec.py.patch b/media-libs/jbig2dec/files/jbig2dec-0.17-fix-test_jbig2dec.py.patch
new file mode 100644
index 000000000000..e99a298f5de9
--- /dev/null
+++ b/media-libs/jbig2dec/files/jbig2dec-0.17-fix-test_jbig2dec.py.patch
@@ -0,0 +1,39 @@
+From c48d802aa6f65cc0284c8aa9824b6ae4e7dd5aa1 Mon Sep 17 00:00:00 2001
+From: Sebastian Rasmussen <sebras@gmail.com>
+Date: Fri, 14 Jun 2019 22:18:14 +0200
+Subject: [PATCH] jbig2dec: Make tests expect that some test files return white
+ image.
+
+Previously these tests would just error out and jbig2dec would not
+return any output file at all. Now, jbig2dec parses as much as
+possible, while emitting warning/error messages. In the case of a
+few of the test files the end result is a white image.
+---
+ test_jbig2dec.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/test_jbig2dec.py b/test_jbig2dec.py
+index a841438..33008e5 100755
+--- a/test_jbig2dec.py
++++ b/test_jbig2dec.py
+@@ -60,6 +60,7 @@ class KnownFileHash(SelfTest):
+
+ # hashes of known test inputs
+ known_NOTHING_DECODED = "da39a3ee5e6b4b0d3255bfef95601890afd80709"
++ known_WHITE_PAGE_DECODED = "28a6bd83a8a3a36910fbc1f5ce06c962e4332911"
+ known_042_DECODED = "ebfdf6e2fc5ff3ee2271c2fa19de0e52712046e8"
+ known_amb_DECODED = "3d4b7992d506894662b53415bd3d0d2a2f8b7953"
+
+@@ -103,10 +104,10 @@ class KnownFileHash(SelfTest):
+ known_042_DECODED),
+ ('../ubc/042_13.jb2',
+ "7d428bd542f58591b254d9827f554b0552c950a7",
+- known_NOTHING_DECODED),
++ known_WHITE_PAGE_DECODED),
+ ('../ubc/042_14.jb2',
+ "c40fe3a02acb6359baf9b40fc9c49bc0800be589",
+- known_NOTHING_DECODED),
++ known_WHITE_PAGE_DECODED),
+ ('../ubc/042_15.jb2',
+ "a9e39fc1ecb178aec9f05039514d75ea3246246c",
+ known_042_DECODED),