Bug#947943: libsoup2.4: Please make the libnss-myhostname build-dep linux-any

Simon McVittie smcv at debian.org
Thu Jan 2 17:00:17 GMT 2020


On Thu, 02 Jan 2020 at 15:41:45 +0100, Samuel Thibault wrote:
> libnss-myhostname comes from the systemd package, which is only built
> on linux-any, so could you make the libnss-myhostname dependency
> [linux-any] like the attached patch does?

Do the tests still pass on non-Linux without it?

This dependency was added because:

    The HSTS tests are failing because of not being able to resolve
    subdomains of localhost. If the libnss-myhostname package is installed
    while the tests are run, then the name resolution should work correctly.

    See also https://gitlab.gnome.org/GNOME/libsoup/issues/159

So those tests will probably need to be skipped (ideally with
g_test_skip()) if names like 'some.arbitrary-name.localhost' do not
resolve to 127.x.x.x and/or ::1. The HSTS tests need to be able to
connect to a subdomain of a known domain name to be able to test some
of the desired HSTS behaviours.

Alternatively, the developers of non-Linux-kernel ports of
Debian could fork and reintroduce the standalone package
<https://tracker.debian.org/pkg/libnss-myhostname> which was
later subsumed into systemd - it was designed for GNU/Linux, but
<https://buildd.debian.org/status/logs.php?pkg=libnss-myhostname>
suggests that it actually worked (or at least compiled) on any glibc-based
system. (This would likely require becoming its new upstream maintainer.)

    smcv



More information about the pkg-gnome-maintainers mailing list