GNU bug report logs -
#59994
[PATCH] tests: Don't try to prevent flex to include unistd.h
Previous Next
Reported by: Frederic Berat <fberat <at> redhat.com>
Date: Mon, 12 Dec 2022 08:44:06 UTC
Severity: normal
Tags: patch
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
I probably won't be able to do so before next week at least.
If you happen to have time (and be willing) to do it earlier, don't
hesitate ;)
On Fri, Jan 13, 2023 at 7:31 AM Mike Frysinger <vapier <at> gentoo.org> wrote:
> On Mon, 12 Dec 2022 15:20:46 -0500, Zack Weinberg wrote:
> > On 2022-12-12 2:07 AM, Frederic Berat wrote:
> > >
> > > This patch is mainly a proposal. While the macro can simply be removed
> > > as explained below, another possibility it to add a flex option
> > > "--never-interactive" to prevent flex to make use of "isatty".
> > >
> > > This is related to an effort to prepare Automake for future GCC/Clang
> > > versions which set c99 as default standard to be used.
> > >
> > > Future version of flex make the "NO_UNISTD" flag a no-op, and include
> > > unistd.h by default.
> > >
> > > In current version of flex, not having this header leads to implicit
> > > function declarations that are not compatible with c99 standard.
> > >
> > > On top of that, while flex dedicated test were having this macro set,
> > > the yacc ones didn't have it despise their use of Flex. Thus, if this
> > > macro was ever useful, it looks like nobody actually cared.
> >
> > I'm guessing that the idea here was to avoid using unistd.h on platforms
> > that don't supply that header at all. I suggest that we should apply
> > your patch *and* consistently test flex with "--never-interactive".
>
> sounds fine. want to update your patch Frederic ?
> -mike
>
>
>
>
[Message part 2 (text/html, inline)]
This bug report was last modified 1 year and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.