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

Re: Bug#1063648: krb5: FTBFS on arm64, armel and ppc64el with "Can't resolve hostname" in dh_auto_test



>>>>> "Simon" == Simon McVittie <smcv@debian.org> writes:

    Simon> It might be relevant that according to #972151, arm-conova-03
    Simon> (and perhaps other *-conova-* buildds?) is IPv6-only, with no
    Simon> IPv4 addresses or routes other than loopback (not even via
    Simon> NAT).

    Simon> I believe there is consensus that we consider "localhost
    Simon> resolves to 127.0.0.1" to be a reasonable thing to demand
    Simon> from all buildds as part of the build-essential interface.

    Simon> I am unsure whether there is consensus that "the result of
    Simon> gethostname() resolves to some address of the local machine"
    Simon> is also a reasonable thing to demand from all buildds as part
    Simon> of build-essential: /etc/hosts typically makes this true, but
    Simon> is not *guaranteed* to do so. On Linux, packages can ensure
    Simon> that it happens by build-depending on libnss-myhostname
    Simon> [linux-any], if necessary.

    Simon> However, even with both of those, if the krb5 test suite (or
    Simon> protocol) is resolving the local hostname with AF_INET
    Simon> (IPv4-only), and with either AI_ADDRCONFIG or NULL hints,
    Simon> then that will not yield any results on an IPv6-only system
    Simon> for the reasons discussed in #952740 and related bug reports.

Krb5 is very v6-happy.
So, you're suggesting that I fix this by build-depending on
libnss-myhostname [linux-any] assuming tests are enabled?
If so, that's easy.
(I don't remember the order of build profiles and architecture
specifications in a build depends but can go look that up.


Reply to: