Package: sbuild
Version: 0.71.0-2
Severity: normal
Usertags: origin-kali

Extract from the code:

    # Run debootstrap with specified options.
    if (!$conf->get('SETUP_ONLY')) {
        !system($debootstrap, @args) or die "E: Error running $debootstrap_bin";

    # Set up minimal /etc/hosts.
    my $hosts = "${target}/etc/hosts";
    open(HOSTS, ">$hosts")
        or die "Can't open $hosts for writing";
    print HOSTS " " . $conf->get('HOSTNAME') . " localhost";
    close HOSTS or die "Can't close $hosts";

So you can see that:
- /etc/hosts is overwritten even when it already exists
  (netbase which is priority important is creating the file during
  debootstrap in theory)
- the only entry added is the IPv4 localhost while netbase is creating
  this file:       localhost
        ::1             localhost ip6-localhost ip6-loopback
        ff02::1         ip6-allnodes
        ff02::2         ip6-allrouters

I have seen some test suites relying on the fact that there was
an IPv6 address associated to "localhost" or "ip6-localhost" so it
would be nice if sbuild-createchroot could get this right as well.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser         3.115
ii  apt-utils       1.3.1
ii  libsbuild-perl  0.71.0-2
pn  perl:any        <none>

Versions of packages sbuild recommends:
ii  debootstrap  1.0.84

Versions of packages sbuild suggests:
ii  autopkgtest  4.1
pn  deborphan    <none>
ii  wget         1.18-4

-- no debconf information

Reply via email to