Skip to contentSkip to conversation

package/bluez5_utils: fix build with libglib2 >= 2.69

PATCH New Thomas Devoogdt 1 participant 1 message Feb 6, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/bluez5_utils: fix build with libglib2 >= 2.69

Fix the following build failure raised since bump of libglib2 to version 2.70 in commit 079923d:

profiles/battery/battery.c:162:2: warning: 'g_memdup' is deprecated (declared at /home/buildroot/autobuild/instance-0/output-1/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include/glib-2.0/glib/gstrfuncs.h:257): Use 'g_memdup2' instead [-Wdeprecated-declarations]
batt->initial_value = g_memdup(value, length);

Fixes:
- http://autobuild.buildroot.org/results/6b8/6b8870d12e0804d6154230a7322c49416c1dc0e2/build-end.log

Sources:
- https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=710220f861b100856711a0a4d4a852874228a57a
- https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=9f09e69ecb077082301dafb745856e1f3731aaa7
- https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=cfab569484b18407fc117bb96634525cc76ea1f5

---
 ...-tools-mesh-cfgtest-include-limits.h.patch |    6 +-
 ...til-Rename-btd_malloc-to-util_malloc.patch |   67 +
 .../0003-shared-util-Add-util_memdup.patch    |   57 +
 ...ace-use-of-g_memdup-with-util_memdup.patch | 1411 +++++++++++++++++
 4 files changed, 1538 insertions(+), 3 deletions(-)
 create mode 100644 package/bluez5_utils/0002-shared-util-Rename-btd_malloc-to-util_malloc.patch
 create mode 100644 package/bluez5_utils/0003-shared-util-Add-util_memdup.patch
 create mode 100644 package/bluez5_utils/0004-build-Replace-use-of-g_memdup-with-util_memdup.patch
package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch +3 -3
index 7f1197357f..57f363a7fd 100644
@@ -1,7 +1,7 @@
-From 5158827fded7cb4daf550a5956aff0c74f6c38fc Mon Sep 17 00:00:00 2001
+From 1cf621cae3844f31bdac85298f4ae736be5488f6 Mon Sep 17 00:00:00 2001
 From: Michael Nosthoff <[email protected]>
 Date: Thu, 22 Jul 2021 21:36:13 +0200
-Subject: [PATCH] tools/mesh-cfgtest: include limits.h
+Subject: [PATCH 1/4] tools/mesh-cfgtest: include limits.h
 
 mesh-cfgtest.c uses PATH_MAX so it should include limits.h.
 
@@ -29,5 +29,5 @@ index fa0474faa..116ab7f16 100644
  #include <stdio.h>
  #include <time.h>
 -- 
-2.32.0
+2.17.1
 
package/bluez5_utils/0002-shared-util-Rename-btd_malloc-to-util_malloc.patch new file +67 -0

67 lines not on this page · raw message

package/bluez5_utils/0003-shared-util-Add-util_memdup.patch new file +57 -0

57 lines not on this page · raw message

package/bluez5_utils/0004-build-Replace-use-of-g_memdup-with-util_memdup.patch new file +1411 -0

1,411 lines not on this page · raw message

Signature · 6 lines
2.17.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot