[Buildroot] [PATCH 1/1] package/brltty: add host-gawk dependency

Yann E. MORIN yann.morin.1998 at free.fr
Sat May 9 20:32:17 UTC 2020


Mario, Fabrice, All,

On 2020-05-09 21:24 +0200, Mario Lang spake thusly:
> "Yann E. MORIN" <yann.morin.1998 at free.fr> writes:
> > On 2020-05-08 18:28 +0200, Fabrice Fontaine spake thusly:
> >> host-gawk is used by brltty to build brlapi_constants.h, the build will
> >> fail if mawk is used instead of gawk
> >> 
> >> Fixes:
> >>  -
> >> http://autobuild.buildroot.org/results/4c77f03cbc7ab9e5ae9f24fe6eead1d76c50c743
> >> 
> >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> >
> > It seemed like a simple patch, but I can't reproduce the error with mawk
> > on my machine:
> >
> >     $ update-alternatives --get-selections |grep awk
> >     awk                            manual   /usr/bin/mawk
> >     $ awk --version
> >     awk: not an option: --version
> >     $ wget -O .config
> > http://autobuild.buildroot.org/results/4c77f03cbc7ab9e5ae9f24fe6eead1d76c50c743/config
> >     $ make olddefconfig
> >     $ make brltty
> >
> > Success...
> >
> > So, there is something else lurking in the darkness... :-/
> 
> Maybe... However, upstream indeed requires gawk (more or less by accident).
> This came up just recently while debugging a problem a user had.

So I did further research, and indeed it fails if awk is mawk, and gawk
is not installed on the system. Indeed, AC_PROG_AWK will actually search
for gawk, then mawk, then awk.

So my test above was flawed, as I stil did get gawk installed. I retried
on a system without gawk, and I could reproduce the error.

Patch applied to master, thanks.

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.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list