All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Switch from bison name-prefix to api.prefix
@ 2025-02-12 16:49 Daniel Burgener
  2025-03-12 15:47 ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Burgener @ 2025-02-12 16:49 UTC (permalink / raw)
  To: dburgener, selinux

Avoid a deprecation warning when building.

api.prefix was first released in bison 2.6, which was released in July
2012 [1].  name-prefix was deprecated in favor of api.prefix in bison
3.3, released January 2019 [2].

The new api.prefix construct rewrites additional variables when compared
to name-prefix, such as YYTYPE and YYDEBUG. However, these variables are
unused currently in conf-parse.y, so this does not affect libsemanage.

[1] http://savannah.gnu.org/news/?id=7269
[2] http://savannah.gnu.org/news/?id=9321

Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>
---
 libsemanage/src/conf-parse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
index 6cb8a598..93a04699 100644
--- a/libsemanage/src/conf-parse.y
+++ b/libsemanage/src/conf-parse.y
@@ -53,7 +53,7 @@ static int parse_errors;
 
 %}
 
-%name-prefix "semanage_"
+%define api.prefix {semanage_}
 
 %union {
         int d;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Switch from bison name-prefix to api.prefix
  2025-02-12 16:49 [PATCH] Switch from bison name-prefix to api.prefix Daniel Burgener
@ 2025-03-12 15:47 ` James Carter
  2025-04-07 18:06   ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: James Carter @ 2025-03-12 15:47 UTC (permalink / raw)
  To: Daniel Burgener; +Cc: selinux

On Wed, Feb 12, 2025 at 11:50 AM Daniel Burgener
<dburgener@linux.microsoft.com> wrote:
>
> Avoid a deprecation warning when building.
>
> api.prefix was first released in bison 2.6, which was released in July
> 2012 [1].  name-prefix was deprecated in favor of api.prefix in bison
> 3.3, released January 2019 [2].
>
> The new api.prefix construct rewrites additional variables when compared
> to name-prefix, such as YYTYPE and YYDEBUG. However, these variables are
> unused currently in conf-parse.y, so this does not affect libsemanage.
>
> [1] http://savannah.gnu.org/news/?id=7269
> [2] http://savannah.gnu.org/news/?id=9321
>
> Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>

Acked-by: James Carter <jwcart2@gmail.com>

> ---
>  libsemanage/src/conf-parse.y | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
> index 6cb8a598..93a04699 100644
> --- a/libsemanage/src/conf-parse.y
> +++ b/libsemanage/src/conf-parse.y
> @@ -53,7 +53,7 @@ static int parse_errors;
>
>  %}
>
> -%name-prefix "semanage_"
> +%define api.prefix {semanage_}
>
>  %union {
>          int d;
> --
> 2.34.1
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Switch from bison name-prefix to api.prefix
  2025-03-12 15:47 ` James Carter
@ 2025-04-07 18:06   ` James Carter
  0 siblings, 0 replies; 3+ messages in thread
From: James Carter @ 2025-04-07 18:06 UTC (permalink / raw)
  To: Daniel Burgener; +Cc: selinux

On Wed, Mar 12, 2025 at 11:47 AM James Carter <jwcart2@gmail.com> wrote:
>
> On Wed, Feb 12, 2025 at 11:50 AM Daniel Burgener
> <dburgener@linux.microsoft.com> wrote:
> >
> > Avoid a deprecation warning when building.
> >
> > api.prefix was first released in bison 2.6, which was released in July
> > 2012 [1].  name-prefix was deprecated in favor of api.prefix in bison
> > 3.3, released January 2019 [2].
> >
> > The new api.prefix construct rewrites additional variables when compared
> > to name-prefix, such as YYTYPE and YYDEBUG. However, these variables are
> > unused currently in conf-parse.y, so this does not affect libsemanage.
> >
> > [1] http://savannah.gnu.org/news/?id=7269
> > [2] http://savannah.gnu.org/news/?id=9321
> >
> > Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>
>
> Acked-by: James Carter <jwcart2@gmail.com>
>

Merged.
Thanks,
Jim

> > ---
> >  libsemanage/src/conf-parse.y | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
> > index 6cb8a598..93a04699 100644
> > --- a/libsemanage/src/conf-parse.y
> > +++ b/libsemanage/src/conf-parse.y
> > @@ -53,7 +53,7 @@ static int parse_errors;
> >
> >  %}
> >
> > -%name-prefix "semanage_"
> > +%define api.prefix {semanage_}
> >
> >  %union {
> >          int d;
> > --
> > 2.34.1
> >
> >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-07 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 16:49 [PATCH] Switch from bison name-prefix to api.prefix Daniel Burgener
2025-03-12 15:47 ` James Carter
2025-04-07 18:06   ` James Carter

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.