From: "Arsen Arsenović" <arsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mu/, net-mail/mu/files/
Date: Sat, 21 Jan 2023 19:53:27 +0000 (UTC) [thread overview]
Message-ID: <1674330730.30e9c72612d623d7a48b4755a9426b2ddce3e51f.arsen@gentoo> (raw)
commit: 30e9c72612d623d7a48b4755a9426b2ddce3e51f
Author: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 21 19:08:11 2023 +0000
Commit: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Sat Jan 21 19:52:10 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30e9c726
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 <AT> gentoo.org>
net-mail/mu/files/mu-1.8.13-add-cstdint-inc.patch | 37 +++++++++++++++++++++++
net-mail/mu/mu-1.8.13.ebuild | 4 +++
2 files changed, 41 insertions(+)
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
+
diff --git a/net-mail/mu/mu-1.8.13.ebuild b/net-mail/mu/mu-1.8.13.ebuild
index 5e3b96704cf5..4a5365df91b8 100644
--- a/net-mail/mu/mu-1.8.13.ebuild
+++ b/net-mail/mu/mu-1.8.13.ebuild
@@ -26,6 +26,10 @@ BDEPEND="
virtual/pkgconfig
"
+PATCHES=(
+ "${FILESDIR}/mu-1.8.13-add-cstdint-inc.patch"
+)
+
SITEFILE="70mu-gentoo-autoload.el"
src_prepare() {
next reply other threads:[~2023-01-21 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-21 19:53 Arsen Arsenović [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-02-26 14:41 [gentoo-commits] repo/gentoo:master commit in: net-mail/mu/, net-mail/mu/files/ Matthew Smith
2024-02-25 10:49 Matthew Smith
2022-07-09 10:16 Matthew Smith
2021-07-16 1:34 Sam James
2020-07-07 6:55 Joonas Niilola
2020-02-20 13:27 Joonas Niilola
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=1674330730.30e9c72612d623d7a48b4755a9426b2ddce3e51f.arsen@gentoo \
--to=arsen@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