commit:     1d164d618a39af7a60642b6f62d30f3c01b8c77b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  9 12:45:24 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun  9 12:45:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d164d61

media-gfx/ueberzugpp: fix build with gcc-16

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-gfx/ueberzugpp/files/ueberzugpp-2.9.6-gcc16.patch | 8 ++++++++
 media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild            | 6 +++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/media-gfx/ueberzugpp/files/ueberzugpp-2.9.6-gcc16.patch 
b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.6-gcc16.patch
new file mode 100644
index 000000000000..f034e723b50d
--- /dev/null
+++ b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.6-gcc16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/957614
+https://github.com/jstkdng/ueberzugpp/pull/258
+--- a/src/canvas/chafa.hpp
++++ b/src/canvas/chafa.hpp
+@@ -23,2 +23,3 @@
+ #include <memory>
++#include <mutex>
+ 

diff --git a/media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild 
b/media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild
index 0d960bbdcb46..96ad8a7a92b4 100644
--- a/media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild
+++ b/media-gfx/ueberzugpp/ueberzugpp-2.9.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -53,6 +53,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gcc16.patch
+)
+
 src_configure() {
        if use X && [[ $(tc-get-cxx-stdlib) == libc++ ]]; then
                # X support makes use of C++20's std::jthread which is currently

Reply via email to