commit:     23e4d75fa90b990e85186c772d9ff49619abfe63
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Wed Jul 30 21:43:55 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Aug 14 21:21:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23e4d75f

app-crypt/seahorse: enforce binary dependency on gtk x11 backend

```
QA Notice: binaries depend on Gtk's x11-specific ABI without USE dep:

  /usr/libexec/seahorse/ssh-askpass
```

Closes: https://bugs.gentoo.org/958383
Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/43235
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 .../seahorse/{seahorse-43.0-r4.ebuild => seahorse-43.0-r5.ebuild} | 8 +++++---
 .../{seahorse-47.0.1.ebuild => seahorse-47.0.1-r1.ebuild}         | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/app-crypt/seahorse/seahorse-43.0-r4.ebuild 
b/app-crypt/seahorse/seahorse-43.0-r5.ebuild
similarity index 91%
rename from app-crypt/seahorse/seahorse-43.0-r4.ebuild
rename to app-crypt/seahorse/seahorse-43.0-r5.ebuild
index e29157e92104..5bbc2e559822 100644
--- a/app-crypt/seahorse/seahorse-43.0-r4.ebuild
+++ b/app-crypt/seahorse/seahorse-43.0-r5.ebuild
@@ -2,21 +2,21 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit gnome.org gnome2-utils meson vala xdg
+inherit flag-o-matic gnome.org gnome2-utils meson vala xdg
 
 DESCRIPTION="Manage your passwords and encryption keys"
 HOMEPAGE="https://wiki.gnome.org/Apps/Seahorse";
 
 LICENSE="GPL-2+ FDL-1.1+"
 SLOT="0"
-IUSE="ldap zeroconf"
+IUSE="X ldap zeroconf"
 KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
        >=dev-libs/glib-2.66:2
        >=app-crypt/gcr-3.38:0=
        >=app-crypt/gpgme-1.14.0:=
-       >=x11-libs/gtk+-3.24.0:3
+       >=x11-libs/gtk+-3.24.0:3[X?]
        >=app-crypt/gnupg-2.2
        >=gui-libs/libhandy-1.6.0:1
        >=app-crypt/libsecret-0.16
@@ -60,6 +60,8 @@ src_prepare() {
 }
 
 src_configure() {
+       use X || append-cppflags -DGENTOO_GTK_HIDE_X11
+
        local emesonargs=(
                -Dhelp=true
                -Dpgp-support=true

diff --git a/app-crypt/seahorse/seahorse-47.0.1.ebuild 
b/app-crypt/seahorse/seahorse-47.0.1-r1.ebuild
similarity index 91%
rename from app-crypt/seahorse/seahorse-47.0.1.ebuild
rename to app-crypt/seahorse/seahorse-47.0.1-r1.ebuild
index 222598f804db..2447f1416ea9 100644
--- a/app-crypt/seahorse/seahorse-47.0.1.ebuild
+++ b/app-crypt/seahorse/seahorse-47.0.1-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit gnome.org gnome2-utils meson vala xdg
+inherit flag-o-matic gnome.org gnome2-utils meson vala xdg
 
 DESCRIPTION="Manage your passwords and encryption keys"
 HOMEPAGE="https://gitlab.gnome.org/GNOME/seahorse";
@@ -10,13 +10,13 @@ HOMEPAGE="https://gitlab.gnome.org/GNOME/seahorse";
 LICENSE="GPL-2+ FDL-1.1+"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
-IUSE="ldap zeroconf"
+IUSE="X ldap zeroconf"
 
 RDEPEND="
        >=dev-libs/glib-2.66:2
        >=app-crypt/gcr-3.38:0=
        >=app-crypt/gpgme-1.14.0:=
-       >=x11-libs/gtk+-3.24.0:3
+       >=x11-libs/gtk+-3.24.0:3[X?]
        >=app-crypt/gnupg-2.2
        >=gui-libs/libhandy-1.6.0:1
        >=app-crypt/libsecret-0.16
@@ -59,6 +59,8 @@ src_prepare() {
 }
 
 src_configure() {
+       use X || append-cppflags -DGENTOO_GTK_HIDE_X11
+
        local emesonargs=(
                -Dhelp=true
                -Dpgp-support=true

Reply via email to