rpms/bluez-gnome/devel 0001-Add-support-for-pairing-a-few-GPS-devices.patch, NONE, 1.1 bluez-gnome.spec, 1.68, 1.69

Bastien Nocera hadess at fedoraproject.org
Thu Oct 23 21:57:58 UTC 2008


Author: hadess

Update of /cvs/pkgs/rpms/bluez-gnome/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6380

Modified Files:
	bluez-gnome.spec 
Added Files:
	0001-Add-support-for-pairing-a-few-GPS-devices.patch 
Log Message:
* Thu Oct 23 2008 - Bastien Nocera <bnocera at redhat.com> - 1.8-7
- Add support for pairing a few GPS devices (#464446)


0001-Add-support-for-pairing-a-few-GPS-devices.patch:

--- NEW FILE 0001-Add-support-for-pairing-a-few-GPS-devices.patch ---
>From 91d5a9fc32f990c92fa5091c046ccbb6ed2e72e0 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Thu, 23 Oct 2008 22:51:30 +0100
Subject: [PATCH] Add support for pairing a few GPS devices

Add support for hard-coded pincodes for a few GPS devices, one being
mine, the other being mentioned by Ralph Loader in
https://bugzilla.redhat.com/show_bug.cgi?id=464446
---
 wizard/main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/wizard/main.c b/wizard/main.c
index 6f0b035..a20e280 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -75,6 +75,14 @@ static gboolean pincode_callback(DBusGMethodInvocation *context,
 				target_type == BLUETOOTH_TYPE_HEADPHONE)
 		pincode = "0000";
 
+	/* Most GPS devices also use 0000 as pincode */
+	if (g_str_has_prefix(target_address, "00:0D:B5") == TRUE &&
+				(g_str_equal(target_name,
+							"TomTom Wireless GPS MkII") == TRUE ||
+				g_str_equal(target_name,
+							"GPS-GW-005") == TRUE))
+		pincode = "0000";
+
 	text = g_strdup_printf(_("Please enter the following PIN code: %s"),
 								pincode);
 	gtk_label_set_markup(GTK_LABEL(label_passkey), text);
-- 
1.6.0.3



Index: bluez-gnome.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bluez-gnome/devel/bluez-gnome.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- bluez-gnome.spec	20 Oct 2008 20:05:43 -0000	1.68
+++ bluez-gnome.spec	23 Oct 2008 21:57:28 -0000	1.69
@@ -1,6 +1,6 @@
 Name:		bluez-gnome
 Version:	1.8
-Release:	6%{?dist}
+Release:	7%{?dist}
 Summary:	Bluetooth pairing and control applet
 
 Group:		Applications/System
@@ -19,7 +19,8 @@
 Patch5:		bluez-apple-wireless-kbd.patch
 # http://git.kernel.org/?p=bluetooth/bluez-gnome.git;a=commitdiff;h=7256de93be73f50913f6689a0690e3c0a28dfe3b
 Patch6:		bluez-wizard-fix-null-display.patch
-
+# https://bugzilla.redhat.com/show_bug.cgi?id=464446
+Patch7:		0001-Add-support-for-pairing-a-few-GPS-devices.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -64,6 +65,7 @@
 %patch4 -p1 -b .trust
 %patch5 -p1 -b .apple-kbd
 %patch6 -p1 -b .wizard-crash
+%patch7 -p1 -b .gps
 
 %build
 %configure --disable-mime-update --disable-desktop-update --disable-icon-update
@@ -155,6 +157,9 @@
 %{_mandir}/man1/bluetooth-analyzer.1.gz
 
 %changelog
+* Thu Oct 23 2008 - Bastien Nocera <bnocera at redhat.com> - 1.8-7
+- Add support for pairing a few GPS devices (#464446)
+
 * Mon Oct 20 2008 - Bastien Nocera <bnocera at redhat.com> - 1.8-6
 - Add missing patch
 




More information about the scm-commits mailing list