Package: apticron Version: 1.1.52 Followup-For: Bug #645988 Dear Maintainer,
I recently upgraded from squeeze to testing. Since then, the subject of emails sent by apticron no longer included the hostname. Previously (apticron 1.1.42) I got | Subject: 21 Debian package update(s) for paranoia | | apticron report [Thu, 29 Dec 2011 12:21:17 +0100] | ======================================================================== | | apticron has detected that some packages need upgrading on: | | paranoia | [ 127.0.0.1 127.0.1.1 192.168.178.34 ] | [ 2002:d4ff:2a68:0:221:6aff:fe29:b2a0 ] Currently (apticron 1.1.52) the hostname is completely missing: | Subject: 41 Debian package update(s) for | | apticron report [Mon, 09 Jan 2012 18:57:11 +0100] | ======================================================================== | | apticron has detected that some packages need upgrading on: | | | [ 192.168.178.34 2002:d4ff:27ee:0:221:6aff:fe29:b2a0 192.168.178.34 ] | [ 2002:d4ff:27ee:0:221:6aff:fe29:b2a0 ] (Note the trailing space after the 'for'.) The patch given in the original report seems to have been applied in the meantime (with the small modification that instead of '-A' and '-I' the equivalent long options are used). If I revert the patch, I get the correct subject again. Here is what 'hostname' does for different options on my system: | joe@paranoia:~$ hostname | paranoia | joe@paranoia:~$ hostname -f | paranoia | joe@paranoia:~$ hostname -A | | joe@paranoia:~$ hostname -i | 127.0.0.1 127.0.1.1 | joe@paranoia:~$ hostname -I | 192.168.178.34 2002:d4ff:27ee:0:221:6aff:fe29:b2a0 All of them exit with status 0. All exit immediately, except for 'hostname -A', which is probably trying to look up the name for 192.168.178.34 via DNS. That can't work, since this address is dynamically assigned by may DSL router, and the router's DNS server doesn't seem to talk to the router's DHCP server. If I apply the following patch ====================================================================== diff -u /usr/sbin/apticron.orig /usr/sbin/apticron --- /usr/sbin/apticron.orig 2012-01-09 20:37:22.000000000 +0100 +++ /usr/sbin/apticron 2012-01-09 21:40:28.000000000 +0100 @@ -62,7 +62,7 @@ eval `/usr/bin/apt-config shell DIRCACHE Dir::Cache` # Set the SYSTEM -SYSTEM=`/bin/hostname --all-fqdns` +SYSTEM=`/bin/hostname` # Set the IPADDRESSNUM IPADDRESSNUM="1" ====================================================================== to apticron 1.1.52 I get the old behaviour back: | Subject: 41 Debian package update(s) for paranoia | | apticron report [Mon, 09 Jan 2012 20:22:46 +0100] | ======================================================================== | | apticron has detected that some packages need upgrading on: | | paranoia | [ 127.0.0.1 127.0.1.1 192.168.178.34 ] | [ 2002:d4ff:27ee:0:221:6aff:fe29:b2a0 ] Is there a particular reason for using the FQDN instead of the plain host name? The FQDN may be missing (can't reverse-resolve address), may vary (mobile systems), or may be something funny (free WiFi, does the resolver guard against domainnames starting with '-'?). Thanks, Jö. -- System Information: Debian Release: wheezy/sid APT prefers stable-updates APT policy: (990, 'stable-updates'), (990, 'testing'), (990, 'stable'), (1, 'testing-proposed-updates'), (1, 'stable-updates'), (1, 'proposed-updates'), (1, 'testing'), (1, 'stable') Architecture: i386 (i686) Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apticron depends on: ii apt 0.8.15.9 ii bsd-mailx [mailx] 8.1.2-0.20111106cvs-1 ii cron 3.0pl1-120 ii debconf [debconf-2.0] 1.5.41 ii dpkg 1.16.1.2 ii ucf 3.0025+nmu2 Versions of packages apticron recommends: ii apt-listchanges 2.85.8 ii iproute 20111117-1 apticron suggests no packages. -- debconf information: * apticron/notification: root -- Jorrit (Jö) Fahlke, Interdisciplinary Center for Scientific Computing, Heidelberg University, Im Neuenheimer Feld 368, D-69120 Heidelberg Tel: +49 6221 54 8890 Fax: +49 6221 54 8884 Interpunktion, Orthographie und Grammatik der Email ist frei erfunden. Eine Übereinstimmung mit aktuellen oder ehemaligen Regeln wäre rein zufällig und ist nicht beabsichtigt.
signature.asc
Description: Digital signature