On 05/07/2022 14:56, Luca Fancellu wrote:
> After spending a bit of time to understand what the script does, I’ve checked 
> the awk version
> and seems that the script is failing in the Docker container because there is 
> mawk there:
> # awk -W version
> mawk 1.3.4 20200120
> Copyright 2008-2019,2020, Thomas E. Dickey
> Copyright 1991-1996,2014, Michael D. Brennan
>
> random-funcs:       srandom/random
> regex-funcs:        internal
> compiled limits:
> sprintf buffer      8192
> maximum-integer     2147483647
>
> Instead in my host machine there is gawk:
> $ awk -W version
> GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
> […]
>
>
> So there seems to be a dependency on the interpreter (or at least it doesn’t 
> work with that version of mawk).
>
> My solution was to install gawk in the container and everything was working 
> fine afterwards.

Hmm.  AWK isn't even on the list of requirements, but we use it all over
the place.  That seems like an error.

Our FreeBSD build environment doesn't use gawk, so it's reasonable to
assume we don't fundamentally depend on gawk.

Any idea how easy it would be to tweak check-endbr.sh to be non-gawk
compatible?

~Andrew

Reply via email to