diff mbox series

[v4,2/9] dbus-glib: Fix build with GCC 15

Message ID 20250319214213.2505249-2-raj.khem@gmail.com
State New
Headers show
Series [v4,1/9] readline: Fixed build with GCC-15 | expand

Commit Message

Khem Raj March 19, 2025, 9:42 p.m. UTC
GCC 15 defaults to C23, it can not handle it
latest release is from 2021, and this seems to be
deprecated upstream and no longer actively
developed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/dbus/dbus-glib_0.114.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Richard Purdie March 20, 2025, 7:37 a.m. UTC | #1
On Wed, 2025-03-19 at 14:42 -0700, Khem Raj via lists.openembedded.org wrote:
> GCC 15 defaults to C23, it can not handle it
> latest release is from 2021, and this seems to be
> deprecated upstream and no longer actively
> developed.

This isn't true with 0.114 which was recently released.

Was it confirmed we still need this with 0.114?

Cheers,

Richard
Khem Raj March 20, 2025, 7:48 a.m. UTC | #2
On Thu, Mar 20, 2025 at 12:37 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Wed, 2025-03-19 at 14:42 -0700, Khem Raj via lists.openembedded.org wrote:
> > GCC 15 defaults to C23, it can not handle it
> > latest release is from 2021, and this seems to be
> > deprecated upstream and no longer actively
> > developed.
>
> This isn't true with 0.114 which was recently released.
>
> Was it confirmed we still need this with 0.114?

No, we do not need this patch with 0.114, you can drop it from the series.

>
> Cheers,
>
> Richard
>
diff mbox series

Patch

diff --git a/meta/recipes-core/dbus/dbus-glib_0.114.bb b/meta/recipes-core/dbus/dbus-glib_0.114.bb
index ff7c2d6613a..8795bce5117 100644
--- a/meta/recipes-core/dbus/dbus-glib_0.114.bb
+++ b/meta/recipes-core/dbus/dbus-glib_0.114.bb
@@ -30,6 +30,8 @@  PACKAGECONFIG[tests] = "--enable-tests,,,"
 
 EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
 
+CFLAGS += "-std=gnu17"
+
 PACKAGES += "${PN}-tests"
 
 FILES:${PN} = "${libdir}/lib*${SOLIBS}"