From unknown Sun Jun 22 00:53:50 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#66594] [PATCH] gnu: hplip: Fix USB timeouts. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 Oct 2023 16:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66594 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66594@debbugs.gnu.org Cc: Bruno Victal X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169756004925472 (code B ref -1); Tue, 17 Oct 2023 16:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Oct 2023 16:27:29 +0000 Received: from localhost ([127.0.0.1]:60894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmun-0006cm-4P for submit@debbugs.gnu.org; Tue, 17 Oct 2023 12:27:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmuj-0006cW-5b for submit@debbugs.gnu.org; Tue, 17 Oct 2023 12:27:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsmu9-00022P-RP for guix-patches@gnu.org; Tue, 17 Oct 2023 12:26:49 -0400 Received: from smtpmciv5.myservices.hosting ([185.26.107.241]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsmu7-0002ZI-WA for guix-patches@gnu.org; Tue, 17 Oct 2023 12:26:49 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv5.myservices.hosting (Postfix) with ESMTP id B9EB9206B4 for ; Tue, 17 Oct 2023 18:26:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 16CD6800A0; Tue, 17 Oct 2023 18:26:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XSVvAqymkN-f; Tue, 17 Oct 2023 18:26:19 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 7CE8C8009F; Tue, 17 Oct 2023 18:26:19 +0200 (CEST) From: Bruno Victal Date: Tue, 17 Oct 2023 17:25:48 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.107.241; envelope-from=mirai@makinata.eu; helo=smtpmciv5.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/patches/hplip-usb-timeout.patch: New file. * gnu/local.mk: Register it. * gnu/packages/cups.scm (hplip): Use it. --- gnu/local.mk | 1 + gnu/packages/cups.scm | 1 + gnu/packages/patches/hplip-usb-timeout.patch | 24 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 gnu/packages/patches/hplip-usb-timeout.patch diff --git a/gnu/local.mk b/gnu/local.mk index daacd786a7..97634d5210 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 @@ (define-public hplip (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: + +--- 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: base-commit: 7823c6504082a0cfbd98beb301e041fb8bc4e44e -- 2.41.0 From unknown Sun Jun 22 00:53:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bruno Victal Subject: bug#66594: closed (Re: [bug#66594] [PATCH] gnu: hplip: Fix USB timeouts.) Message-ID: References: <87sf5zxc8g.fsf@gnu.org> X-Gnu-PR-Message: they-closed 66594 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 66594@debbugs.gnu.org Date: Wed, 25 Oct 2023 09:51:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1698227462-19741-1" This is a multi-part message in MIME format... ------------=_1698227462-19741-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #66594: [PATCH] gnu: hplip: Fix USB timeouts. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 66594@debbugs.gnu.org. --=20 66594: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66594 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1698227462-19741-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 66594-done) by debbugs.gnu.org; 25 Oct 2023 09:50:49 +0000 Received: from localhost ([127.0.0.1]:57354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvaXJ-000581-Bd for submit@debbugs.gnu.org; Wed, 25 Oct 2023 05:50:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvaXH-00057n-CP for 66594-done@debbugs.gnu.org; Wed, 25 Oct 2023 05:50:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvaWh-0006O9-9c; Wed, 25 Oct 2023 05:50:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=zC4FZ0ATYkMvWZbmXIOoYcbNIxetfK/NoLFRr0OPJAg=; b=Y5AF1gfqcpp5ahNiDxDM JooCxQTJJ7VgP+YIgtJCQvQ70kMW4jHWEPy3BoPeKCmgynjzR3jioaadsRvYAGPwnKTfgcKmmL5Fr ecU8qSb1v8R/fbRue9jJjO+5IZxnILcKj3azXzFMrVidYbPsMRgPbbcYzRuGSXg3hjHXOh6b/zxqx 8M6ZcMQOuPSCehdE0qokfgeEE7RKNyzO2UNgzw7MuLP6gaSLBg0VlPWT2ZqUBy3BNRbsRNRp7I8FU 7kEAopgVyle6dTuDjDqPzlvFVei81II2qtyJGHMbBbGwB2gvN9DMIQIAQbyh+BZiynxa0abXQnhWn dcymD/Q8qCerMg==; From: Mathieu Othacehe To: Bruno Victal Subject: Re: [bug#66594] [PATCH] gnu: hplip: Fix USB timeouts. In-Reply-To: (Bruno Victal's message of "Tue, 17 Oct 2023 17:25:48 +0100") References: Date: Wed, 25 Oct 2023 11:50:07 +0200 Message-ID: <87sf5zxc8g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66594-done Cc: 66594-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > * gnu/packages/patches/hplip-usb-timeout.patch: New file. > * gnu/local.mk: Register it. > * gnu/packages/cups.scm (hplip): Use it. Applied, thanks, Mathieu ------------=_1698227462-19741-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Oct 2023 16:27:29 +0000 Received: from localhost ([127.0.0.1]:60894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmun-0006cm-4P for submit@debbugs.gnu.org; Tue, 17 Oct 2023 12:27:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsmuj-0006cW-5b for submit@debbugs.gnu.org; Tue, 17 Oct 2023 12:27:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsmu9-00022P-RP for guix-patches@gnu.org; Tue, 17 Oct 2023 12:26:49 -0400 Received: from smtpmciv5.myservices.hosting ([185.26.107.241]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsmu7-0002ZI-WA for guix-patches@gnu.org; Tue, 17 Oct 2023 12:26:49 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv5.myservices.hosting (Postfix) with ESMTP id B9EB9206B4 for ; Tue, 17 Oct 2023 18:26:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 16CD6800A0; Tue, 17 Oct 2023 18:26:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XSVvAqymkN-f; Tue, 17 Oct 2023 18:26:19 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 7CE8C8009F; Tue, 17 Oct 2023 18:26:19 +0200 (CEST) From: Bruno Victal To: guix-patches@gnu.org Subject: [PATCH] gnu: hplip: Fix USB timeouts. Date: Tue, 17 Oct 2023 17:25:48 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.107.241; envelope-from=mirai@makinata.eu; helo=smtpmciv5.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Bruno Victal X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * gnu/packages/patches/hplip-usb-timeout.patch: New file. * gnu/local.mk: Register it. * gnu/packages/cups.scm (hplip): Use it. --- gnu/local.mk | 1 + gnu/packages/cups.scm | 1 + gnu/packages/patches/hplip-usb-timeout.patch | 24 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 gnu/packages/patches/hplip-usb-timeout.patch diff --git a/gnu/local.mk b/gnu/local.mk index daacd786a7..97634d5210 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 @@ (define-public hplip (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: + +--- 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: base-commit: 7823c6504082a0cfbd98beb301e041fb8bc4e44e -- 2.41.0 ------------=_1698227462-19741-1--