app-text/ansifilter: fix build w/ gcc-17

Closes: https://bugs.gentoo.org/976605
Thanks-to: tdr <ted.d.rodgers@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-06-20 01:49:27 +01:00
parent 8f957be384
commit f92eebcc1f
2 changed files with 31 additions and 1 deletions

View File

@@ -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}

View File

@@ -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 <ted.d.rodgers@gmail.com>
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 <http://www.gnu.org/licenses/>.
#include "enums.h"
+#include <sstream>
#include <string>
#include <string_view>
--
GitLab