commit:     53f2451ff5dddd9506689146cc33ea16abf8a01f
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Mon Dec  1 15:02:32 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=53f2451f

x11-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

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

Closes: https://bugs.gentoo.org/961112
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>

 x11-libs/vte/{vte-0.80.4.ebuild => vte-0.80.4-r1.ebuild} | 7 +++++--
 x11-libs/vte/vte-0.82.2.ebuild                           | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/x11-libs/vte/vte-0.80.4.ebuild b/x11-libs/vte/vte-0.80.4-r1.ebuild
similarity index 92%
rename from x11-libs/vte/vte-0.80.4.ebuild
rename to x11-libs/vte/vte-0.80.4-r1.ebuild
index 959fa13d2588..4b63e308bc3f 100644
--- a/x11-libs/vte/vte-0.80.4.ebuild
+++ b/x11-libs/vte/vte-0.80.4-r1.ebuild
@@ -14,14 +14,14 @@ LICENSE="LGPL-3+ GPL-3+"
 
 SLOT="2.91"      # vte_api_version 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="
-       >=x11-libs/gtk+-3.24.22:3[introspection?]
+       >=x11-libs/gtk+-3.24.22:3[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
        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/x11-libs/vte/vte-0.82.2.ebuild b/x11-libs/vte/vte-0.82.2.ebuild
index fda9c3a3e8b6..93abb23d3212 100644
--- a/x11-libs/vte/vte-0.82.2.ebuild
+++ b/x11-libs/vte/vte-0.82.2.ebuild
@@ -14,14 +14,14 @@ LICENSE="LGPL-3+ GPL-3+"
 
 SLOT="2.91"      # vte_api_version 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="
-       >=x11-libs/gtk+-3.24.22:3[introspection?]
+       >=x11-libs/gtk+-3.24.22:3[X?,introspection?,wayland?]
        >=x11-libs/cairo-1.0
        >=dev-libs/libfmt-11.0.0
        dev-cpp/fast_float
@@ -66,6 +66,9 @@ src_configure() {
        # Upstream don't support LTO & error out on it in meson.build
        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