diff mbox series

[meta-oe] pgpool2: use gnu17 to avoid build failure with gcc-15

Message ID 20250426170358.2557974-1-martin.jansa@gmail.com
State Accepted
Headers show
Series [meta-oe] pgpool2: use gnu17 to avoid build failure with gcc-15 | expand

Commit Message

Martin Jansa April 26, 2025, 5:03 p.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

* like e.g. gentoo does:
  https://bugs.gentoo.org/940128

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

Comments

J. S. April 26, 2025, 6:36 p.m. UTC | #1
Martin,

While I understand the desire to follow what gentoo is doing, would protecting the typdef in question be a better solution?

i.e. something like this : https://github.com/mirror/xmlrpc-c/pull/4/files

Thanks,
Jason Schonberg
Martin Jansa April 26, 2025, 6:43 p.m. UTC | #2
Feel free to do that, I don't even use pgpool2 I was just helping with
last few remaining build failures with gcc-15 shown in world build and
this is the amount of time I'm willing to spend on pgpool2.

On Sat, Apr 26, 2025 at 8:36 PM Jason Schonberg <schonm@gmail.com> wrote:
>
> Martin,
>
> While I understand the desire to follow what gentoo is doing, would protecting the typdef in question be a better solution?
>
> i.e. something like this : https://github.com/mirror/xmlrpc-c/pull/4/files
>
> Thanks,
> Jason Schonberg
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb
index ddcad46beb..a2f7665df1 100644
--- a/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb
+++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.5.1.bb
@@ -48,3 +48,7 @@  do_install:append() {
     install -D -m 0644 ${S}/src/sample/pool_hba.conf.sample ${D}${sysconfdir}/pgpool-II/pool_hba.conf
     install -Dm 0644 ${UNPACKDIR}/pgpool.service ${D}${systemd_system_unitdir}/pgpool.service
 }
+
+# Avoid build failure with gcc-15:
+# http://errors.yoctoproject.org/Errors/Details/853019/
+CFLAGS += "-std=gnu17"