Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.devel > #101706
| From | Adrian Bunk <bunk@debian.org> |
|---|---|
| Newsgroups | linux.debian.devel |
| Subject | Re: Require packages to build without any configured DNS |
| Date | 2021-09-14 14:50 +0200 |
| Message-ID | <CXg2S-4hn-9@gated-at.bofh.it> (permalink) |
| References | <CUo6B-8c7-7@gated-at.bofh.it> <CV8j9-4cg-23@gated-at.bofh.it> <CVVtv-108-1@gated-at.bofh.it> <CXaAd-A3-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 13, 2021 at 04:05:57PM -0700, Don Armstrong wrote: > On Fri, 10 Sep 2021, Adrian Bunk wrote: > > On Wed, Sep 08, 2021 at 09:01:31AM -0700, Josh Triplett wrote: > > >... > > > I think dnspython's previous approach was correct: just like glibc, musl, and > > > other libraries, if /etc/resolv.conf is missing they should treat that as > > > though it specified a nameserver on localhost. > > > > How libraries implement a standard high-level C interface is not > > necessarily relevant for how a DNS library implements a low-level > > interface. > > It seems to me that upstream should just not raise > NoResolverConfiguration, and instead not configure any nameservers. > > Then, if someone tries to resolve without any configured nameservers, > NoNameservers will be raised, which is the same thing that happens if > there are no good nameservers, and is less inconsistent with the > previous behavior. I would consider it worse if init of a module returns success in a situation where it is known that the whole module is nonfunctional, and then returns an error every time a thread tries to use the module. There are obviously several options what could be done, but it's difficult to call the current behaviour a bug in a DNS module. The large picture is that there is no piece of software involved in all this that is clearly buggy itself, the problem is that all pieces together are at the border of forbidden "uses network" in Debian builds. My personal stake in all this is that I've raised the topic twice with Mattia since it makes it a lot harder to use reproducible for finding FTBFS, and I was initially making the case for having the IP address of a non-existing nameserver in /etc/resolv.conf in the reproducible environment. My impression of this discussion is that unless someone discusses and convinces an upstream to change their (not obviously buggy) software, the affected packages must not run these tests during the build and if there are autopkgtest they must have a "needs-internet" restriction. cu Adrian
Back to linux.debian.devel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Require packages to build without any configured DNS Mattia Rizzolo <mattia@debian.org> - 2021-09-06 16:50 +0200
Re: Require packages to build without any configured DNS Don Armstrong <don@debian.org> - 2021-09-08 01:50 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-08 15:00 +0200
Re: Require packages to build without any configured DNS Thomas Goirand <zigo@debian.org> - 2021-09-08 16:20 +0200
Re: Require packages to build without any configured DNS Pirate Praveen <praveen@onenetbeyond.org> - 2021-09-08 16:30 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-08 17:30 +0200
Re: Require packages to build without any configured DNS Pirate Praveen <praveen@onenetbeyond.org> - 2021-09-09 00:00 +0200
Re: Require packages to build without any configured DNS Paul Wise <pabs@debian.org> - 2021-09-09 06:50 +0200
Re: Require packages to build without any configured DNS Helmut Grohne <helmut@subdivi.de> - 2021-09-08 18:00 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-08 19:10 +0200
Re: Require packages to build without any configured DNS Thomas Goirand <zigo@debian.org> - 2021-09-08 22:30 +0200
Re: Require packages to build without any configured DNS Paul Wise <pabs@debian.org> - 2021-09-09 06:50 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-09 09:40 +0200
Re: Require packages to build without any configured DNS Thomas Goirand <zigo@debian.org> - 2021-09-12 21:10 +0200
Re: Require packages to build without any configured DNS Josh Triplett <josh@joshtriplett.org> - 2021-09-10 11:00 +0200
Re: Require packages to build without any configured DNS Thomas Goirand <zigo@debian.org> - 2021-09-12 21:10 +0200
Re: Require packages to build without any configured DNS Josh Triplett <josh@joshtriplett.org> - 2021-09-13 06:20 +0200
Re: Require packages to build without any configured DNS Josh Triplett <josh@joshtriplett.org> - 2021-09-08 18:10 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-10 22:40 +0200
Re: Require packages to build without any configured DNS Don Armstrong <don@debian.org> - 2021-09-14 09:00 +0200
Re: Require packages to build without any configured DNS Adrian Bunk <bunk@debian.org> - 2021-09-14 14:50 +0200
Re: Require packages to build without any configured DNS Johannes Schauer Marin Rodrigues <josch@debian.org> - 2021-09-14 10:20 +0200
Re: Require packages to build without any configured DNS Mattia Rizzolo <mattia@debian.org> - 2021-09-14 15:40 +0200
Re: Require packages to build without any configured DNS Johannes Schauer Marin Rodrigues <josch@debian.org> - 2021-09-14 19:20 +0200
Re: Require packages to build without any configured DNS Scott Kitterman <debian@kitterman.com> - 2021-09-14 19:50 +0200
csiph-web