From patchwork Sat Oct 19 08:34:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1179794 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iQ5WQZJf"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46wGQG3Cswz9sP3 for ; Sat, 19 Oct 2019 19:33:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 27E4F8646F; Sat, 19 Oct 2019 08:33:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nAdhM-hT9Bro; Sat, 19 Oct 2019 08:33:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5D1E387858; Sat, 19 Oct 2019 08:33:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 59F291BF588 for ; Sat, 19 Oct 2019 08:33:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 46E7D88436 for ; Sat, 19 Oct 2019 08:33:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lryh5MHLicXg for ; Sat, 19 Oct 2019 08:33:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id EC48D8842A for ; Sat, 19 Oct 2019 08:33:35 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id f22so8165902wmc.2 for ; Sat, 19 Oct 2019 01:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wkIp2XbkLcnnX5n5YVJGXOJowYW3fCigaspjB0mTLgE=; b=iQ5WQZJfwlhnK9/eDxlD1YzvChUvmjDfgWQPp3BkWrdiGCgaTj4fu0XsN51ma4QaWi UBWv21YFm0JSGrHWNC+cH6jPNcOy81H6amvJjEDOn/PmJB5hN60umrOCaZPm3d8jjmzr iXQRNZ+sJyOqfU3W5c5ecrH1c10/KxMgk/2fTBTdkKXfaKhg2LFy6pubXGfpn5lRxRCI Ksn3/ErcqP9hPZsT+lbwb++jkOO023hVS0znVpdyQQcd5LyplXracBaM5QYZUzSIZxAk lZlDCrqeeKnOhZ9T23HExrvToRhMMAl6o7GeEu7We4RY/bJbeDDAocTQzZe99i0fP9KK 7ZOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wkIp2XbkLcnnX5n5YVJGXOJowYW3fCigaspjB0mTLgE=; b=qqUnm8OM3e8+IjXBKsGV5qSOgqTWHannp4kFaOYPpM1jneVLuN95l7Yk3cvrqjPdnU cWEP6lhpWv5vHa/y2CkhyJxFYvQ0tvfrJ0UHO6yIboQhA98r43sl2C6skF5I3a5WO4G7 BYOrphdST1w4seo42WJa2215Wa8Luu5Ee3yiMuaA29sfaKEg8sSXjZlIMxH2QtmBL1tm Ek8EDM5JD6mIkphHQtseh37xgoN0B6bYJrzi/F4FuDWU+XODO7olrxK+zsLHPBhEDTZ0 lyM1Gf7SSNlYqDxITjQuR8//JRnbFh2lbrvWTL01KTJ6jqLXf+nMRL1s1kdboucmxM9H kizA== X-Gm-Message-State: APjAAAUxaZi7p7ZrHUkbreh0SGBABO4ruDbYzTXU83yUaga8rk4blnYc 1BzEpYLByMZWyrpzO3VYMLKtC2Su X-Google-Smtp-Source: APXvYqzTTao1xyUJSIlp5oe5ftso3sZ2Gg6aKw6baJfHmf1RoT5Ma9hD9j/lmLFUx2P208zD9lMMXw== X-Received: by 2002:a7b:cf05:: with SMTP id l5mr10561752wmg.119.1571474013737; Sat, 19 Oct 2019 01:33:33 -0700 (PDT) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id y1sm10126591wrw.6.2019.10.19.01.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2019 01:33:33 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 19 Oct 2019 10:34:04 +0200 Message-Id: <20191019083404.20638-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/bird: fix build without babel, bgp, ospf, radv, rip or static 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: , Cc: =?utf-8?q?Adrien_Gallou=C3=ABt?= , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/0b00948eed9bb8405b70f3f9112ecce99b365f35 Signed-off-by: Fabrice Fontaine --- ...x-build-without-babel-bgp-ospf-radv-.patch | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 package/bird/0001-nest-config.Y-fix-build-without-babel-bgp-ospf-radv-.patch diff --git a/package/bird/0001-nest-config.Y-fix-build-without-babel-bgp-ospf-radv-.patch b/package/bird/0001-nest-config.Y-fix-build-without-babel-bgp-ospf-radv-.patch new file mode 100644 index 0000000000..d27b87ca3f --- /dev/null +++ b/package/bird/0001-nest-config.Y-fix-build-without-babel-bgp-ospf-radv-.patch @@ -0,0 +1,47 @@ +From 16d4ba934e4e7458d9437f45faef5774c358e979 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sat, 19 Oct 2019 10:16:23 +0200 +Subject: [PATCH] nest/config.Y: fix build without babel, bgp, ospf, radv, rip + or static + +Build without babel, bgp, ospf, radv, rip or static fails on: + +bison -Dparse.lac=full -Dparse.error=verbose -dv -pcf_ -b +obj/conf/cf-parse obj/conf/cf-parse.y +nest/config.Y:381.20-23: error: symbol LINK is used, but is not +defined as a token and has no rules + 381 | | dev_proto CHECK LINK bool ';' { DIRECT_CFG->check_link = $4; } + | ^~~~ +make[1]: *** [obj/conf/cf-parse.tab.c] Error 1 + +This error is raised because of the following commit: +https://gitlab.labs.nic.cz/labs/bird/commit/e90dd656cc9126e1fbcc45fb77a10bf1baa2a1b5 + +This commit assumes that LINK is defined which is not always the case. +Indeed, it seems that LINK is not defined by BFD, MRT, PERF, PIPE, RPKI + +To fix this issue, add CF_KEYWORDS(LINK) in nest/config.py + +Fixes: + - http://autobuild.buildroot.org/results/0b00948eed9bb8405b70f3f9112ecce99b365f35 + +Signed-off-by: Fabrice Fontaine +--- + nest/config.Y | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/nest/config.Y b/nest/config.Y +index c62501a3..44f392dd 100644 +--- a/nest/config.Y ++++ b/nest/config.Y +@@ -75,6 +75,7 @@ CF_KEYWORDS(BGP, PASSWORDS, DESCRIPTION, SORTED) + CF_KEYWORDS(RELOAD, IN, OUT, MRTDUMP, MESSAGES, RESTRICT, MEMORY, IGP_METRIC, CLASS, DSCP) + CF_KEYWORDS(TIMEFORMAT, ISO, SHORT, LONG, ROUTE, PROTOCOL, BASE, LOG, S, MS, US) + CF_KEYWORDS(GRACEFUL, RESTART, WAIT, MAX, FLUSH, AS) ++CF_KEYWORDS(LINK) + + /* For r_args_channel */ + CF_KEYWORDS(IPV4, IPV4_MC, IPV4_MPLS, IPV6, IPV6_MC, IPV6_MPLS, IPV6_SADR, VPN4, VPN4_MC, VPN4_MPLS, VPN6, VPN6_MC, VPN6_MPLS, ROA4, ROA6, FLOW4, FLOW6, MPLS, PRI, SEC) +-- +2.23.0 +