[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#711868: Regression: icc profiles not registered in colord



Package: cups-daemon
Version: 1.6.2-8
Severity: normal
Tags: upstream patch

Dear Maintainer,

A new version of cups daemon (1.6.2) does not register printer icc profiles in
colord anymore. Instead, the following error message appears:

org.freedesktop.DBus.Error.UnknownMethod:No such interface
`org.freedesktop.ColorManager' on object at path
/org/freedesktop/ColorManager/devices/cups_<printername>

This was caused by misspelled name in dbus access:
"org.freedesktop.ColorManager" instead of
"org.freedesktop.ColorManager.Device". The attached patch fixes it.

Regards,
Alex



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-rt-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cups-daemon depends on:
ii  adduser           3.113+nmu3
ii  bc                1.06.95-6
ii  dpkg              1.16.10
ii  libavahi-client3  0.6.31-2
ii  libavahi-common3  0.6.31-2
ii  libc6             2.17-3
ii  libcups2          1.6.2-8
ii  libcupsmime1      1.6.2-8
ii  libdbus-1-3       1.6.10-1
ii  libgnutls26       2.12.23-5
ii  libgssapi-krb5-2  1.10.1+dfsg-5
ii  libpam0g          1.1.3-9
ii  libpaper1         1.1.24+nmu2
ii  lsb-base          4.1+Debian11
ii  procps            1:3.3.4-2
ii  ssl-cert          1.0.32

Versions of packages cups-daemon recommends:
ii  avahi-daemon  0.6.31-2
ii  colord        0.1.31-1
pn  cups-browsed  <none>

Versions of packages cups-daemon suggests:
ii  cups                                       1.6.2-8
ii  cups-bsd                                   1.6.2-8
ii  cups-client                                1.6.2-8
ii  cups-common                                1.6.2-8
ii  cups-filters                               1.0.34-3
pn  cups-pdf                                   <none>
ii  cups-ppdc                                  1.5.3-5
ii  cups-server-common                         1.6.2-8
pn  foomatic-db-compressed-ppds | foomatic-db  <none>
ii  foomatic-filters                           4.0.17-1
ii  ghostscript                                9.05~dfsg-6.3
ii  ghostscript-cups                           9.05~dfsg-6.3
ii  hplip                                      3.13.4-1
ii  poppler-utils                              0.18.4-6
ii  printer-driver-gutenprint                  5.2.9-1
ii  printer-driver-hpcups                      3.13.4-1
ii  smbclient                                  2:3.6.15-1
ii  udev                                       175-7.2

-- no debconf information
--- cups-1.6.2.orig/scheduler/colorman.c	2013-02-20 05:53:01.000000000 +0600
+++ cups-1.6.2/scheduler/colorman.c	2013-06-10 18:50:49.000000000 +0600
@@ -84,10 +84,13 @@
 #  define COLORD_KIND_PRINTER	"printer"
 					/* printing output device */
 
-#  define COLORD_DBUS_MSG(p,m)	dbus_message_new_method_call(\
+#  define COLORD_DBUS_MSG_PARM(p,x,m)	dbus_message_new_method_call(\
 					"org.freedesktop.ColorManager", (p),\
-                                        "org.freedesktop.ColorManager", (m))
+                                        "org.freedesktop.ColorManager" x, (m))
                                         /* Macro to make new colord messages */
+#  define COLORD_DBUS_MSG(p,m)	COLORD_DBUS_MSG_PARM(p,"",m)
+                                        /* Macro to make new colord messages */
+
 #  define COLORD_DBUS_PATH	"/org/freedesktop/ColorManager"
 					/* Path for color management system */
 #  define COLORD_DBUS_TIMEOUT	5000	/* Timeout for connecting to colord in ms */
@@ -1177,7 +1180,7 @@
   DBusError	error;			/* D-Bus error */
 
 
-  message = COLORD_DBUS_MSG(device_path, "AddProfile");
+  message = COLORD_DBUS_MSG_PARM(device_path, ".Device", "AddProfile");
 
   dbus_message_iter_init_append(message, &args);
   dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &relation);

Reply to: