summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2023-01-21 20:08:11 +0100
committerArsen Arsenović <arsen@gentoo.org>2023-01-21 20:52:10 +0100
commit30e9c72612d623d7a48b4755a9426b2ddce3e51f (patch)
tree9511a15d819aa90cf6cebeb83e1539b1371e6463 /net-mail/mu/files
parentsys-libs/glibc: keyword 2.36-r7 (diff)
downloadgentoo-30e9c72612d623d7a48b4755a9426b2ddce3e51f.tar.gz
gentoo-30e9c72612d623d7a48b4755a9426b2ddce3e51f.tar.bz2
gentoo-30e9c72612d623d7a48b4755a9426b2ddce3e51f.zip
net-mail/mu: Fix building on GCC 13
GCC 13s libstdc++ reduced its dependency on some headers like <cstdint>, so it's no longer transitively included through various headers. Include it explicitly. See also: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes ../lib/utils/mu-error.hh:36:26: error: ‘uint32_t’ does not name a type 36 | static constexpr uint32_t SoftError = 1 << 23; | ^~~~~~~~ Closes: https://github.com/gentoo/gentoo/pull/29210 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'net-mail/mu/files')
-rw-r--r--net-mail/mu/files/mu-1.8.13-add-cstdint-inc.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/net-mail/mu/files/mu-1.8.13-add-cstdint-inc.patch b/net-mail/mu/files/mu-1.8.13-add-cstdint-inc.patch
new file mode 100644
index 000000000000..5b46732c805f
--- /dev/null
+++ b/net-mail/mu/files/mu-1.8.13-add-cstdint-inc.patch
@@ -0,0 +1,37 @@
+From e0b17e4e31acd5657a3488936ef619c5ae2dc689 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
+Date: Sat, 21 Jan 2023 19:39:09 +0100
+Subject: [PATCH] mu-error: Add missing <cstdint> include
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GCC 13s libstdc++ reduced its dependency on some headers like <cstdint>, so it's
+no longer transitively included through various headers. Include it explicitly.
+
+See also: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+ ../lib/utils/mu-error.hh:36:26: error: ‘uint32_t’ does not name a type
+ 36 | static constexpr uint32_t SoftError = 1 << 23;
+ | ^~~~~~~~
+---
+https://github.com/djcb/mu/pull/2421
+
+ lib/utils/mu-error.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/utils/mu-error.hh b/lib/utils/mu-error.hh
+index c67fc5a1..61923c6c 100644
+--- a/lib/utils/mu-error.hh
++++ b/lib/utils/mu-error.hh
+@@ -21,6 +21,7 @@
+ #define MU_ERROR_HH__
+
+ #include <stdexcept>
++#include <cstdint>
+ #include "mu-utils-format.hh"
+ #include "mu-util.h"
+ #include <glib.h>
+--
+2.39.1
+