From 5ac875f8799f7dc6a66186cb0664c561341f69bb Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Aug 11 2009 13:57:02 +0000 Subject: - More upstream CUPS fixes --- diff --git a/0001-Allow-lp-CUPS-to-talk-to-bluetoothd.patch b/0001-Allow-lp-CUPS-to-talk-to-bluetoothd.patch new file mode 100644 index 0000000..1d81db1 --- /dev/null +++ b/0001-Allow-lp-CUPS-to-talk-to-bluetoothd.patch @@ -0,0 +1,31 @@ +From b2d24735492e6a71f3441720940ac55c33fa0838 Mon Sep 17 00:00:00 2001 +From: Till Kamppeter +Date: Tue, 11 Aug 2009 14:04:05 +0100 +Subject: [PATCH 1/2] Allow lp (CUPS) to talk to bluetoothd + +CUPS runs its backend helpers as the "lp" user, so we should +allow CUPS to talk to bluetoothd to enumerate printers. +--- + src/bluetooth.conf | 6 ++++++ + 1 files changed, 6 insertions(+), 0 deletions(-) + +diff --git a/src/bluetooth.conf b/src/bluetooth.conf +index c047623..315009c 100644 +--- a/src/bluetooth.conf ++++ b/src/bluetooth.conf +@@ -17,6 +17,12 @@ + + + ++ ++ ++ ++ ++ + + + +-- +1.6.2.5 + diff --git a/0002-Mark-Bluetooth-printers-as-being-local.patch b/0002-Mark-Bluetooth-printers-as-being-local.patch new file mode 100644 index 0000000..f418583 --- /dev/null +++ b/0002-Mark-Bluetooth-printers-as-being-local.patch @@ -0,0 +1,27 @@ +From d96004d65132a7934308ded8010c5f819013157a Mon Sep 17 00:00:00 2001 +From: Till Kamppeter +Date: Tue, 11 Aug 2009 14:06:59 +0100 +Subject: [PATCH 2/2] Mark Bluetooth printers as being local + +For discovery purposes. Also add a better label for the printer, +and append "(Bluetooth") to the "unique" name. +--- + cups/main.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/cups/main.c b/cups/main.c +index ba9864f..bb15c9c 100644 +--- a/cups/main.c ++++ b/cups/main.c +@@ -226,7 +226,7 @@ static void print_printer_details(const char *name, const char *bdaddr, const ch + bdaddr[9], bdaddr[10], + bdaddr[12], bdaddr[13], + bdaddr[15], bdaddr[16]); +- printf("network %s \"Unknown\" \"%s (Bluetooth)\"", uri, escaped); ++ printf("direct %s \"%s\" \"%s (Bluetooth)\"", uri, escaped, escaped); + if (id != NULL) + printf(" \"%s\"\n", id); + else +-- +1.6.2.5 + diff --git a/bluez.spec b/bluez.spec index 1045ca8..da7c45b 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,7 +1,7 @@ Summary: Bluetooth utilities Name: bluez Version: 4.42 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ Group: Applications/System Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz @@ -17,8 +17,12 @@ Patch3: bluez-activate-wacom-mode2.patch Patch4: bluez-socket-mobile-cf-connection-kit.patch # https://bugzilla.redhat.com/show_bug.cgi?id=507572 Patch5: cups-less-errors.patch +# http://thread.gmane.org/gmane.linux.bluez.kernel/3108 Patch6: 0001-Don-t-abort-cups-backend-on-property-change.patch Patch7: 0002-Actually-read-the-CreateDevice-reply.patch +# http://thread.gmane.org/gmane.linux.bluez.kernel/3106/focus=3114 +Patch8: 0001-Allow-lp-CUPS-to-talk-to-bluetoothd.patch +Patch9: 0002-Mark-Bluetooth-printers-as-being-local.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://www.bluez.org/ @@ -111,6 +115,8 @@ use in Bluetooth applications. %patch5 -p1 -b .cups-less-errors %patch6 -p1 %patch7 -p1 +%patch8 -p1 +%patch9 -p1 %build %configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund @@ -205,6 +211,9 @@ fi %{_sysconfdir}/alsa/bluetooth.conf %changelog +* Tue Aug 11 2009 Bastien Nocera 4.42-5 +- More upstream CUPS fixes + * Tue Aug 11 2009 Bastien Nocera 4.42-4 - Fix cups discovery the first time we discover a device