From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nghttp2/files/, net-libs/nghttp2/
Date: Sun, 01 Jun 2025 22:33:56 +0000 (UTC) [thread overview]
Message-ID: <1748817102.b6889811fb8d2d971d53714bfa5f54d9c88de1be.sam@gentoo> (raw)
commit: b6889811fb8d2d971d53714bfa5f54d9c88de1be
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 22:31:42 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 22:31:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6889811
net-libs/nghttp2: fix build w/ GCC 16
Doesn't affect an installed header, though.
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-libs/nghttp2/files/nghttp2-1.65.0-gcc16.patch | 29 +++++++++++++++++++++++
net-libs/nghttp2/nghttp2-1.65.0-r2.ebuild | 4 ++++
2 files changed, 33 insertions(+)
diff --git a/net-libs/nghttp2/files/nghttp2-1.65.0-gcc16.patch b/net-libs/nghttp2/files/nghttp2-1.65.0-gcc16.patch
new file mode 100644
index 000000000000..9ec939854044
--- /dev/null
+++ b/net-libs/nghttp2/files/nghttp2-1.65.0-gcc16.patch
@@ -0,0 +1,29 @@
+https://github.com/nghttp2/nghttp2/commit/1440e883475488ddda25556c7b3d9f78694716ba
+
+From 1440e883475488ddda25556c7b3d9f78694716ba Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich@gmail.com>
+Date: Fri, 30 May 2025 21:20:51 +0100
+Subject: [PATCH] src/template.h: add missing `cstdint` include
+
+Without the change build against upcoming gcc-16 fails as:
+
+ template.h:457:9: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
+ 457 | const uint8_t, N == std::dynamic_extent ? std::dynamic_extent : N * sizeof(T)>
+ | ^~~~~~~
+---
+ src/template.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/template.h b/src/template.h
+index e154057fd4..4f0622b2c4 100644
+--- a/src/template.h
++++ b/src/template.h
+@@ -27,6 +27,7 @@
+
+ #include "nghttp2_config.h"
+
++#include <cstdint>
+ #include <cstring>
+ #include <cstdio>
+ #include <cstdlib>
+
diff --git a/net-libs/nghttp2/nghttp2-1.65.0-r2.ebuild b/net-libs/nghttp2/nghttp2-1.65.0-r2.ebuild
index c8f2aa55d585..dd90ced922b2 100644
--- a/net-libs/nghttp2/nghttp2-1.65.0-r2.ebuild
+++ b/net-libs/nghttp2/nghttp2-1.65.0-r2.ebuild
@@ -40,6 +40,10 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc16.patch
+)
+
src_prepare() {
default
[[ ${PV} == 9999 ]] && eautoreconf
next reply other threads:[~2025-06-01 22:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-01 22:33 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-16 4:28 [gentoo-commits] repo/gentoo:master commit in: net-libs/nghttp2/files/, net-libs/nghttp2/ Sam James
2022-07-16 16:49 Bernard Cafarelli
2019-07-29 7:55 Lars Wendler
2019-04-19 11:19 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1748817102.b6889811fb8d2d971d53714bfa5f54d9c88de1be.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox