[Buildroot] [git commit branch/2021.02.x] package/bluez5_utils: fix mesh build with musl
From: Peter Korsgaard <peter@korsgaard.com>
Date: 2021-12-13 21:15:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=573978d29ddb73533e20e1de4af92d76896e38fe branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x when compiling with mesh support and musl toolchain the build fails due to a missing include of limits.h for PATH_MAX in mesh-cfgtest.c. Patch submitted upstream: https://lore.kernel.org/linux-bluetooth/20210723081039.30396-1-bluez@heine.tech (local) Fixes: http://autobuild.buildroot.net/results/20cc47f54de0b0d4bdf108c3715c590ae8ab476f/ http://autobuild.buildroot.net/results/003968b25906579dbcf5a95d1e43fec0ab504ef5/ Signed-off-by: Michael Nosthoff <redacted> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 950a09fc56e76499258a843472d4fd5d1a08bf25) Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- .../0001-tools-mesh-cfgtest-include-limits.h.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+)
diff --git a/package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch b/package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch
new file mode 100644
index 0000000000..26c7f85e0c
--- /dev/null
+++ b/package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch@@ -0,0 +1,33 @@ +From 5158827fded7cb4daf550a5956aff0c74f6c38fc Mon Sep 17 00:00:00 2001 +From: Michael Nosthoff <bluez@heine.tech> +Date: Thu, 22 Jul 2021 21:36:13 +0200 +Subject: [PATCH BlueZ] tools/mesh-cfgtest: include limits.h + +mesh-cfgtest.c uses PATH_MAX so it should include limits.h. + +fixes compilation error when enabling mesh support with musl-based +toolchains observed in buildroot autobuilders. + +http://autobuild.buildroot.net/results/20cc47f54de0b0d4bdf108c3715c590ae8ab476f/ +http://autobuild.buildroot.net/results/003968b25906579dbcf5a95d1e43fec0ab504ef5/ + +Signed-off-by: Michael Nosthoff <buildroot@heine.tech> +--- + tools/mesh-cfgtest.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/mesh-cfgtest.c b/tools/mesh-cfgtest.c +index fa0474faa..116ab7f16 100644 +--- a/tools/mesh-cfgtest.c ++++ b/tools/mesh-cfgtest.c +@@ -21,6 +21,7 @@ + #include <ftw.h> + #include <getopt.h> + #include <libgen.h> ++#include <limits.h> + #include <signal.h> + #include <stdio.h> + #include <time.h> +-- +2.32.0 +
_______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot