Package: colord
Version: 1.4.5-3
Severity: wishlist
Tags: patch

Dear Maintainer,

colord-sane scans for SANE devices every time colord scans for
devices, e.g. on my system whenever a USB device is connected (or
wakes up). This wakes my multi-function printer up, which is noisy and
wasteful (it's a laser printer, so it heats up every time this
happens). See https://github.com/hughsie/colord/issues/118 and the
links there for more on this.

Would it be possible to split colord-sane out to a separate package?
The attached patch implements this. This has the side-benefit that the
main colord package no longer depends on libsane1.

Regards,

Stephen


-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable'), (100, 'unstable-debug'), (100, 
'testing-debug'), (100, 'unstable'), (100, 'testing'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 5.10.0-21-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages colord depends on:
ii  acl                                          2.2.53-10
ii  adduser                                      3.118
ii  colord-data                                  1.4.5-3
ii  dconf-gsettings-backend [gsettings-backend]  0.38.0-2
ii  libc6                                        2.31-13+deb11u5
ii  libcolord2                                   1.4.5-3
ii  libcolorhug2                                 1.4.5-3
ii  libdbus-1-3                                  1.12.24-0+deb11u1
ii  libglib2.0-0                                 2.66.8-1
ii  libgudev-1.0-0                               234-1
ii  libgusb2                                     0.3.5-1
ii  liblcms2-2                                   2.12~rc1-2
ii  libpolkit-gobject-1-0                        0.105-31+deb11u1
ii  libsane1                                     1.0.31-4.1
ii  libsqlite3-0                                 3.34.1-3
ii  libsystemd0                                  247.3-7+deb11u1
ii  policykit-1                                  0.105-31+deb11u1

colord recommends no packages.

colord suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: missing file /usr/libexec/colord-sane (from colord package)
diff --git a/debian/changelog b/debian/changelog
index 462aaf30..2b9039f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+colord (1.4.6-2.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Split SANE support out to a separate package, to allow installation of
+    colord without triggering SANE devices (this wakes up network
+    multi-function printers supported by SANE whenever colord scans for
+    supported devices).
+
+ -- Stephen Kitt <sk...@debian.org>  Tue, 11 Apr 2023 17:23:30 +0200
+
 colord (1.4.6-2.2) unstable; urgency=medium
 
   * Non-maintainer upload
diff --git a/debian/colord-plugin-sane.install 
b/debian/colord-plugin-sane.install
new file mode 100644
index 00000000..5ef0687f
--- /dev/null
+++ b/debian/colord-plugin-sane.install
@@ -0,0 +1,2 @@
+usr/lib/*/colord-plugins/libcolord_sensor_sane.so
+usr/libexec/colord-sane
diff --git a/debian/colord.install b/debian/colord.install
index 42cc99bc..6ad61798 100644
--- a/debian/colord.install
+++ b/debian/colord.install
@@ -1,7 +1,8 @@
 lib/systemd/system/*.service
 lib/udev/rules.d/
 usr/bin/
-usr/lib/*/colord-plugins
+usr/lib/*/colord-plugins/libcolord_sensor_camera.so
+usr/lib/*/colord-plugins/libcolord_sensor_scanner.so
 usr/lib/*/colord-sensors/libcolord_sensor_colorhug.so
 usr/lib/*/colord-sensors/libcolord_sensor_dtp94.so
 usr/lib/*/colord-sensors/libcolord_sensor_dummy.so
@@ -9,7 +10,6 @@ usr/lib/*/colord-sensors/libcolord_sensor_huey.so
 usr/lib/systemd/user/
 usr/lib/tmpfiles.d/
 usr/libexec/colord
-usr/libexec/colord-sane
 usr/libexec/colord-session
 usr/share/bash-completion
 usr/share/dbus-1
diff --git a/debian/control b/debian/control
index 9f190d09..6df76ed1 100644
--- a/debian/control
+++ b/debian/control
@@ -116,6 +116,27 @@ Description: system service to manage device colour 
profiles -- argyll sensor pl
  This package contains a sensor plugin that uses the Argyll tools, allowing
  colord to support colourimeters that are supported by Argyll.
 
+Package: colord-plugin-sane
+Architecture: linux-any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+Replaces:
+ colord (<< 1.4.6-2.2~),
+Breaks:
+ colord (<< 1.4.6-2.2~),
+Enhances:
+ colord,
+Description: system service to manage device colour profiles -- SANE plugin
+ colord is a system service that makes it easy to manage, install and generate
+ colour profiles to accurately colour manage input and output devices.
+ .
+ It provides a D-Bus API for system frameworks to query, a persistent data
+ store, and a mechanism for session applications to set system policy.
+ .
+ This package contains a plugin that uses SANE, allowing
+ colord to support scanners that are supported by SANE.
+
 # Package: colord-argyll-plugin
 # Architecture: any
 # Depends:

Reply via email to