GNU bug report logs - #76583
[PATCH 0/4] hplip: Enable network support

Previous Next

Package: guix-patches;

Reported by: Lukas Gradl <lgradl <at> posteo.net>

Date: Wed, 26 Feb 2025 11:54:02 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> friendly-machines.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lukas Gradl <lgradl <at> posteo.net>
To: 76583 <at> debbugs.gnu.org
Cc: Lukas Gradl <lgradl <at> posteo.net>
Subject: [bug#76583] [PATCH 3/4] gnu: hplip-minimal: Disable networking.
Date: Wed, 26 Feb 2025 12:25:56 +0000
* gnu/packages/cups.scm (hplip-minimal): Disable networking.
[arguments] <#:configure-flags>: Add "--disable-network-build".  The "lite
build" of hplip is incompatible with the "network build", so disable
the latter explicitly.
[inputs]: Rephrase the inputs as a positive list and remove net-snmp, openssl,
and avahi (inherited from hplip).

Change-Id: I954b665fe5bdeae2a2fab79c1e2cbfa8ac01f58b
---
 gnu/packages/cups.scm | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index b318915065c..41c3f0af456 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -713,16 +713,23 @@ (define-public hplip-minimal
         ;; Produce a "light build", meaning that only the printer (CUPS) and
         ;; scanner (SANE) support gets built, without all the 'hp-*'
         ;; command-line tools.
-        #~(cons "--enable-lite-build"
-                (delete "--enable-qt5" #$cf)))
+        #~(cons* "--enable-lite-build"
+                 "--disable-network-build"
+                 ;; The flag "--enable-lite-build" is incompatible with
+                 ;; "--enable-network-build" inherited from hplip, so we need
+                 ;; to override it with "--disable-network-build".
+                 (delete "--enable-qt5" #$cf)))
        ((#:phases phases)
         ;; The 'wrap-binaries' is not needed here since the 'hp-*' programs
         ;; are not installed.
         #~(alist-delete 'wrap-binaries #$phases))))
-    (inputs (remove (match-lambda
-                      ((label . _)
-                       (string-prefix? "python" label)))
-                    (package-inputs hplip)))
+    (inputs
+     (list cups-minimal
+           dbus
+           libjpeg-turbo
+           libusb
+           sane-backends-minimal
+           zlib))
     (synopsis "GUI-less version of hplip")))
 
 (define-public foomatic-filters
-- 
2.47.1





This bug report was last modified 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.