On 2021/03/02 13:30, Christian Weisgerber wrote:
> This is the second time in recent weeks that the
> net/nagios/check_mssql_health port failed to build during an amd64
> bulk build, with the same weird reason: a supposed syntax error
> in an awk regular expression. See below.
>
> Re-running the same command in the work directory does not reproduce
> the error.
>
> I'm mystified.
Can we use awk to seed the rng?
$ for i in `jot 20`;do echo '#!/usr/bin/awk' | awk '/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! awk"); print}'; done
#! awk
#! awk
#! awk
#! awk
#! awk
#!/usr/bin/awk
#! awk
#! awk
awk: nonterminated character class ^#! ?\/.*\/[a-z]{0,2
source line number 1
context is
/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! >>> awk") <<<
#! awk
#! awk
#! awk
#!/usr/bin/awk
#! awk
#!/usr/bin/awk
#! awk
#!/usr/bin/awk
#! awk
#! awk
#! awk
No change with -fcommon, no change backing out recent awk commits.
If I change it to use gawk it builds reliably.
No comments:
Post a Comment