From 0c6e7092421638413921f242e7d405fda1da9533 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sun, 14 Sep 2008 21:11:24 +0000 Subject: [PATCH] 4.6 --- .cvsignore | 2 +- bluez-4.5-browse-fixes.patch | 70 ------------------------------------ bluez.spec | 9 ++--- sources | 2 +- 4 files changed, 7 insertions(+), 76 deletions(-) delete mode 100644 bluez-4.5-browse-fixes.patch diff --git a/.cvsignore b/.cvsignore index 4f40716..97d5c34 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bluez-4.5.tar.gz +bluez-4.6.tar.gz diff --git a/bluez-4.5-browse-fixes.patch b/bluez-4.5-browse-fixes.patch deleted file mode 100644 index cfcf8b6..0000000 --- a/bluez-4.5-browse-fixes.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- bluez-4.5/src/device.c.orig 2008-09-11 23:59:02.000000000 -0700 -+++ bluez-4.5/src/device.c 2008-09-12 21:04:40.000000000 -0700 -@@ -977,8 +977,9 @@ static void browse_cb(sdp_list_t *recs, - bdaddr_t src, dst; - uuid_t uuid; - -- /* Public browsing successful or Single record requested */ -- if (err < 0 || (!req->search_uuid && recs)) -+ /* If we have a valid response and req->search_uuid == 1, then -+ public browsing was successful -- we don't need any more */ -+ if (err < 0 || (req->search_uuid == 1 && recs)) - goto done; - - update_services(req, recs); -@@ -987,8 +988,8 @@ static void browse_cb(sdp_list_t *recs, - str2ba(device->address, &dst); - - /* Search for mandatory uuids */ -- if (uuid_list[++req->search_uuid]) { -- sdp_uuid16_create(&uuid, uuid_list[req->search_uuid]); -+ if (uuid_list[req->search_uuid]) { -+ sdp_uuid16_create(&uuid, uuid_list[req->search_uuid++]); - bt_search_service(&src, &dst, &uuid, browse_cb, user_data, NULL); - return; - } -@@ -1025,10 +1026,25 @@ static void init_browse(struct browse_re - - for (i = 0; driver->uuids[i]; i++) { - char *uuid; -+ int j; - -+ /* Eliminate duplicates of UUIDs in uuid_list[]... */ -+ if (strlen(driver->uuids[i]) == 36 && -+ !strncmp(driver->uuids[i], "0000", 4) && -+ !strcasecmp(driver->uuids[i] + 8, -+ "-0000-1000-8000-00805F9B34FB")) { -+ uint16_t uuid16 = strtol(driver->uuids[i], -+ NULL, 16); -+ for (j = 0; uuid_list[j]; j++) { -+ if (uuid16 == uuid_list[j]) -+ continue; -+ } -+ -+ } -+ /* ... and of UUIDs another driver already asked for */ - if (g_slist_find_custom(req->uuids, driver->uuids[i], - (GCompareFunc) strcasecmp)) -- return; -+ continue; - - uuid = g_strdup(driver->uuids[i]); - req->uuids = g_slist_append(req->uuids, uuid); -@@ -1062,7 +1078,7 @@ int device_browse(struct btd_device *dev - memcpy(&uuid, search, sizeof(uuid_t)); - cb = search_cb; - } else { -- sdp_uuid16_create(&uuid, uuid_list[req->search_uuid]); -+ sdp_uuid16_create(&uuid, uuid_list[req->search_uuid++]); - init_browse(req); - cb = browse_cb; - } -@@ -1076,7 +1092,7 @@ int device_browse(struct btd_device *dev - discover_services_req_exit, - device, NULL); - -- return bt_search_service(&src, &dst, &uuid, browse_cb, req, NULL); -+ return bt_search_service(&src, &dst, &uuid, cb, req, NULL); - } - - struct btd_adapter *device_get_adapter(struct btd_device *device) diff --git a/bluez.spec b/bluez.spec index c17c436..aaaaba8 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,14 +1,13 @@ Summary: Bluetooth utilities Name: bluez -Version: 4.5 -Release: 4%{?dist} +Version: 4.6 +Release: 1%{?dist} License: GPLv2+ Group: Applications/System Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz Source1: bluetooth.init Source2: bluetooth.conf Patch1: bluez-utils-oui-usage.patch -Patch2: bluez-4.5-browse-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://www.bluez.org/ @@ -97,7 +96,6 @@ use in Bluetooth applications. %setup -q %patch1 -p0 -b .oui -%patch2 -p1 %build %configure --enable-cups --enable-hid2hci --enable-dfutool --enable-tools --enable-bccmd --enable-gstreamer --enable-hidd --enable-pand --enable-dund @@ -183,6 +181,9 @@ fi %{_libdir}/alsa-lib/*.so %changelog +* Sun Sep 14 2008 - David Woodhouse - 4.6-1 +- Update to 4.6 + * Fri Sep 12 2008 - David Woodhouse - 4.5-4 - SDP browse fixes diff --git a/sources b/sources index 7ac6c36..694c727 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -97d4dfad90ed924952d013bd0b03bedd bluez-4.5.tar.gz +c10774d08fb04af4b4a6d148ffcb820a bluez-4.6.tar.gz