Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.devel > #101714
| From | Scott Kitterman <debian@kitterman.com> |
|---|---|
| Newsgroups | linux.debian.devel |
| Subject | Re: Require packages to build without any configured DNS |
| Date | 2021-09-14 19:50 +0200 |
| Message-ID | <CXkJb-7bL-1@gated-at.bofh.it> (permalink) |
| References | <CUo6B-8c7-7@gated-at.bofh.it> <CXbPA-1xE-11@gated-at.bofh.it> <CXgPg-4MS-5@gated-at.bofh.it> <CXkga-72y-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On September 14, 2021 5:16:51 PM UTC, Johannes Schauer Marin Rodrigues <josch@debian.org> wrote: >Quoting Mattia Rizzolo (2021-09-14 15:34:36) >> On Tue, Sep 14, 2021 at 10:05:01AM +0200, Johannes Schauer Marin Rodrigues wrote: >> > Hi, >> > >> > Quoting Mattia Rizzolo (2021-09-06 16:39:39) >> > > As the pbuilder maintainer, I've been asked to make it serve a non-working >> > > /etc/resolv.conf just to make that bug above moot, so I'm quite biased on the >> > > matter myself :) >> > >> > sbuild already disables network access for all chroot backends that support it. >> >> As several people already stated, this is *not* about network access. > >Yes, I mention it for context. > >> > Schroot, the default chroot backend, currently doesn't allow this. See >> > #802849. >> >> Likewise pbuilder, yes. >> >> > The only chroot backend that allows disabling the network is the unshare >> > backend. It does so, by unsharing the network namespace, only bringing up the >> > loopback interface and writing an empty /etc/resolv.conf. >> >> So you ship an *empty* /etc/resolv.conf? Then I suppose you also can't build >> packages using dnspython in their tests with your configuration? > >Correct. This currently fails: > >sbuild -d unstable --chroot-mode=unshare python-oslo.rootwrap > >The error message is the same as for the package mentioned in #989171, namely: > >https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/python-oslo.rootwrap.html > >This is why I'm writing about sbuild. I wonder if it's a bug for sbuild to >write out an empty /etc/resolv.conf. At least based on the error text, I think it would be the same whether it was empty or missing: "Resolver configuration could not be read or specified no nameserver" As far as I can tell, dnspython is behaving reasonably. I don't think we should make it so it is an error for a package to complain it can't function. Scott K
Back to linux.debian.devel | Previous | Next — Previous 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