Hello community, here is the log from the commit of package hplip for openSUSE:Factory checked in at 2018-07-26 10:17:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hplip (Old) and /work/SRC/openSUSE:Factory/.hplip.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hplip" Thu Jul 26 10:17:28 2018 rev:118 rq:625209 version:3.17.9 Changes: -------- --- /work/SRC/openSUSE:Factory/hplip/hplip.changes 2018-06-27 10:17:37.272333425 +0200 +++ /work/SRC/openSUSE:Factory/.hplip.new/hplip.changes 2018-07-26 10:17:30.995840860 +0200 @@ -4 +4,13 @@ -- require python3-Pillow for hp-scan to work +- require python3-Pillow for hp-scan to work (bsc#1100511) + +------------------------------------------------------------------- +Tue Jun 12 13:24:15 UTC 2018 - mwi...@suse.com + +- Fix scanning with python-pillow 4.2.0 (boo#1096755, #lp1741214) + * added Fix-scanning-with-python-pillow-4.2.0.patch + +------------------------------------------------------------------- +Thu Jun 7 06:50:26 UTC 2018 - mwi...@suse.com + +- Fix bug in hpijs-avoid-segfault-in-DJGenericVIP-DJGenericVIP.patch: + default behavior of DJ9xxVIP device must not be changed @@ -9 +21,2 @@ -- avoid segfault in DJGenericVIP::DJGenericVIP() (boo#1094141) +- avoid segfault in DJGenericVIP::DJGenericVIP() (boo#1094141, + lp#1774660) New: ---- Fix-scanning-with-python-pillow-4.2.0.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hplip.spec ++++++ --- /var/tmp/diff_new_pack.nLsoSZ/_old 2018-07-26 10:17:31.839842391 +0200 +++ /var/tmp/diff_new_pack.nLsoSZ/_new 2018-07-26 10:17:31.839842391 +0200 @@ -90,6 +90,7 @@ # PATCH-FIX-SUSE: GNOME no longer provides a system tray, so don't warn the user that we can't find it Patch109: no-systray-failure-message.patch Patch110: hpijs-avoid-segfault-in-DJGenericVIP-DJGenericVIP.patch +Patch111: Fix-scanning-with-python-pillow-4.2.0.patch # Patch200 fixes device communication and detection via MDNS in some network setups: Patch200: hplip-mdns.patch # Patch201 makes MDNS lookups more robust by retrying queries: @@ -166,8 +167,8 @@ # Therefore the hplip main package which is intended # to get "all the HPLIP stuff" installed has the RPM requirement: Requires: %{pymod %gobject} -Requires: ghostscript Requires: %{pymod Pillow} +Requires: ghostscript %if %use_qt5 Requires: %{pymod qt5} @@ -399,6 +400,7 @@ %patch108 -p1 -b .add_missing_includes_and_define_GNU_SOURCE.orig %patch109 -p1 -b .systemtray.py.orig %patch110 -p1 -b .boo1094141 +%patch111 -p1 -b .boo1096755 %patch200 -p1 -b .mdns %patch201 -p1 -b .mdns-retry %patch300 -p1 -b .pcardext-python3 ++++++ Fix-scanning-with-python-pillow-4.2.0.patch ++++++ >From 72be09ee8482cdd19e0895f8f536854c2dafe535 Mon Sep 17 00:00:00 2001 From: Martin Wilck <mwi...@suse.com> Date: Tue, 12 Jun 2018 15:17:11 +0200 Subject: [PATCH] Fix scanning with python-pillow 4.2.0 python-pillow released new version (4.2.0), which forbids saving RGBA data to JPEG. This behavior breaks scanning by hp-scan. Output is: $ hp-scan -m color -s file Saving to file /home/zdohnal/hpscan001.jpg error: Error saving file: cannot write mode RGBA as JPEG (I/O) These RGBA data needs to be convert to RGB data before saving as JPEG (other formats - PNG, PNM, TIFF etc. - works fine, because they doesn't ignore A channel). https://bugs.launchpad.net/hplip/+bug/1741214 --- scan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scan.py b/scan.py index c33d84b..1ae4079 100755 --- a/scan.py +++ b/scan.py @@ -1078,6 +1078,7 @@ try: log.info("Saving to file %s" % output) try: + im = im.convert("RGB") im.save(output) except IOError as e: log.error("Error saving file: %s (I/O)" % e) -- 2.17.0 ++++++ hpijs-avoid-segfault-in-DJGenericVIP-DJGenericVIP.patch ++++++ --- /var/tmp/diff_new_pack.nLsoSZ/_old 2018-07-26 10:17:31.875842456 +0200 +++ /var/tmp/diff_new_pack.nLsoSZ/_new 2018-07-26 10:17:31.875842456 +0200 @@ -1,4 +1,4 @@ -From 894ea64f4742a5c2a5f17f4e950f4ae3599d802e Mon Sep 17 00:00:00 2001 +From ca4af49f2979610ff2c6818ebd0072432417ba95 Mon Sep 17 00:00:00 2001 From: Martin Wilck <mwi...@suse.com> Date: Fri, 1 Jun 2018 17:09:31 +0200 Subject: [PATCH] hpijs: avoid segfault in DJGenericVIP::DJGenericVIP() @@ -42,7 +42,7 @@ else ePen = BOTH_PENS; // matches default mode diff --git a/prnt/hpijs/dj9xxvip.h b/prnt/hpijs/dj9xxvip.h -index 85eb3ac..8d42265 100644 +index 85eb3ac..af1be8f 100644 --- a/prnt/hpijs/dj9xxvip.h +++ b/prnt/hpijs/dj9xxvip.h @@ -42,7 +42,8 @@ APDK_BEGIN_NAMESPACE @@ -51,7 +51,7 @@ public: - DJ9xxVIP(SystemServices* pSS, BOOL proto=FALSE); + DJ9xxVIP(SystemServices* pSS, BOOL proto=FALSE, -+ BOOL ignore_pen_error=TRUE); ++ BOOL ignore_pen_error=FALSE); Header* SelectHeader(PrintContext* pc); DRIVER_ERROR VerifyPenInfo();