[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Version: 2.69.90-1

On Thu, 02 Jan 2020 at 15:57:48 +0000, Andreas Henriksson wrote:
> https://salsa.debian.org/gnome-team/libsoup/commit/df7c0599eebb7a8da0ba46880bd865b420fb92e2
> 
> ------------------------------------------------------------------------
> Make libnss-myhostname (build-)dep only apply on linux
> 
> Closes: #947943

This change didn't get into the changelog, but was in fact released to
experimental in 2.69.90-1, so I'm closing the bug.

On Thu, 02 Jan 2020 at 18:13:55 +0100, Samuel Thibault wrote:
> Simon McVittie, le jeu. 02 janv. 2020 17:00:17 +0000, a ecrit:
> > Do the tests still pass on non-Linux without it?
> 
> I have to admit I haven't tried.

In general I am not in favour of making changes specifically for the
benefit of particular ports without them first having been tested
successfully on the port in question... however, Andreas committed the
proposed change, and I don't feel strongly enough about it to revert it.
So if you prefer to have failing tests rather than unbuildable packages
on Hurd and kFreeBSD, I think you now have that.

On Thu, 02 Jan 2020 at 17:00:17 +0000, Simon McVittie wrote:
> This dependency was added because:
> 
>     The HSTS tests are failing because of not being able to resolve
>     subdomains of localhost.

They'll probably work even without libnss-myhostname, and on
any architecture, *if* you have GLib >= 2.63.1 (currently only in
experimental, but I expect the GNOME team will want to upload it to
unstable soon as part of the GNOME 3.36 release).

This is because newer versions of the GIO part of GLib add a special case
similar to those implemented in Firefox and Chromium, to make localhost
and *.localhost always resolve to 127.0.0.1 and/or ::1, similar to what
libnss-myhostname does (but only for GIO-dependent applications and
libraries like libsoup, whereas libnss-myhostname works system-wide,
apart from some corner cases involving AI_ADDRCONFIG and containers with
no non-loopback IP addresses).

After GLib >= 2.63.1 gets to unstable, we can probably add a versioned
build-dependency on it, and revert the libnss-myhostname dependency
entirely.

    smcv


Reply to: