commit: b61b5fa9f4c8d0351d94c0fd29298e4d142855fe
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 05:17:58 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 05:17:58 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b61b5fa9
dev-db/postgresql: build w/ -std=gnu17
Upcoming GCC 15 defaults to -std=gnu23 which pg fails to build with. Go
back to the default -std=gnu17 (i.e. a noop for older GCCs) until the
upstream report I've sent is fixed.
Sent that to pgsql-bugs but it's still in the moderation queue for now,
I'll update with the link once it's through.
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-db/postgresql/postgresql-17.1.ebuild | 5 +++++
dev-db/postgresql/postgresql-9999.ebuild | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/dev-db/postgresql/postgresql-17.1.ebuild
b/dev-db/postgresql/postgresql-17.1.ebuild
index d2a1c4679c40..06bd5157fb78 100644
--- a/dev-db/postgresql/postgresql-17.1.ebuild
+++ b/dev-db/postgresql/postgresql-17.1.ebuild
@@ -128,6 +128,11 @@ src_prepare() {
}
src_configure() {
+ # Fails to build with C23, fallback to the old default in < GCC 15
+ # for now. Reported upstream to pgsql-bugs ML but not yet through
+ # moderation filter.
+ append-cflags -std=gnu17
+
case ${CHOST} in
*-darwin*|*-solaris*)
use nls && append-libs intl
diff --git a/dev-db/postgresql/postgresql-9999.ebuild
b/dev-db/postgresql/postgresql-9999.ebuild
index b6efc09b8671..6f69a27051a3 100644
--- a/dev-db/postgresql/postgresql-9999.ebuild
+++ b/dev-db/postgresql/postgresql-9999.ebuild
@@ -143,6 +143,11 @@ src_prepare() {
}
src_configure() {
+ # Fails to build with C23, fallback to the old default in < GCC 15
+ # for now. Reported upstream to pgsql-bugs ML but not yet through
+ # moderation filter.
+ append-cflags -std=gnu17
+
case ${CHOST} in
*-darwin*|*-solaris*)
use nls && append-libs intl