From 4df0ab5d9158689f3b602e0fe482124e3b782275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 25 Aug 2022 21:58:47 +0700 Subject: [PATCH] bluez: update to 5.65 Close: #38891 --- ...04-include-sys-time.h-for-musl-build.patch | 116 ------------------ srcpkgs/bluez/patches/0006-musl-fix.patch | 37 ------ .../bluez/patches/0007-include-string.h.patch | 25 ---- ...0009-include-limits.h-for-musl-build.patch | 11 -- srcpkgs/bluez/template | 4 +- 5 files changed, 2 insertions(+), 191 deletions(-) delete mode 100644 srcpkgs/bluez/patches/0004-include-sys-time.h-for-musl-build.patch delete mode 100644 srcpkgs/bluez/patches/0006-musl-fix.patch delete mode 100644 srcpkgs/bluez/patches/0007-include-string.h.patch delete mode 100644 srcpkgs/bluez/patches/0009-include-limits.h-for-musl-build.patch diff --git a/srcpkgs/bluez/patches/0004-include-sys-time.h-for-musl-build.patch b/srcpkgs/bluez/patches/0004-include-sys-time.h-for-musl-build.patch deleted file mode 100644 index f2e5a4ace6e..00000000000 --- a/srcpkgs/bluez/patches/0004-include-sys-time.h-for-musl-build.patch +++ /dev/null @@ -1,116 +0,0 @@ -From 1370cc9a32f8979158a894c3de75bcb3c29af03a Mon Sep 17 00:00:00 2001 -From: Doan Tran Cong Danh -Date: Thu, 3 Oct 2019 12:59:56 +0700 -Subject: [PATCH 4/8] include sys/time.h for musl build - ---- - mesh/appkey.c | 1 + - mesh/crypto.c | 1 + - mesh/friend.c | 1 + - mesh/manager.c | 1 + - mesh/mesh.c | 1 + - mesh/net.c | 2 +- - mesh/pb-adv.c | 1 + - mesh/prov-acceptor.c | 1 + - mesh/prov-initiator.c | 1 + - 9 files changed, 9 insertions(+), 1 deletion(-) - -diff --git a/mesh/appkey.c b/mesh/appkey.c -index 45d604007..b570bff9d 100644 ---- a/mesh/appkey.c -+++ b/mesh/appkey.c -@@ -22,6 +22,7 @@ - #endif - - #define _GNU_SOURCE -+#include - #include - - #include "mesh/mesh-defs.h" -diff --git a/mesh/crypto.c b/mesh/crypto.c -index 596a289f9..3ecdb564c 100644 ---- a/mesh/crypto.c -+++ b/mesh/crypto.c -@@ -24,6 +24,7 @@ - #define _GNU_SOURCE - #include - #include -+#include - #include - - #include "mesh/mesh-defs.h" -diff --git a/mesh/friend.c b/mesh/friend.c -index 5f5f6f823..a5bab6929 100644 ---- a/mesh/friend.c -+++ b/mesh/friend.c -@@ -21,6 +21,7 @@ - #include - #endif - -+#include - #include - - #include "mesh/mesh-defs.h" -diff --git a/mesh/manager.c b/mesh/manager.c -index e4a7deaeb..e5837ed48 100644 ---- a/mesh/manager.c -+++ b/mesh/manager.c -@@ -22,6 +22,7 @@ - #endif - - #define _GNU_SOURCE -+#include - #include - - #include "mesh/mesh-defs.h" -diff --git a/mesh/mesh.c b/mesh/mesh.c -index 6d2f86b6d..1eef01eee 100644 ---- a/mesh/mesh.c -+++ b/mesh/mesh.c -@@ -22,6 +22,7 @@ - #endif - - #define _GNU_SOURCE -+#include - #include - - #include "mesh/mesh-io.h" -diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c -index 6ef45b8b0..797ff9da7 100644 ---- a/mesh/pb-adv.c -+++ b/mesh/pb-adv.c -@@ -21,6 +21,7 @@ - #include - #endif - -+#include - #include - - #include "mesh/mesh-defs.h" -diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c -index 03972c227..1b38f1bdd 100644 ---- a/mesh/prov-acceptor.c -+++ b/mesh/prov-acceptor.c -@@ -21,6 +21,7 @@ - #include - #endif - -+#include - #include - - #include "src/shared/ecc.h" -diff --git a/mesh/prov-initiator.c b/mesh/prov-initiator.c -index 7a767cfb3..c9ffea45d 100644 ---- a/mesh/prov-initiator.c -+++ b/mesh/prov-initiator.c -@@ -21,6 +21,7 @@ - #include - #endif - -+#include - #include - - #include "src/shared/ecc.h" --- -2.23.0 - diff --git a/srcpkgs/bluez/patches/0006-musl-fix.patch b/srcpkgs/bluez/patches/0006-musl-fix.patch deleted file mode 100644 index ab0a588137e..00000000000 --- a/srcpkgs/bluez/patches/0006-musl-fix.patch +++ /dev/null @@ -1,37 +0,0 @@ -From d1d8408c9a7c7b5ffa30371f246cc18085e11313 Mon Sep 17 00:00:00 2001 -From: Doan Tran Cong Danh -Date: Thu, 3 Oct 2019 13:00:27 +0700 -Subject: [PATCH 6/9] musl fix - -Including causes the inclusion of , -which defines 'struct in6_addr', already defined in . -Remove to fix musl build. ---- - tools/bneptest.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/tools/bneptest.c b/tools/bneptest.c -index 8bc7596b6..6b3956cfa 100644 ---- a/tools/bneptest.c -+++ b/tools/bneptest.c -@@ -37,7 +37,6 @@ - #include - #include - #include --#include - - #include - -@@ -51,6 +50,9 @@ - #include "lib/bnep.h" - #include "profiles/network/bnep.h" - -+/* From */ -+#define BRCTL_SET_BRIDGE_FORWARD_DELAY 8 -+ - enum { - MODE_LISTEN, - MODE_CONNECT, --- -2.23.0 - diff --git a/srcpkgs/bluez/patches/0007-include-string.h.patch b/srcpkgs/bluez/patches/0007-include-string.h.patch deleted file mode 100644 index e1cff41df49..00000000000 --- a/srcpkgs/bluez/patches/0007-include-string.h.patch +++ /dev/null @@ -1,25 +0,0 @@ -From fe1a76a03b9cbc28621d53680eb9ff4a2bd31778 Mon Sep 17 00:00:00 2001 -From: Doan Tran Cong Danh -Date: Thu, 3 Oct 2019 16:31:01 +0700 -Subject: [PATCH 7/9] include string.h - ---- - android/client/if-hf-client.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/android/client/if-hf-client.c b/android/client/if-hf-client.c -index f701a814c..b44eb4291 100644 ---- a/android/client/if-hf-client.c -+++ b/android/client/if-hf-client.c -@@ -16,6 +16,8 @@ - */ - - #define _GNU_SOURCE -+#include -+ - #include "if-main.h" - #include "../hal-utils.h" - --- -2.23.0 - diff --git a/srcpkgs/bluez/patches/0009-include-limits.h-for-musl-build.patch b/srcpkgs/bluez/patches/0009-include-limits.h-for-musl-build.patch deleted file mode 100644 index c6627b90ac8..00000000000 --- a/srcpkgs/bluez/patches/0009-include-limits.h-for-musl-build.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/tools/mesh-cfgtest.c -+++ b/tools/mesh-cfgtest.c -@@ -34,6 +34,8 @@ - #include "mesh/mesh-defs.h" - #include "mesh/mesh.h" - -+#include -+ - #define MAX_CRPL_SIZE 0x7fff - #define CFG_SRV_MODEL 0x0000 - #define CFG_CLI_MODEL 0x0001 diff --git a/srcpkgs/bluez/template b/srcpkgs/bluez/template index e9827e8e1d9..fa05de5091f 100644 --- a/srcpkgs/bluez/template +++ b/srcpkgs/bluez/template @@ -1,6 +1,6 @@ # Template file for 'bluez' pkgname=bluez -version=5.64 +version=5.65 revision=1 build_style=gnu-configure configure_args="--with-udevdir=/usr/lib/udev --disable-systemd @@ -15,7 +15,7 @@ maintainer="Érico Nogueira " license="GPL-2.0-or-later, LGPL-2.1-or-later" homepage="http://www.bluez.org/" distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz" -checksum=ae437e65b6b3070c198bc5b0109fe9cdeb9eaa387380e2072f9de65fe8a1de34 +checksum=2565a4d48354b576e6ad92e25b54ed66808296581c8abb80587051f9993d96d4 conf_files="/etc/bluetooth/main.conf" system_groups="bluetooth"