aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2024-03-13 17:36:56 +0100
committerPetr Vaněk <arkamar@gentoo.org>2024-03-13 17:44:37 +0100
commit96cee1499ed4784aed28043cf74ae803bdb73ee7 (patch)
treec1998b6a961ab3a5dbeb25d5c71165820bacd456 /app-text
parentapp-portage/portage-lostfiles: add 0.5.5, drop 0.5.4 (diff)
downloadguru-96cee1499ed4784aed28043cf74ae803bdb73ee7.tar.gz
guru-96cee1499ed4784aed28043cf74ae803bdb73ee7.tar.bz2
guru-96cee1499ed4784aed28043cf74ae803bdb73ee7.zip
app-text/klogg: Add missing include
The cstdio header is not included indirectly with some compilers, e.g. GCC 14, therefore it needs to be included explicitly. The patch is adapted from upstream commit. Closes: https://bugs.gentoo.org/921739 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/klogg/files/klogg-22.06.0.1289-missing-include.patch20
-rw-r--r--app-text/klogg/klogg-22.06.0.1289.ebuild4
2 files changed, 24 insertions, 0 deletions
diff --git a/app-text/klogg/files/klogg-22.06.0.1289-missing-include.patch b/app-text/klogg/files/klogg-22.06.0.1289-missing-include.patch
new file mode 100644
index 000000000..d8a045ba8
--- /dev/null
+++ b/app-text/klogg/files/klogg-22.06.0.1289-missing-include.patch
@@ -0,0 +1,20 @@
+From 6b5df18387316a706eb5f1fd05e049871eb6d153 Mon Sep 17 00:00:00 2001
+From: Anton Filimonov <anton.filimonov@gmail.com>
+Date: Thu, 8 Jun 2023 01:01:27 +0200
+Subject: [PATCH] build: fix arch aur builds
+
+Taken from upstream commit
+https://github.com/variar/klogg/commit/6b5df18387316a706eb5f1fd05e049871eb6d153
+
+diff --git a/src/crash_handler/src/memory_info.cpp b/src/crash_handler/src/memory_info.cpp
+index 670918163..06ef8b75f 100644
+--- a/src/crash_handler/src/memory_info.cpp
++++ b/src/crash_handler/src/memory_info.cpp
+@@ -89,6 +89,7 @@ uint64_t usedMemory()
+ #include <unistd.h>
+
+ #include <array>
++#include <cstdio>
+
+ uint64_t systemPhysicalMemory()
+ {
diff --git a/app-text/klogg/klogg-22.06.0.1289.ebuild b/app-text/klogg/klogg-22.06.0.1289.ebuild
index 7f2ec907e..50d88b1cf 100644
--- a/app-text/klogg/klogg-22.06.0.1289.ebuild
+++ b/app-text/klogg/klogg-22.06.0.1289.ebuild
@@ -42,6 +42,10 @@ BDEPEND="
test? ( dev-qt/qttest:5 >=dev-cpp/catch-2.13.8 )
"
+PATCHES=(
+ "${FILESDIR}/${P}-missing-include.patch"
+)
+
src_unpack() {
unpack ${P}.tar.gz
mv "${WORKDIR}/${PN}-${MAJOR_VERSION}" "${WORKDIR}/${P}"