commit:     261592db87ae31dbbc7b424f9024cca63d739bd6
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Mon Dec  1 14:52:44 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Dec 21 19:39:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=261592db

gui-libs/vte: enforce binary dependency on gdk X and wayland backends

```
 * QA Notice: binaries depend on Gtk's wayland-specific ABI without USE dep:
 *
 *   /usr/bin/vte-2.91-gtk4

 * QA Notice: binaries depend on Gtk's x11-specific ABI without USE dep:
 *
 *   /usr/bin/vte-2.91-gtk4
```

Closes: https://bugs.gentoo.org/961111
Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/44852
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 gui-libs/vte/{vte-0.80.4.ebuild => vte-0.80.4-r1.ebuild} | 7 +++++--
 gui-libs/vte/vte-0.82.2.ebuild                           | 5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gui-libs/vte/vte-0.80.4.ebuild b/gui-libs/vte/vte-0.80.4-r1.ebuild
similarity index 92%
rename from gui-libs/vte/vte-0.80.4.ebuild
rename to gui-libs/vte/vte-0.80.4-r1.ebuild
index 4f4b93c0c218..65821b494e5b 100644
--- a/gui-libs/vte/vte-0.80.4.ebuild
+++ b/gui-libs/vte/vte-0.80.4-r1.ebuild
@@ -14,14 +14,14 @@ LICENSE="LGPL-3+ GPL-3+"
 SLOT="2.91-gtk4" # vte_api_version + "-gtk4" in meson.build
 
 KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
-IUSE="+crypt debug gtk-doc +icu +introspection systemd +vala"
+IUSE="X +crypt debug gtk-doc +icu +introspection systemd +vala wayland"
 REQUIRED_USE="
        gtk-doc? ( introspection )
        vala? ( introspection )
 "
 
 DEPEND="
-       >=gui-libs/gtk-4.14:4[introspection?]
+       >=gui-libs/gtk-4.14:4[X?,introspection?,wayland?]
        >=x11-libs/cairo-1.0
        dev-cpp/fast_float
        >=dev-libs/fribidi-1.0.0
@@ -64,6 +64,9 @@ src_configure() {
        # Upstream don't support LTO & error out on it in meson.build (bug 
#926156)
        filter-lto
 
+       use X || append-flags -DGENTOO_GTK_HIDE_X11
+       use wayland || append-flags -DGENTOO_GTK_HIDE_WAYLAND
+
        local emesonargs=(
                -Da11y=true
                $(meson_use debug)

diff --git a/gui-libs/vte/vte-0.82.2.ebuild b/gui-libs/vte/vte-0.82.2.ebuild
index 762c9f989f90..f50d1e8cb9bc 100644
--- a/gui-libs/vte/vte-0.82.2.ebuild
+++ b/gui-libs/vte/vte-0.82.2.ebuild
@@ -14,7 +14,7 @@ LICENSE="LGPL-3+ GPL-3+"
 SLOT="2.91-gtk4" # vte_api_version + "-gtk4" in meson.build
 
 KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
-IUSE="+crypt debug gtk-doc +icu +introspection systemd +vala"
+IUSE="X +crypt debug gtk-doc +icu +introspection systemd +vala wayland"
 REQUIRED_USE="
        gtk-doc? ( introspection )
        vala? ( introspection )
@@ -66,6 +66,9 @@ src_configure() {
        # Upstream don't support LTO & error out on it in meson.build (bug 
#926156)
        filter-lto
 
+       use X || append-flags -DGENTOO_GTK_HIDE_X11
+       use wayland || append-flags -DGENTOO_GTK_HIDE_WAYLAND
+
        local emesonargs=(
                -Da11y=true
                #-Dapp-hidden=true

Reply via email to