`seahorse:pgp / gpgme-backend` test fails if built with `-Dldap-support=false`
Downstream bug: https://bugs.gentoo.org/838949
The seahorse:pgp / gpgme-backend
test fails if built with -Dldap-support=false
.
$ meson build -Dldap-support=false
...
$ ninja -C build test
[261/262] Running all tests.
1/4 seahorse:data / validate-appdata OK 0.01s
2/4 seahorse:data / validate-desktop OK 0.01s
3/4 seahorse:pgp / hkp-source OK 0.01s
4/4 seahorse:pgp / gpgme-backend FAIL 0.11s killed by signal 5 SIGTRAP
>>> MALLOC_PERTURB_=237 /home/mattst88/projects/GNOME/seahorse/build/pgp/gpgme-backend
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
# random seed: R02S582d21eb2b5a5338bb2640966fd27089
1..1
# Start of pgp tests
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ?gsettings-backend?
# operation-DEBUG: init gpgme version 1.16.0
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
# operation-DEBUG: Monitoring GPG home directory '/home/mattst88/.gnupg'
# operation-DEBUG: scheduled a dummy refresh
# operation-DEBUG: refreshing keys...
# seahorse-MESSAGE: DNS-SD initialization failed: Daemon not running
Bail out! seahorse-FATAL-WARNING: server-category.vala:52: Unsupported scheme 'ldap'
stderr:
seahorse-Message: 13:11:20.041: DNS-SD initialization failed: Daemon not running
(/home/mattst88/projects/GNOME/seahorse/build/pgp/gpgme-backend:1612749): seahorse-WARNING **: 13:11:20.041: server-category.vala:52: Unsupported scheme 'ldap'
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
4/4 seahorse:pgp / gpgme-backend FAIL 0.11s killed by signal 5 SIGTRAP
Ok: 3
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Full log written to /home/mattst88/projects/GNOME/seahorse/build/meson-logs/testlog.txt
FAILED: meson-test
I figure that common/server-category.vala
was the source of the 'ldap'
string from the warning:
#if WITH_LDAP
categories.add(new ServerCategory(typeof(LdapSource), "ldap", _("LDAP Key Server"), ldap_is_valid_uri));
#endif // WITH_LDAP
but even removing those lines doesn't seem to affect the test.