Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0434AC3ABDD for ; Fri, 16 May 2025 11:23:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id CBE9561263; Fri, 16 May 2025 11:23:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id pzZTFlHk65Sb; Fri, 16 May 2025 11:23:54 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 07CC061354 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 07CC061354; Fri, 16 May 2025 11:23:54 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 4A920185 for ; Fri, 16 May 2025 11:22:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7231A83C7A for ; Fri, 16 May 2025 11:22:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id kAUrJVUb5LWi for ; Fri, 16 May 2025 11:21:56 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.167.122; helo=busybox.osuosl.org; envelope-from=buildroot-git-push@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C8845813D0 Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id C8845813D0 for ; Fri, 16 May 2025 11:21:54 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4053) id C58AF81063; Fri, 16 May 2025 11:21:54 +0000 (UTC) To: buildroot@buildroot.org Date: Wed, 14 May 2025 21:03:45 +0200 X-Git-Refname: refs/heads/2025.02.x X-Git-Oldrev: 0716a6f838489a2be5feed009449d58c1979b8bf X-Git-Newrev: 6e18929f04d3f2506f047600f8fa34ce9447a59b X-Patchwork-Hint: ignore Message-Id: <20250516112154.C58AF81063@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2025.02.x] package/bird: fix build failure with bfd X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Perale via buildroot Reply-To: Thomas Perale MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=6e18929f04d3f2506f047600f8fa34ce9447a59b branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x The 'bird' package with only the `BR2_PACKAGE_BIRD_BFD=y` protocol enabled fails to build with the following error ``` bison -Dparse.lac=full -Dparse.error=verbose -dv -pcf_ -b obj/conf/cf-parse obj/conf/cf-parse.y proto/bfd/config.Y:204.27-33: error: symbol 'ADDRESS' is used, but is not defined as a token and has no rules 204 | | bfd_show_sessions_args ADDRESS net_or_ipa { net_copy(&($$->address... | ^~~~~~~ ``` The `ADDRESS` token is defined only when certain protocols (e.g. OSPF, RIP, RPKI, or BGP) are enabled. As a result, builds including any of these protocols do not encounter the issue. The issue can be reproduced with the commands: cat >.config < [Julien: add commands to reproduce the issue] Signed-off-by: Julien Olivain (cherry picked from commit 80cfdcb86ba455ed286bea1f557ff351ac6ce263) Signed-off-by: Thomas Perale --- ...0002-BFD-Fix-missing-keyword-declarations.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/package/bird/0002-BFD-Fix-missing-keyword-declarations.patch b/package/bird/0002-BFD-Fix-missing-keyword-declarations.patch new file mode 100644 index 0000000000..29ec8abf7b --- /dev/null +++ b/package/bird/0002-BFD-Fix-missing-keyword-declarations.patch @@ -0,0 +1,31 @@ +From e5b582868c5fa7e185a12023784adc8df7b8c7a2 Mon Sep 17 00:00:00 2001 +From: Ondrej Zajicek +Date: Thu, 9 Jan 2025 00:30:37 +0100 +Subject: [PATCH] BFD: Fix missing keyword declarations + +Some keywords were missing for BFD-only build. + +Upstream: https://gitlab.nic.cz/labs/bird/-/commit/c386369645e584facaad88ec292f2fe0bc70d974 +[tperale: backport v2.15.1] +Signed-off-by: Thomas Perale +--- + proto/bfd/config.Y | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/proto/bfd/config.Y b/proto/bfd/config.Y +index 1a7474b0..70b09ad8 100644 +--- a/proto/bfd/config.Y ++++ b/proto/bfd/config.Y +@@ -21,8 +21,8 @@ extern struct bfd_config *bfd_cf; + + CF_DECLS + +-CF_KEYWORDS(BFD, MIN, IDLE, RX, TX, INTERVAL, MULTIPLIER, PASSIVE, +- INTERFACE, MULTIHOP, NEIGHBOR, DEV, LOCAL, AUTHENTICATION, ++CF_KEYWORDS(BFD, MIN, IDLE, RX, TX, INTERVAL, MULTIPLIER, PASSIVE, ADDRESS, ++ INTERFACE, MULTIHOP, NEIGHBOR, DEV, ALL, LOCAL, AUTHENTICATION, + NONE, SIMPLE, METICULOUS, KEYED, MD5, SHA1, IPV4, IPV6, DIRECT, + STRICT, BIND) + +-- +2.49.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot