From patchwork Fri Jul 23 13:26:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1509164 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=PEVIgsVs; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GWVVW0QjXz9sXN for ; Fri, 23 Jul 2021 23:27:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8E2276062F; Fri, 23 Jul 2021 13:27:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id is8RE91_risq; Fri, 23 Jul 2021 13:27:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id F2F50605E7; Fri, 23 Jul 2021 13:27:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id CDE871BF20B for ; Fri, 23 Jul 2021 13:27:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B9258605E7 for ; Fri, 23 Jul 2021 13:27:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VxnG3hkZAJr4 for ; Fri, 23 Jul 2021 13:27:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mail.heine.tech (mail.heine.tech [IPv6:2a01:4f8:1c0c:5073::1]) by smtp3.osuosl.org (Postfix) with ESMTPS id 94AAE605D0 for ; Fri, 23 Jul 2021 13:27:23 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 66B0018287E; Fri, 23 Jul 2021 15:27:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1627046839; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=uhtOhplt1kVSaaWpfVRtJfwqlAAUHZJlFdNkFTwpAV8=; b=PEVIgsVsncXJntIw2Ja+oSpSOJGo0q024nvsFD20kO39pAaA2dE5q89rvRht6c81FEdp2D j70NP0iEMS5sXmWThBBpHpm9JCU9obaNJhkaTW6IHk675GKFl15eVQhuz1Kuo8/V2hmlnh EPVBQLS5ffokikCXdbVOZIujxIsTEsQ= To: buildroot@buildroot.org Date: Fri, 23 Jul 2021 15:26:46 +0200 Message-Id: <20210723132648.30775-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.2 Subject: [Buildroot] [PATCH v2] package/bluez5_utils: fix mesh build with musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Michael Nosthoff via buildroot Reply-To: Michael Nosthoff Cc: Michael Nosthoff , Marcin Bis Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 Fixes: http://autobuild.buildroot.net/results/20cc47f54de0b0d4bdf108c3715c590ae8ab476f/ http://autobuild.buildroot.net/results/003968b25906579dbcf5a95d1e43fec0ab504ef5/ Signed-off-by: Michael Nosthoff --- ...-tools-mesh-cfgtest-include-limits.h.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch 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..8f40a94873 --- /dev/null +++ b/package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch @@ -0,0 +1,32 @@ +From 5158827fded7cb4daf550a5956aff0c74f6c38fc Mon Sep 17 00:00:00 2001 +From: Michael Nosthoff +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/ + +--- + 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 + #include + #include ++#include + #include + #include + #include +-- +2.32.0 +