commit:     812a9e59fba3f3d38c5aee7a92c6400e22afff22
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 22 03:05:08 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Oct 22 03:14:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=812a9e59

media-gfx/ueberzugpp: fix build with cli11-2.6.0

wrt the v3 check in the patch, odds are it'll also need setting
CLI11_ENABLE_EXTRA_VALIDATORS to work but there is no reason to
worry about this right now and fix is sufficient for 2.6.0.

Closes: https://bugs.gentoo.org/964933
Thanks-to: Pierre Saunders
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch   | 15 +++++++++++++++
 media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild              |  4 ++++
 2 files changed, 19 insertions(+)

diff --git a/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch 
b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch
new file mode 100644
index 000000000000..c371c9a08bd5
--- /dev/null
+++ b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/964933
+https://github.com/jstkdng/ueberzugpp/pull/268
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -23,4 +23,10 @@
+ #include <spdlog/spdlog.h>
+ 
++#include <CLI/Version.hpp>
++#if (CLI11_VERSION_MAJOR >= 3) || (CLI11_VERSION_MAJOR == 2 && 
CLI11_VERSION_MINOR >= 6)
++// CLI11 2.6.0 and beyond requires this header file for the CLI::IsMember 
validator.
++#include <CLI/ExtraValidators.hpp>
++#endif
++
+ #include "application.hpp"
+ #include "flags.hpp"

diff --git a/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild 
b/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild
index b26ec480eddd..5ac8b2e2d9c6 100644
--- a/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild
+++ b/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild
@@ -53,6 +53,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-cli11-2.6.0.patch
+)
+
 src_configure() {
        if use X && tc-is-clang &&
                [[ $(tc-get-cxx-stdlib) == libc++ && $(clang-major-version) -lt 
20 ]]

Reply via email to