commit:     edcbbcd8e67b39edb21456b8f543f2f42c3d0902
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  2 20:24:10 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Jul  2 20:24:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edcbbcd8

app-crypt/seahorse: Handle tests needing ldap support

Closes: https://bugs.gentoo.org/838949
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 .../seahorse/files/seahorse-47.0.1-ldap-test.patch  | 21 +++++++++++++++++++++
 app-crypt/seahorse/seahorse-47.0.1.ebuild           |  5 +++++
 2 files changed, 26 insertions(+)

diff --git a/app-crypt/seahorse/files/seahorse-47.0.1-ldap-test.patch 
b/app-crypt/seahorse/files/seahorse-47.0.1-ldap-test.patch
new file mode 100644
index 000000000000..03b15baf015e
--- /dev/null
+++ b/app-crypt/seahorse/files/seahorse-47.0.1-ldap-test.patch
@@ -0,0 +1,21 @@
+--- a/pgp/meson.build.old      2025-07-02 22:21:15.443850684 +0200
++++ b/pgp/meson.build  2025-07-02 22:21:36.759743446 +0200
+@@ -99,9 +99,7 @@
+ 
+ 
+ # Tests
+-test_names = [
+-  'gpgme-backend',
+-]
++test_names = []
+ 
+ if get_option('hkp-support')
+   test_names += 'hkp-source'
+@@ -109,6 +107,7 @@
+ 
+ if get_option('ldap-support')
+   test_names += 'ldap-source'
++  test_names += 'gpgme-backend'
+ endif
+ 
+ foreach _test : test_names

diff --git a/app-crypt/seahorse/seahorse-47.0.1.ebuild 
b/app-crypt/seahorse/seahorse-47.0.1.ebuild
index e1f0a2854fa2..a018c33c5642 100644
--- a/app-crypt/seahorse/seahorse-47.0.1.ebuild
+++ b/app-crypt/seahorse/seahorse-47.0.1.ebuild
@@ -45,6 +45,11 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       # https://gitlab.gnome.org/GNOME/seahorse/-/issues/348
+       "${FILESDIR}/${PN}-47.0.1-ldap-test.patch"
+)
+
 src_prepare() {
        default
        vala_setup

Reply via email to