diff options
author | Matt Smith <matt@offtopica.uk> | 2021-04-29 19:39:55 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-05-18 16:31:23 +0300 |
commit | 97eb5cc4fa6fddcabdc36aae25c74f53a6d371b3 (patch) | |
tree | cfcef52f191508be64df86fe65b609f6325fdd63 /x11-terms | |
parent | net-analyzer/zabbix: removed obsolete 5.2.5* (diff) | |
download | gentoo-97eb5cc4fa6fddcabdc36aae25c74f53a6d371b3.tar.gz gentoo-97eb5cc4fa6fddcabdc36aae25c74f53a6d371b3.tar.bz2 gentoo-97eb5cc4fa6fddcabdc36aae25c74f53a6d371b3.zip |
x11-terms/zutty: Fix build with gcc 11
Closes: https://bugs.gentoo.org/786906
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Matt Smith <matt@offtopica.uk>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/zutty/files/zutty-0.8-gcc11.patch | 24 | ||||
-rw-r--r-- | x11-terms/zutty/zutty-0.8.ebuild | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/x11-terms/zutty/files/zutty-0.8-gcc11.patch b/x11-terms/zutty/files/zutty-0.8-gcc11.patch new file mode 100644 index 000000000000..75b8234d24bf --- /dev/null +++ b/x11-terms/zutty/files/zutty-0.8-gcc11.patch @@ -0,0 +1,24 @@ +From 75bffab09e842bfff56a6cf111360421a5ee9e15 Mon Sep 17 00:00:00 2001 +From: Matt Smith <matt@offtopica.uk> +Date: Thu, 29 Apr 2021 19:23:00 +0100 +Subject: [PATCH] Add missing include to fix GCC 11 build + +--- + src/font.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/font.cc b/src/font.cc +index 0dd2166..f8da582 100644 +--- a/src/font.cc ++++ b/src/font.cc +@@ -15,6 +15,7 @@ + + #include <algorithm> + #include <cmath> ++#include <limits> + #include <sstream> + #include <stdexcept> + #include <string> +-- +2.31.1 + diff --git a/x11-terms/zutty/zutty-0.8.ebuild b/x11-terms/zutty/zutty-0.8.ebuild index d4ab66148fff..092145007655 100644 --- a/x11-terms/zutty/zutty-0.8.ebuild +++ b/x11-terms/zutty/zutty-0.8.ebuild @@ -26,4 +26,6 @@ DEPEND=" RDEPEND="${COMMON_DEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( "${FILESDIR}"/${PN}-0.8-gcc11.patch ) + DOCS=( doc/KEYS.org doc/USAGE.org ) |