]> code.ossystems Code Review - openembedded-core.git/commitdiff
bluez5: upgrade to 5.37
authorMaxin B. John <maxin.john@intel.com>
Thu, 7 Jan 2016 14:31:35 +0000 (16:31 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jan 2016 23:23:16 +0000 (23:23 +0000)
5.36 -> 5.37

Remove the backported patch:
core-profile-Fix-possible-crash-when-registering-pro.patch

Build bluez5 only when DISTRO_FEATURES include bluez5

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/bluez5/bluez5.inc
meta/recipes-connectivity/bluez5/bluez5/core-profile-Fix-possible-crash-when-registering-pro.patch [deleted file]
meta/recipes-connectivity/bluez5/bluez5_5.37.bb [moved from meta/recipes-connectivity/bluez5/bluez5_5.36.bb with 83% similarity]

index 3aaefa366cc6aa4862f1f164f29ffe74281c88ca..ff2bdcba62a4ace9e2195673a3800a5eb4375973 100644 (file)
@@ -22,7 +22,7 @@ SRC_URI = "\
 "
 S = "${WORKDIR}/bluez-${PV}"
 
-inherit autotools-brokensep pkgconfig systemd update-rc.d
+inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check
 
 EXTRA_OECONF = "\
   --enable-tools \
diff --git a/meta/recipes-connectivity/bluez5/bluez5/core-profile-Fix-possible-crash-when-registering-pro.patch b/meta/recipes-connectivity/bluez5/bluez5/core-profile-Fix-possible-crash-when-registering-pro.patch
deleted file mode 100644 (file)
index 5c6cee1..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-From bc4dbda3362d3654447d8ae6525cac1540b7d705 Mon Sep 17 00:00:00 2001
-From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-Date: Thu, 5 Nov 2015 15:14:50 +0200
-Subject: [PATCH] core/profile: Fix possible crash when registering profiles
-
-Upstream-Status: Backport
-
-Profiles under ext_profiles are local and should no be mixed with other
-external profiles since its type is different which can may cause invalid
-memory when accessing member of ext_profile struct.
----
- src/profile.c | 14 ++------------
- 1 file changed, 2 insertions(+), 12 deletions(-)
-
-diff --git a/src/profile.c b/src/profile.c
-index 49445d7..5a4f09c 100644
---- a/src/profile.c
-+++ b/src/profile.c
-@@ -719,19 +719,13 @@ void btd_profile_foreach(void (*func)(struct btd_profile *p, void *data),
- int btd_profile_register(struct btd_profile *profile)
- {
--      if (profile->external)
--              ext_profiles = g_slist_append(ext_profiles, profile);
--      else
--              profiles = g_slist_append(profiles, profile);
-+      profiles = g_slist_append(profiles, profile);
-       return 0;
- }
- void btd_profile_unregister(struct btd_profile *profile)
- {
--      if (profile->external)
--              ext_profiles = g_slist_remove(ext_profiles, profile);
--      else
--              profiles = g_slist_remove(profiles, profile);
-+      profiles = g_slist_remove(profiles, profile);
- }
- static struct ext_profile *find_ext_profile(const char *owner,
-@@ -742,10 +736,6 @@ static struct ext_profile *find_ext_profile(const char *owner,
-       for (l = ext_profiles; l != NULL; l = g_slist_next(l)) {
-               struct ext_profile *ext = l->data;
--              /*
--               * Owner and path can be NULL if profile was registered by a
--               * plugin using external flag.
--               */
-               if (g_strcmp0(ext->owner, owner))
-                       continue;
--- 
-2.5.0
-
similarity index 83%
rename from meta/recipes-connectivity/bluez5/bluez5_5.36.bb
rename to meta/recipes-connectivity/bluez5/bluez5_5.37.bb
index 884bb7760ec22485ba2d0388cbaa5c8e0e37cec6..db20f79ffae4f3f25055ef5ab304b9b4d6d7d9d3 100644 (file)
@@ -1,8 +1,9 @@
 require bluez5.inc
 
-SRC_URI += "file://core-profile-Fix-possible-crash-when-registering-pro.patch"
-SRC_URI[md5sum] = "9a0ee479cacc44fac68f6a65b1cd3eba"
-SRC_URI[sha256sum] = "a343ea1aeb53d3bd139087f3b1c1e1fb70db452d9762cc7a3d23e75962e578f2"
+REQUIRED_DISTRO_FEATURES = "bluez5"
+
+SRC_URI[md5sum] = "33177e5743e24b2b3738f72be64e3ffb"
+SRC_URI[sha256sum] = "c14ba9ddcb0055522073477b8fd8bf1ddf5d219e75fdfd4699b7e0ce5350d6b0"
 
 # noinst programs in Makefile.tools that are conditional on READLINE
 # support