guix_mirror_bot pushed a commit to branch mesa-updates
in repository guix.

commit 2d494404c976bd3da6323a86119fc945b0236d5c
Author: Sergey Trofimov <s...@sarg.org.ru>
AuthorDate: Thu Jun 12 14:17:54 2025 +0200

    gnu: sane-backends: Remove hplip dependency.
    
    * gnu/packages/scanner.scm (sane-backends)[inputs]: Omit hplip.
    [arguments]: Remove hplip phases.
    * gnu/services/desktop.scm (lift-sane-configuration): Warn user that
    hplip needs to be explicitly enabled in sane-configuration.
    
    Change-Id: I05ffc3a2d04c5ee3da2739b68085557ff791814f
---
 gnu/packages/scanner.scm | 22 +---------------------
 gnu/services/desktop.scm |  7 ++++++-
 2 files changed, 7 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm
index 96857c471a..b5796a592c 100644
--- a/gnu/packages/scanner.scm
+++ b/gnu/packages/scanner.scm
@@ -224,15 +224,11 @@ hand-held scanner, video- and still-cameras, 
frame-grabbers, etc.).  The
 package contains the library, but no drivers.")
     (license license:gpl2+))) ; plus linking exception
 
-;; This variant links in the hpaio backend provided by hplip, which adds
-;; support for HP scanners whose backends are not maintained by the SANE
-;; project, and builds all of those backends.
 (define-public sane-backends
   (package/inherit sane
     (name "sane-backends")
     (inputs
-     `(("hplip" ,(@ (gnu packages cups) hplip))
-       ("libjpeg" ,libjpeg-turbo)       ; for pixma/epsonds/other back ends
+     `(("libjpeg" ,libjpeg-turbo)       ; for pixma/epsonds/other back ends
        ("libpng" ,libpng)               ; support ‘scanimage --format=png’
        ("libxml2" ,libxml2)             ; for pixma back end
        ,@(package-inputs sane)))
@@ -247,22 +243,6 @@ package contains the library, but no drivers.")
                ;;   <https://bugs.gnu.org/39449>
                (substitute* "testsuite/backend/genesys/Makefile.in"
                  ((" genesys_unit_tests\\$\\(EXEEXT\\)") ""))
-               #t))
-           (add-after 'unpack 'add-backends
-             (lambda _
-               (substitute* "backend/dll.conf.in"
-                 (("hp5590" all) (format #f "~a~%~a" all "hpaio")))
-               #t))
-           (add-after 'install 'install-hpaio
-             (lambda* (#:key inputs outputs #:allow-other-keys)
-               (define hplip (string-append (assoc-ref inputs "hplip")
-                                            "/lib/sane"))
-               (define out (string-append (assoc-ref outputs "out")
-                                          "/lib/sane"))
-               (for-each
-                (lambda (file)
-                  (symlink file (string-append out "/" (basename file))))
-                (find-files hplip))
                #t))))))
     (synopsis
      "Raster image scanner library and drivers, with scanner support")
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 83132480fb..1fff153a40 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -1712,7 +1712,12 @@ accountsservice web site} for more information."
       config
       (begin
         (when warn?
-          (warning (G_ "'sane' service now expects a 'sane-configuration' 
record~%")))
+          (warning (G_ "'sane' service now expects a 'sane-configuration' 
record~%"))
+
+          (when (eq? config sane-backends)
+            (warning (G_ "'sane-backends' does not include 'hplip' backend 
anymore. Add it
+explicitly when needed.~%"))))
+
         (sane-configuration (backends (list config))))))
 
 (define sane-service-type

Reply via email to