Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hplip for openSUSE:Factory checked in at 2026-11-27 19:40:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hplip (Old) and /work/SRC/openSUSE:Factory/.hplip.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hplip" Fri Nov 27 19:40:39 2026 rev:171 rq:1400545 version:3.26.6 Changes: -------- --- /work/SRC/openSUSE:Factory/hplip/hplip.changes 2026-09-23 14:34:15.656607191 +0200 +++ /work/SRC/openSUSE:Factory/.hplip.new.1340718/hplip.changes 2026-11-27 19:41:28.009877778 +0100 @@ -1,0 +2,26 @@ +Tue Nov 24 11:03:46 UTC 2026 - Martin Wilck <[email protected]> + +- sane: Add fix for "http_read: response exceeds buffer" error + (lp#2169330, bsc#1253755) + * add 0624-sane-avoid-duplicate-increment-of-bytes_read.patch +- hplip.spec: create /etc/issue to avoid crash in plugin library + (bsc#1253755) + +------------------------------------------------------------------- +Mon Oct 12 15:45:08 UTC 2026 - Martin Wilck <[email protected]> + +- Add an update-messages file explaining that the plugin needs + to be installed manually since 3.26.6 + +------------------------------------------------------------------- +Mon Oct 5 10:33:25 UTC 2026 - Martin Wilck <[email protected]> + +- Fix python exception and core dump in Marvell fax driver + (boo#1282965) + + * add 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch + * add 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch + * add 0622-setup-handle-getFaxDevice-errors.patch + * add 0623-sendfax-handle-getFaxDevice-errors.patch + +------------------------------------------------------------------- New: ---- 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch 0622-setup-handle-getFaxDevice-errors.patch 0623-sendfax-handle-getFaxDevice-errors.patch 0624-sane-avoid-duplicate-increment-of-bytes_read.patch ----------(New B)---------- New: * add 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch * add 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch New: * add 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch * add 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch * add 0622-setup-handle-getFaxDevice-errors.patch New: * add 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch * add 0622-setup-handle-getFaxDevice-errors.patch * add 0623-sendfax-handle-getFaxDevice-errors.patch New: * add 0622-setup-handle-getFaxDevice-errors.patch * add 0623-sendfax-handle-getFaxDevice-errors.patch New: (lp#2169330, bsc#1253755) * add 0624-sane-avoid-duplicate-increment-of-bytes_read.patch - hplip.spec: create /etc/issue to avoid crash in plugin library ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hplip.spec ++++++ --- /var/tmp/diff_new_pack.kRC906/_old 2026-11-27 19:41:30.277972133 +0100 +++ /var/tmp/diff_new_pack.kRC906/_new 2026-11-27 19:41:30.280972257 +0100 @@ -152,6 +152,12 @@ # lp#2154206, fixup for patch 607 Patch616: pluginhandler-fix-plugin-installation-from-local-fil.patch Patch617: pluginhandler.py-add-fallback-location-for-3.26.6.patch +# bsc#1282965 +Patch620: 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch +Patch621: 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch +Patch622: 0622-setup-handle-getFaxDevice-errors.patch +Patch623: 0623-sendfax-handle-getFaxDevice-errors.patch +Patch624: 0624-sane-avoid-duplicate-increment-of-bytes_read.patch # Compatibility patches for old SUSE releases Patch701: hpcups-fix-compilation-on-SLE12.patch @@ -515,6 +521,11 @@ %patch -P 615 -p1 %patch -P 616 -p1 %patch -P 617 -p1 +%patch -P 620 -p1 +%patch -P 621 -p1 +%patch -P 622 -p1 +%patch -P 623 -p1 +%patch -P 624 -p1 %if 0%{?suse_version} < 1500 # python2 compatibility %patch -P 701 -p1 @@ -731,8 +742,28 @@ %post -n libhplip0 -p %{run_ldconfig} %postun -n libhplip0 -p %{run_ldconfig} -%post base -p %{run_ldconfig} -%postun base -p %{run_ldconfig} +%post base +if [ $1 -gt 0 ]; then + mkdir -p %{_localstatedir}/adm/update-messages + cat > %{_localstatedir}/adm/update-messages/%{name}-base-%{version}-%{release}-1 << EOF +Note to users of the proprietary HPLIP plugin +--------------------------------------------- + +Run "hp-plugin" manually to install the plugin for hplip %{version}. +Since HPLIP 3.26.6, the plugin must always be installed manually. +EOF +fi +if [ $1 -gt 0 ] && ! [ -e /etc/issue ]; then + touch /etc/issue + cat > %{_localstatedir}/adm/update-messages/%{name}-base-%{version}-%{release}-2 << EOF +Note to HPLIP users +------------------- + +File /etc/issue created, a library from the HPLIP plugin may crash if it is missing. +See https://bugzilla.suse.com/show_bug.cgi?id=1253755#c26. +If you don't need the plugin, you can safely remove the file. +EOF +fi %files # empty ++++++ 0620-fax-marvellfax-don-t-dereference-self.service-if-it-.patch ++++++ >From b385addda29ce1fa711dbfd31dccfea41ef56deb Mon Sep 17 00:00:00 2001 From: Martin Wilck <[email protected]> Date: Mon, 5 Oct 2026 10:12:25 +0000 Subject: [PATCH 620/623] fax/marvellfax: don't dereference self.service if it is None FaxDevice sets self.service to None if D-Bus is disabled, as hp-setup does. If the fax plugin is missing, this caused an AttributeError in a PyQt5 slot, which aborted hp-setup via qFatal(). Co-Authored-By: Claude Opus 5.5 <[email protected]> --- fax/marvellfax.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fax/marvellfax.py b/fax/marvellfax.py index 0fea7e7..524b99b 100644 --- a/fax/marvellfax.py +++ b/fax/marvellfax.py @@ -107,7 +107,9 @@ class MarvellFaxDevice(FaxDevice): log.error("Loading %s failed. Try after installing plugin libraries\n" %lib_name); log.info("Run \"hp-plugin\" to installa plugin libraries if you are not automatically prompted\n") job_id =0; - self.service.SendEvent(device_uri, printer_name, EVENT_FAX_FAILED_MISSING_PLUGIN, os.getenv('USER'), job_id, "Plugin is not installed") + if self.service is not None: + self.service.SendEvent(device_uri, printer_name, + EVENT_FAX_FAILED_MISSING_PLUGIN, os.getenv('USER'), job_id, "Plugin is not installed") sys.exit(1) else: self.libfax_marvell = cdll.LoadLibrary(lib_name) -- 2.55.0 ++++++ 0621-fax-marvellfax-raise-Error-instead-of-calling-sys.ex.patch ++++++ >From 4c35b667845120e3ebcad4fc7d1e311af6ba47bb Mon Sep 17 00:00:00 2001 From: Martin Wilck <[email protected]> Date: Mon, 5 Oct 2026 10:12:26 +0000 Subject: [PATCH 621/623] fax/marvellfax: raise Error instead of calling sys.exit() Calling sys.exit() from MarvellFaxDevice.__init__() terminates GUI callers such as hp-setup. Raise Error(ERROR_DEVICE_IO_ERROR) instead, which the SANE code also uses for a missing plugin. Also, convert the OSError raised by os.readlink() or cdll.LoadLibrary() into an Error. The previous "except Error" clause was never triggered. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- fax/marvellfax.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fax/marvellfax.py b/fax/marvellfax.py index 524b99b..e13c846 100644 --- a/fax/marvellfax.py +++ b/fax/marvellfax.py @@ -110,12 +110,12 @@ class MarvellFaxDevice(FaxDevice): if self.service is not None: self.service.SendEvent(device_uri, printer_name, EVENT_FAX_FAILED_MISSING_PLUGIN, os.getenv('USER'), job_id, "Plugin is not installed") - sys.exit(1) + raise Error(ERROR_DEVICE_IO_ERROR) else: self.libfax_marvell = cdll.LoadLibrary(lib_name) - except Error as e: - log.error("Loading fax_marvell failed (%s)\n" % e.msg); - sys.exit(1) + except (OSError, IOError) as e: + log.error("Loading fax_marvell failed (%s)\n" % e); + raise Error(ERROR_DEVICE_IO_ERROR) def isAuthRequired(self): return False; -- 2.55.0 ++++++ 0622-setup-handle-getFaxDevice-errors.patch ++++++ >From 625c9757c99637d25c2655b2e3a8a6083934826b Mon Sep 17 00:00:00 2001 From: Martin Wilck <[email protected]> Date: Mon, 5 Oct 2026 10:12:26 +0000 Subject: [PATCH 622/623] setup: handle getFaxDevice() errors Skip fax header setup with a warning if the fax device can't be created, rather than crashing hp-setup. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- setup.py | 7 ++++++- ui/setupform.py | 6 +++++- ui4/setupdialog.py | 6 +++++- ui5/setupdialog.py | 6 +++++- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 892dd94..49b0274 100755 --- a/setup.py +++ b/setup.py @@ -801,9 +801,14 @@ else: # INTERACTIVE_MODE log.error("Please enter 'y' or 'n'") + d = None if setup_fax: - d = fax.getFaxDevice(fax_uri, disable_dbus=True) + try: + d = fax.getFaxDevice(fax_uri, disable_dbus=True) + except Error as e: + log.error("Unable to set up fax device %s: %s" % (fax_uri, e.msg)) + if d is not None: try: d.open() except Error: diff --git a/ui/setupform.py b/ui/setupform.py index 1c58e65..929e8ef 100644 --- a/ui/setupform.py +++ b/ui/setupform.py @@ -793,7 +793,11 @@ class SetupForm(SetupForm_base): try: QApplication.setOverrideCursor(QApplication.waitCursor) - d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + try: + d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + except Error as e: + log.warn("Unable to set up fax device %s: %s" % (self.fax_uri, e.msg)) + return while True: try: diff --git a/ui4/setupdialog.py b/ui4/setupdialog.py index 649d118..6cda8d9 100644 --- a/ui4/setupdialog.py +++ b/ui4/setupdialog.py @@ -1136,7 +1136,11 @@ class SetupDialog(QDialog, Ui_Dialog): try: QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) - d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + try: + d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + except Error as e: + log.warn("Unable to set up fax device %s: %s" % (self.fax_uri, e.msg)) + return while True: try: diff --git a/ui5/setupdialog.py b/ui5/setupdialog.py index 2874884..66e7cd5 100644 --- a/ui5/setupdialog.py +++ b/ui5/setupdialog.py @@ -1196,7 +1196,11 @@ class SetupDialog(QDialog, Ui_Dialog): try: QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) - d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + try: + d = fax.getFaxDevice(self.fax_uri, disable_dbus=True) + except Error as e: + log.warn("Unable to set up fax device %s: %s" % (self.fax_uri, e.msg)) + return while True: try: -- 2.55.0 ++++++ 0623-sendfax-handle-getFaxDevice-errors.patch ++++++ >From 41bd43706cfbcc4c5f60d1c8f9a6a49e70728f87 Mon Sep 17 00:00:00 2001 From: Martin Wilck <[email protected]> Date: Mon, 5 Oct 2026 10:12:26 +0000 Subject: [PATCH 623/623] sendfax: handle getFaxDevice() errors Abort sending the fax with an error message if the fax device can't be created, rather than crashing hp-sendfax. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- sendfax.py | 6 +++++- ui/scrollfax.py | 11 ++++++++--- ui4/sendfaxdialog.py | 14 +++++++++++--- ui5/sendfaxdialog.py | 14 +++++++++++--- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/sendfax.py b/sendfax.py index 491c8f9..c2f5c57 100755 --- a/sendfax.py +++ b/sendfax.py @@ -497,7 +497,11 @@ else: # NON_INTERACTIVE_MODE log.debug("\nChecking device state...") try: - dev = fax.getFaxDevice(device_uri, printer_name) + try: + dev = fax.getFaxDevice(device_uri, printer_name) + except Error as e: + log.error("Unable to open fax device %s: %s" % (device_uri, e.msg)) + sys.exit(1) try: dev.open() diff --git a/ui/scrollfax.py b/ui/scrollfax.py index ab1d840..9f79ec4 100644 --- a/ui/scrollfax.py +++ b/ui/scrollfax.py @@ -1162,9 +1162,14 @@ class ScrollFaxView(ScrollView): QApplication.setOverrideCursor(QApplication.waitCursor) - self.dev = fax.getFaxDevice(self.cur_device.device_uri, - self.cur_printer, None, - self.cur_device.mq['fax-type']) + try: + self.dev = fax.getFaxDevice(self.cur_device.device_uri, + self.cur_printer, None, + self.cur_device.mq['fax-type']) + except Error as e: + log.error("Unable to open fax device %s: %s" % (self.cur_device.device_uri, e.msg)) + QApplication.restoreOverrideCursor() + return try: try: diff --git a/ui4/sendfaxdialog.py b/ui4/sendfaxdialog.py index a1ecb59..c0f35d9 100644 --- a/ui4/sendfaxdialog.py +++ b/ui4/sendfaxdialog.py @@ -743,9 +743,17 @@ class SendFaxDialog(QDialog, Ui_Dialog): mq = device.queryModelByURI(self.device_uri) - self.dev = fax.getFaxDevice(self.device_uri, - self.printer_name, None, - mq['fax-type']) + try: + self.dev = fax.getFaxDevice(self.device_uri, + self.printer_name, None, + mq['fax-type']) + except Error as e: + log.error("Unable to open fax device %s: %s" % (self.device_uri, e.msg)) + endWaitCursor() + FailureUI(self, self.__tr("<b>Unable to open the fax device.</b><p>%s"%e.msg)) + self.busy = False + self.BackButton.setEnabled(True) + return try: try: diff --git a/ui5/sendfaxdialog.py b/ui5/sendfaxdialog.py index 3c3e880..d2dd866 100644 --- a/ui5/sendfaxdialog.py +++ b/ui5/sendfaxdialog.py @@ -751,9 +751,17 @@ class SendFaxDialog(QDialog, Ui_Dialog): mq = device.queryModelByURI(self.device_uri) - self.dev = fax.getFaxDevice(self.device_uri, - self.printer_name, None, - mq['fax-type']) + try: + self.dev = fax.getFaxDevice(self.device_uri, + self.printer_name, None, + mq['fax-type']) + except Error as e: + log.error("Unable to open fax device %s: %s" % (self.device_uri, e.msg)) + endWaitCursor() + FailureUI(self, self.__tr("<b>Unable to open the fax device.</b><p>%s"%e.msg)) + self.busy = False + self.BackButton.setEnabled(True) + return try: try: -- 2.55.0 ++++++ 0624-sane-avoid-duplicate-increment-of-bytes_read.patch ++++++ >From 362daf8cbb9fd3508ed8f2cd75521ed35b0cabc8 Mon Sep 17 00:00:00 2001 From: Martin Wilck <[email protected]> Date: Tue, 24 Nov 2026 11:34:57 +0100 Subject: [PATCH] sane: avoid duplicate increment of bytes_read Taken from Fedora's rpm, hplip-scan-exceed-buf.patch. Upstream: lp#2169330 bsc#1253755 --- scan/sane/http.c | 1 - 1 file changed, 1 deletion(-) diff --git a/scan/sane/http.c b/scan/sane/http.c index dda7cf2..ad7208a 100644 --- a/scan/sane/http.c +++ b/scan/sane/http.c @@ -496,7 +496,6 @@ enum HTTP_RESULT __attribute__ ((visibility ("hidden"))) http_read(HTTP_HANDLE h while(1) { ret = read_line (ps, line, sizeof(line), tmo, &len); - *bytes_read += len; if(ret) //failed to read line { ps->footer = 0; -- 2.56.0 ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.kRC906/_old 2026-11-27 19:41:30.479980536 +0100 +++ /var/tmp/diff_new_pack.kRC906/_new 2026-11-27 19:41:30.490980994 +0100 @@ -1,5 +1,5 @@ -mtime: 1790112672 -commit: 5f041ce5953a65dd9357412e571c9506e09e4be10e536aec918487690f42d644 +mtime: 1795519212 +commit: f3eb4440570b2849537267bea95f1cda57fde5baa566bdf7607d283eae3ca48a url: https://src.opensuse.org/mwilck/hplip revision: factory ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-24 12:20:12.000000000 +0100 @@ -0,0 +1,8 @@ +*~ +\#* +*.rej +*.orig +*.obscpio +*.osc +_build.* +.pbuild
