diff mbox series

[whinlatter] texinfo: Fix gcc 15 compile errors

Message ID e314bff9-bec6-4085-b3f2-7fca14f95bba@cybernetics.com
State New
Headers show
Series [whinlatter] texinfo: Fix gcc 15 compile errors | expand

Commit Message

Tony Battersby Feb. 11, 2026, 4:39 p.m. UTC
gcc 15 switches the default from -std=gnu17 to -std=gnu23, wich causes
multiple errors compiling texinfo:

texinfo-7.2/info/terminal.c:164:7:
  error: too many arguments to function 'tputs'; expected 0, have 3
etc.

Fix by specifying -std=gnu17.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
---
 meta/recipes-extended/texinfo/texinfo_7.2.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Yoann Congal Feb. 11, 2026, 11:39 p.m. UTC | #1
On Wed Feb 11, 2026 at 5:39 PM CET, Tony Battersby via lists.openembedded.org wrote:
> gcc 15 switches the default from -std=gnu17 to -std=gnu23, wich causes
> multiple errors compiling texinfo:
>
> texinfo-7.2/info/terminal.c:164:7:
>   error: too many arguments to function 'tputs'; expected 0, have 3
> etc.
>
> Fix by specifying -std=gnu17.
>
> Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
> ---
>  meta/recipes-extended/texinfo/texinfo_7.2.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-extended/texinfo/texinfo_7.2.bb b/meta/recipes-extended/texinfo/texinfo_7.2.bb
> index 784f67f65b..08da15deb5 100644
> --- a/meta/recipes-extended/texinfo/texinfo_7.2.bb
> +++ b/meta/recipes-extended/texinfo/texinfo_7.2.bb
> @@ -40,6 +40,8 @@ tex_texinfo = "texmf/tex/texinfo"
>  
>  inherit gettext autotools multilib_script
>  
> +CFLAGS += "-std=gnu17"
> +
>  MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any"
>  
>  EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"

Hello,

Thank you for this patch.

As far as I can tell, the problem this patch fixes also exist on master.
Can you fix it on master first, then, ask for a backport here on
whinlatter?

On master, an upgrade of texinfo might be more acceptable than forcing
the C std.

Regards,
diff mbox series

Patch

diff --git a/meta/recipes-extended/texinfo/texinfo_7.2.bb b/meta/recipes-extended/texinfo/texinfo_7.2.bb
index 784f67f65b..08da15deb5 100644
--- a/meta/recipes-extended/texinfo/texinfo_7.2.bb
+++ b/meta/recipes-extended/texinfo/texinfo_7.2.bb
@@ -40,6 +40,8 @@  tex_texinfo = "texmf/tex/texinfo"
 
 inherit gettext autotools multilib_script
 
+CFLAGS += "-std=gnu17"
+
 MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any"
 
 EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"