From f92eebcc1f1408f60fcceeb523eb8cea26fa01af Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 20 Jun 2026 01:49:27 +0100 Subject: [PATCH] app-text/ansifilter: fix build w/ gcc-17 Closes: https://bugs.gentoo.org/976605 Thanks-to: tdr Signed-off-by: Sam James --- app-text/ansifilter/ansifilter-2.22.ebuild | 6 ++++- .../files/ansifilter-2.22-gcc17.patch | 26 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 app-text/ansifilter/files/ansifilter-2.22-gcc17.patch diff --git a/app-text/ansifilter/ansifilter-2.22.ebuild b/app-text/ansifilter/ansifilter-2.22.ebuild index 94d7e6e6ad4ce..3b74c7c426cf1 100644 --- a/app-text/ansifilter/ansifilter-2.22.ebuild +++ b/app-text/ansifilter/ansifilter-2.22.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -35,6 +35,10 @@ DOCS=( ChangeLog.adoc README.adoc ) VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/andresimon.asc +PATCHES=( + "${FILESDIR}"/${PN}-2.22-gcc17.patch +) + src_unpack() { if use verify-sig ; then verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.asc} diff --git a/app-text/ansifilter/files/ansifilter-2.22-gcc17.patch b/app-text/ansifilter/files/ansifilter-2.22-gcc17.patch new file mode 100644 index 0000000000000..bd03fec7e7108 --- /dev/null +++ b/app-text/ansifilter/files/ansifilter-2.22-gcc17.patch @@ -0,0 +1,26 @@ +https://bugs.gentoo.org/976605 +https://gitlab.com/saalen/ansifilter/-/merge_requests/12 + +From 07d7cf825aeae74d3e5a47aba091b399d451763b Mon Sep 17 00:00:00 2001 +From: Ted Rodgers +Date: Fri, 19 Jun 2026 10:48:24 -0400 +Subject: [PATCH] add include sstream to stylecolour.h for gcc-17 + +--- + src/stylecolour.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/stylecolour.h b/src/stylecolour.h +index e0d6e46..406e18b 100644 +--- a/src/stylecolour.h ++++ b/src/stylecolour.h +@@ -28,6 +28,7 @@ along with ANSIFilter. If not, see . + + #include "enums.h" + ++#include + #include + #include + +-- +GitLab