[bluez/f14/master] - Fix bluetoothd not starting on cold boot (#634205)

Bastien Nocera hadess at fedoraproject.org
Wed Sep 22 11:40:24 UTC 2010


commit d4013c96e5787e9190003f1a58c069bc37e95acb
Author: Bastien Nocera <hadess at hadess.net>
Date:   Wed Sep 22 12:40:18 2010 +0100

    - Fix bluetoothd not starting on cold boot (#634205)

 ...Also-run-bluetoothd-on-udev-change-events.patch |   24 ++++++++++++++++++++
 bluez.spec                                         |    9 ++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/0001-Also-run-bluetoothd-on-udev-change-events.patch b/0001-Also-run-bluetoothd-on-udev-change-events.patch
new file mode 100644
index 0000000..5301c78
--- /dev/null
+++ b/0001-Also-run-bluetoothd-on-udev-change-events.patch
@@ -0,0 +1,24 @@
+From 156877874776d3caec3641f09a34a42e4102ef71 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Wed, 22 Sep 2010 12:35:54 +0100
+Subject: [PATCH] Also run bluetoothd on udev change events
+
+Fixes bluetoothd not starting on cold boot with newer versions
+of udev. See:
+https://bugzilla.redhat.com/show_bug.cgi?id=634205
+---
+ scripts/bluetooth.rules.in |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/scripts/bluetooth.rules.in b/scripts/bluetooth.rules.in
+index 6809e9d..64df69d 100644
+--- a/scripts/bluetooth.rules.in
++++ b/scripts/bluetooth.rules.in
+@@ -1,3 +1,4 @@
+ # Run helper every time a Bluetooth device appears
+ # On remove actions, bluetoothd should go away by itself
+ ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="@prefix@/sbin/bluetoothd --udev"
++ACTION=="change", SUBSYSTEM=="bluetooth", RUN+="@prefix@/sbin/bluetoothd --udev"
+-- 
+1.7.2.3
+
diff --git a/bluez.spec b/bluez.spec
index fc7e76e..49fb2f9 100644
--- a/bluez.spec
+++ b/bluez.spec
@@ -1,7 +1,7 @@
 Summary: Bluetooth utilities
 Name: bluez
 Version: 4.71
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group: Applications/System
 Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
@@ -13,6 +13,9 @@ Source6: pand.conf
 Source7: rfcomm.init
 Source8: bluez-uinput.modules
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=634205
+# http://thread.gmane.org/gmane.linux.bluez.kernel/7853
+Patch1: 0001-Also-run-bluetoothd-on-udev-change-events.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=450081
 # http://thread.gmane.org/gmane.linux.bluez.kernel/1687
 Patch2: bluez-try-utf8-harder.patch
@@ -129,6 +132,7 @@ This includes hidd, dund and pand.
 %prep
 
 %setup -q
+%patch1 -p1 -b .udev
 %patch2 -p1 -b .non-utf8-name
 %patch4 -p1 -b .socket-mobile
 %patch5 -p1 -b .cable-pairing
@@ -295,6 +299,9 @@ fi
 %{_mandir}/man1/pand.1.gz
 
 %changelog
+* Wed Sep 22 2010 Bastien Nocera <bnocera at redhat.com> 4.71-5
+- Fix bluetoothd not starting on cold boot (#634205)
+
 * Thu Sep 16 2010 Bill Nottingham <notting at redhat.com> 4.71-4
 - re-add sysv script
 


More information about the scm-commits mailing list