commit:     1edd2866c0a2f3bf5793afb16b1019c71efad87b
Author:     Max <strwfl <AT> proton <DOT> me>
AuthorDate: Mon Sep 15 03:30:49 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 15 14:55:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1edd2866

app-misc/task: add missing <cstdint> include for GCC 15

Bug: https://bugs.gentoo.org/937389
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/task/files/task-2.6.2-gcc15-cstdint-include.patch | 12 ++++++++++++
 app-misc/task/task-2.6.2.ebuild                            |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/app-misc/task/files/task-2.6.2-gcc15-cstdint-include.patch 
b/app-misc/task/files/task-2.6.2-gcc15-cstdint-include.patch
new file mode 100644
index 000000000000..4ef78d158414
--- /dev/null
+++ b/app-misc/task/files/task-2.6.2-gcc15-cstdint-include.patch
@@ -0,0 +1,12 @@
+diff --git a/src/libshared/src/JSON.h b/src/libshared/src/JSON.h
+index 3e197c2..4b35e38 100644
+--- a/src/libshared/src/JSON.h
++++ b/src/libshared/src/JSON.h
+@@ -31,6 +31,7 @@
+ #include <vector>
+ #include <string>
+ #include <Pig.h>
++#include <cstdint>
+ 
+ namespace json
+ {

diff --git a/app-misc/task/task-2.6.2.ebuild b/app-misc/task/task-2.6.2.ebuild
index fabdbf3946aa..c0a1aa1449a3 100644
--- a/app-misc/task/task-2.6.2.ebuild
+++ b/app-misc/task/task-2.6.2.ebuild
@@ -27,6 +27,8 @@ src_prepare() {
 
        cmake_src_prepare
 
+       eapply "${FILESDIR}/task-2.6.2-gcc15-cstdint-include.patch"
+
        # don't automatically install scripts
        sed -i '/scripts/d' CMakeLists.txt || die
 }

Reply via email to