Wookey writes ("Re: Bug#557730: /etc/{protocols,network,services} not schroot's to scribble over"): > On 2023-02-14 16:02 +0000, Ian Jackson wrote: > > The fake netbase.deb could be contained within schroot.deb, in > > /usr/share, so schroot wouldn't need to gain runtime build-deps on > > dpkg tooling. > > Except that it has to build this package live in order to contain the > /etc/protocols and /etc/services files from the host > environment. Having these default files with standard contents in a > pre-built .deb is pointless, isn't it?
No, I thinko it's fine. They mostly contain standardised constants. schroot could build-depend on netbase and copy the files from there, or just have fixed copies which would be updated manually once a release or something. These files, especially services, do change, but it is rare for low-level basic things (or build systems) to actually depend on the new entries. > > > Whilst having the passwd database reflected in the chroot is > > > incredibly useful it's not clear how often the services and protocols > > > are needed, but I assume people do find that functionality useful. > > > > I had a package that failed its build-time tests due to lack of > > /etc/protocols. The missing build-dep was detected in the buildds, > > because my own local sid build chroot has netbase installed, precisely > > because of this bug. > > Right, which gets back to having a proper minimal environment used by > sbuild to do a clean build. I have that (and it doesn't mount home, > using the 'sbuild' profile). I use it once things are working > reasonably well to get at least one clean build before uploading. This > bug is a problem in the 'less clean, but more useful' 'default' chroot > environment which is best for diagnostic work and builds of various > sorts where some file persistence (of user files) is needed. IME having a somewhat-dirty build environment is both convenient and not a problem. For example, my own sid chroot which *does* mount /home and import my passwd and so on, reproducibily-builds the same .debs as the buildds even for src:xen, whose build system is hardly straightforward. Ian. -- Ian Jackson <ijack...@chiark.greenend.org.uk> These opinions are my own. Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk, that is a private address which bypasses my fierce spamfilter.