[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/11: gnu: hplip: Fix USB timeouts.
From: |
guix-commits |
Subject: |
05/11: gnu: hplip: Fix USB timeouts. |
Date: |
Wed, 25 Oct 2023 06:01:41 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 1e5ec9d853b89f6a142a4128e9fff6e2d48213d5
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Tue Oct 17 17:25:48 2023 +0100
gnu: hplip: Fix USB timeouts.
* gnu/packages/patches/hplip-usb-timeout.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/cups.scm (hplip): Use it.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/local.mk | 1 +
gnu/packages/cups.scm | 1 +
gnu/packages/patches/hplip-usb-timeout.patch | 24 ++++++++++++++++++++++++
3 files changed, 26 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 43145caf80..6a285f11b8 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1401,6 +1401,7 @@ dist_patch_DATA =
\
%D%/packages/patches/heimdal-CVE-2022-45142.patch \
%D%/packages/patches/helm-fix-gcc-9-build.patch \
%D%/packages/patches/highlight-gui-data-dir.patch \
+ %D%/packages/patches/hplip-usb-timeout.patch \
%D%/packages/patches/http-parser-CVE-2020-8287.patch \
%D%/packages/patches/htslib-for-stringtie.patch \
%D%/packages/patches/hubbub-sort-entities.patch \
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 647b89dc03..fc3ff52cbe 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -522,6 +522,7 @@ should only be used as part of the Guix cups-pk-helper
service.")
(sha256
(base32
"0ihv9ddjrjx5bdf8pwc2fvljkpfzq4qi9r2awm8dgky053v0bk7p"))
+ (patches (search-patches "hplip-usb-timeout.patch"))
(modules '((guix build utils)))
(snippet
'(begin
diff --git a/gnu/packages/patches/hplip-usb-timeout.patch
b/gnu/packages/patches/hplip-usb-timeout.patch
new file mode 100644
index 0000000000..b98ed1cc78
--- /dev/null
+++ b/gnu/packages/patches/hplip-usb-timeout.patch
@@ -0,0 +1,24 @@
+# Source: <https://bugs.launchpad.net/hplip/+bug/1922404>
+
+--- a/config_usb_printer.py
++++ b/config_usb_printer.py
+@@ -28,6 +28,7 @@
+ # Std Lib
+ import sys
+ import os
++import time
+
+ # Local
+ from base.g import *
+@@ -181,9 +182,10 @@
+ # ******************************* RUNNING FIRMWARE DOWNLOAD TO DEVICE
FOR SUPPORTED PRINTER'S
+ fw_download_req = mq.get('fw-download', False)
+ if fw_download_req:
+- fw_cmd = "hp-firmware -y3 -s %s"%param
++ fw_cmd = "hp-firmware -n -y3 -s %s"%param
+ log.info(fw_cmd)
+ fw_sts, fw_out = utils.run(fw_cmd)
++ time.sleep(5)
+ if fw_sts == 0:
+ log.debug("Firmware downloaded to %s "%device_uri)
+ else:
- branch master updated (e0b94a4d27 -> c6d2bb9d0a), guix-commits, 2023/10/25
- 01/11: gnu: guile-dsv: Update to 0.7.1., guix-commits, 2023/10/25
- 03/11: gnu: diffoscope: Update to 251., guix-commits, 2023/10/25
- 04/11: gnu: curlie: Update to 1.7.2., guix-commits, 2023/10/25
- 02/11: gnu: mympd: Update to 12.1.1., guix-commits, 2023/10/25
- 08/11: gnu: picard: Update to 2.10., guix-commits, 2023/10/25
- 10/11: gnu: lighttpd: Update to 1.4.72., guix-commits, 2023/10/25
- 05/11: gnu: hplip: Fix USB timeouts.,
guix-commits <=
- 06/11: gnu: emacs-exwm: Update to 0.28., guix-commits, 2023/10/25
- 07/11: gnu: emacs-doom-modeline: Update to 4.0.1., guix-commits, 2023/10/25
- 09/11: gnu: python-versioneer: Update to 0.29., guix-commits, 2023/10/25
- 11/11: gnu: gnuplot: Update to 5.4.9., guix-commits, 2023/10/25