Your message dated Fri, 25 Jun 2010 21:51:57 +0000
with message-id <[email protected]>
and subject line Bug#579752: fixed in netbase 4.42
has caused the Debian Bug report #579752,
regarding IPv6 support is added to /etc/hosts by netbase.postinst without asking
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
579752: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579752
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: netbase
Version: 4.41
Severity: normal


When netbase is upgraded it will add IPv6 lines to /etc/hosts, without
going through the usual process of asking the administrator for
confirmation.

This was apparently changed in 4.11, the relevant changelog entry is:
"IPv6 entries will be always added to /etc/hosts from now on".

This is an example of a change made by netbase.postinst:
    
    diff --git a/hosts b/hosts
    index 704eb6b..2e6b55b 100644
    --- a/hosts
    +++ b/hosts
    @@ -1,2 +1,8 @@
     127.0.0.1       localhost
     109.74.193.250  v.nix.is v
    +
    +::1     localhost ip6-localhost ip6-loopback
    +fe00::0 ip6-localnet
    +ff00::0 ip6-mcastprefix
    +ff02::1 ip6-allnodes
    +ff02::2 ip6-allrouters

And the relevant netbase.postinst rule:
    
    update_hosts_file() {
      if [ -f /etc/hosts ] && ! grep -qE "^::1[[:space:]]" /etc/hosts; then
        cat >>/etc/hosts <<-EOF
    
            ::1     localhost ip6-localhost ip6-loopback
            fe00::0 ip6-localnet
            ff00::0 ip6-mcastprefix
            ff02::1 ip6-allnodes
            ff02::2 ip6-allrouters
    EOF
      fi
    }

Instead of silently altering the file it should present a menu like
this during upgrade:
    
    Configuration file `/etc/hosts'
     ==> Modified (by you or by a script) since installation.
     ==> Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : background this process to examine the situation
     The default action is to keep your current version.
    *** hosts (Y/I/N/O/D/Z) [default=N] ?

A similar bug (#97201) has been filed against this package before, but
that was a report of the clobbering of /etc/hosts, not a the
documented appending that's going on.

The reason I removed IPv6 support from my system in the first place is
because of bug #570914. Removing the lines from /etc/hosts likely did
nothing to help my system, and I'm not aware of any harm caused by
having them there.

I think this is a bug purely because packages should always ask before
they modify user-edited config files in /etc.

Maybe there should be a /etc/default/hosts that would have a config
option for IPv6="NO/YES". It would default to YES and
update_hosts_file() would only run if it was "YES".

Furthermore, /etc/hosts is not listed in the netbase.list or
netbase.conffiles. This made it hard to find what package was
responsible for it. dpkg -S didn't work, I had to grep
/var/lib/dpkg/info/.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-x86_64-linode11 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages netbase depends on:
ii  initscripts                   2.87dsf-10 scripts for initializing and shutt
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip

Versions of packages netbase recommends:
ii  ifupdown                      0.6.10     high level tools to configure netw

netbase suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: netbase
Source-Version: 4.42

We believe that the bug you reported is fixed in the latest version of
netbase, which is due to be installed in the Debian FTP archive:

netbase_4.42.dsc
  to main/n/netbase/netbase_4.42.dsc
netbase_4.42.tar.gz
  to main/n/netbase/netbase_4.42.tar.gz
netbase_4.42_all.deb
  to main/n/netbase/netbase_4.42_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <[email protected]> (supplier of updated netbase package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 25 Jun 2010 22:17:24 +0200
Source: netbase
Binary: netbase
Architecture: source all
Version: 4.42
Distribution: unstable
Urgency: low
Maintainer: Marco d'Itri <[email protected]>
Changed-By: Marco d'Itri <[email protected]>
Description: 
 netbase    - Basic TCP/IP networking system
Closes: 560238 579752 585708 586396
Changes: 
 netbase (4.42) unstable; urgency=low
 .
   * Stop setting net.ipv6.bindv6only=1 by default. (Closes: #560238)
   * Remove /etc/hosts and /etc/networks on purge to please mindless
     nitpickers and piuparts. (Closes: #585708)
   * Do not add IPv6-related names to /etc/hosts on upgrades to allow
     people to remove them and break their own systems. (Closes: #579752)
   * Create /etc/hosts and /etc/networks if missing on the first install
     (e.g. when installing with debootstrap).
   * etc-services: added dcap (22125/tcp), gsidcap (22128/tcp).
     (Closes: #586396)
Checksums-Sha1: 
 03ec8783ac16594af7795de4e97148b6d3e9e85e 682 netbase_4.42.dsc
 f8d54376790ee5c2a478c212a76d028740f37281 34808 netbase_4.42.tar.gz
 68ab8e33576b85ed4f355d24fa3d0c4cd05638e5 20406 netbase_4.42_all.deb
Checksums-Sha256: 
 a4ee51242cc2faf221377b7948123619087f03422bca23abfc673d9e71b14acf 682 
netbase_4.42.dsc
 055d30d36f189769d79f8e5b216117a22d6366393365361c23ef6bebac349965 34808 
netbase_4.42.tar.gz
 55435d7f49683d7971b0fc4f6237f1ca1b75fd07eb139be3a68a4550a61104bf 20406 
netbase_4.42_all.deb
Files: 
 475c49d8a82c3093c67f1ffdf7f3a1b7 682 admin important netbase_4.42.dsc
 bdf6d24a148ae76c5d268af24a855613 34808 admin important netbase_4.42.tar.gz
 2289686774802ba565a506cb1ebc5568 20406 admin important netbase_4.42_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwlG64ACgkQFGfw2OHuP7H8JQCgjupO6FFt9ScNXPFtLrdcnsqs
kE4AoJTDazEF9hJ/SXiD0rRUH7GQd9fc
=Fwm6
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to