summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-21 19:29:57 +0100
committerSam James <sam@gentoo.org>2022-04-21 19:49:32 +0100
commit8e9615af681fb98060aa389a835bf9ea86561cbe (patch)
tree49d196d7d3dcac28c66f2eec146029cf6a28452b /net-mail
parentmedia-video/movit: fix build with GCC 12 (diff)
downloadgentoo-8e9615af681fb98060aa389a835bf9ea86561cbe.tar.gz
gentoo-8e9615af681fb98060aa389a835bf9ea86561cbe.tar.bz2
gentoo-8e9615af681fb98060aa389a835bf9ea86561cbe.zip
net-mail/mu: fix build with GCC 12
Closes: https://bugs.gentoo.org/839918 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mu/files/mu-1.7.12-gcc12.patch12
-rw-r--r--net-mail/mu/mu-1.7.12.ebuild5
2 files changed, 16 insertions, 1 deletions
diff --git a/net-mail/mu/files/mu-1.7.12-gcc12.patch b/net-mail/mu/files/mu-1.7.12-gcc12.patch
new file mode 100644
index 000000000000..f360351e17f4
--- /dev/null
+++ b/net-mail/mu/files/mu-1.7.12-gcc12.patch
@@ -0,0 +1,12 @@
+https://github.com/djcb/mu/pull/2224 (rebased)
+https://bugs.gentoo.org/839918
+--- a/lib/utils/mu-utils.cc
++++ b/lib/utils/mu-utils.cc
+@@ -32,6 +32,7 @@
+ #include <string.h>
+ #include <iostream>
+ #include <algorithm>
++#include <functional>
+ #include <numeric>
+
+ #include <glib.h>
diff --git a/net-mail/mu/mu-1.7.12.ebuild b/net-mail/mu/mu-1.7.12.ebuild
index 02358e6b56c8..902c7c8d9e4b 100644
--- a/net-mail/mu/mu-1.7.12.ebuild
+++ b/net-mail/mu/mu-1.7.12.ebuild
@@ -26,7 +26,10 @@ BDEPEND="
virtual/pkgconfig
"
-PATCHES=( "${FILESDIR}"/${PN}-1.7.12-optional-mu4e.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.12-optional-mu4e.patch
+ "${FILESDIR}"/${PN}-1.7.12-gcc12.patch
+)
SITEFILE="70mu-gentoo-autoload.el"