All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/openntpd: needs host-bison
Date: Mon, 16 Nov 2020 19:07:45 +0100	[thread overview]
Message-ID: <20201116180745.GK771438@scaer> (raw)
In-Reply-To: <878sb1qle4.fsf@tarshish>

Baruch, Peter, All,

On 2020-11-16 19:09 +0200, Baruch Siach spake thusly:
> On Mon, Nov 16 2020, Peter Korsgaard wrote:
> >>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> >
> >  > Build fails when no yacc alternative is installed.
> >  > Fixes:
> >  > http://autobuild.buildroot.net/results/1ba8e339cbb5646663d0bf4e158d89e54433b242/
> >  > http://autobuild.buildroot.net/results/a00a53d6635c64e72c50d4841658155de5380110/
> >
> >  > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> >  > ---
> >  >  package/openntpd/openntpd.mk | 1 +
> >  >  1 file changed, 1 insertion(+)
> >
> >  > diff --git a/package/openntpd/openntpd.mk b/package/openntpd/openntpd.mk
> >  > index f2eaee7efd46..9076f3ddda4e 100644
> >  > --- a/package/openntpd/openntpd.mk
> >  > +++ b/package/openntpd/openntpd.mk
> >  > @@ -8,6 +8,7 @@ OPENNTPD_VERSION = 6.2p3
> >  >  OPENNTPD_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
> >  >  OPENNTPD_LICENSE = MIT-like, BSD-2-Clause, BSD-3-Clause
> >  >  OPENNTPD_LICENSE_FILES = COPYING
> >  > +OPENNTPD_DEPENDENCIES = host-bison
> >
> > Can we not use $(BR2_BISON_HOST_DEPENDENCY) instead?
> 
> We surly can. But for some reason no other package under package/ uses
> BR2_BISON_HOST_DEPENDENCY. Plain host-bison is used there instead. Only
> Barebox, U-Boot and the kernel use it. Why is that?
> 
> Commit b01100cc901a83 ("linux: kconfig may need host-{flex, bison} to
> build the configurators") mentions kconfig. Is that related?
> 
> I guess that BR2_BISON_HOST_DEPENDENCY is more susceptible to
> incompatibility due to different host installed bison versions (and same
> for flex).

The rule is that we can depend on $(BR2_BISON_HOST_DEPENDENCY) to build host
tools, but we really want to depend on host-bison when we generate code
that is built for the target.

Indeed, different versions of bison will generate different C code, and
thus the resulting binary will change. This is not very reproducible.
(Yes, I've already experienced that, and finding the root cause of the
delta cost me about two weeks full-time...)

AFAICS, the openntd code will be running on the target, so we do want
the host-bison dependency.

Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2020-11-16 18:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 11:18 [Buildroot] [PATCH] package/openntpd: needs host-bison Baruch Siach
2020-11-16 16:19 ` Peter Korsgaard
2020-11-16 17:09   ` Baruch Siach
2020-11-16 17:42     ` Peter Korsgaard
2020-11-16 18:07     ` Yann E. MORIN [this message]
2020-11-16 18:54       ` Peter Korsgaard
2020-11-16 21:25 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201116180745.GK771438@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.