[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#649747: marked as done ( hack is not supported by kFreeBSD)

Your message dated Fri, 15 Jun 2012 06:02:31 +0000
with message-id <E1SfPc7-0006MB-KW@franck.debian.org>
and subject line Bug#649747: fixed in netcfg 1.71
has caused the Debian Bug report #649747,
regarding hack is not supported by kFreeBSD
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 owner@bugs.debian.org

649747: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649747
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: netcfg
Version: 1.70
Severity: normal
Tags: patch hack introduced in commit 6762701e15829b1857fe252c1de642f8ec00f8a8
is based on the assumption that when loopback interface is set with
a netmask, it will identify itself by any address belonging to
this subnet.  This is true on Linux, but not on kFreeBSD.

(it remains to be found whether it's true on Hurd pfinet, anyone can
find out by running "ping"?)

Attached patch partially reverts that to make it only effective on Linux.

[1] See:

+netcfg (1.13) unstable; urgency=low
+  [ Thomas Hood ]
+  * If there is no permanent IP address with which the UNIX hostname
+    (i.e., that which is returned by the "hostname" command) can be
+    associated in /etc/hosts then associate it with address
+    rather than  Associating the UNIX hostname with the
+    latter had the unwanted effect of making 'localhost.localdomain'
+    the canoncial hostname associated with the UNIX hostname.
+    (Closes: #316099)

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/netcfg-common.c b/netcfg-common.c
index 4b2a8a0..6053a48 100644
--- a/netcfg-common.c
+++ b/netcfg-common.c
@@ -1042,19 +1042,23 @@ void netcfg_write_common(struct in_addr ipaddress, char *hostname, char *domain)
     if ((fp = file_open(HOSTS_FILE, "w"))) {
         char ptr1[INET_ADDRSTRLEN];
-        fprintf(fp, "\tlocalhost\n");
+        fprintf(fp, "\tlocalhost");
         if (ipaddress.s_addr) {
             inet_ntop (AF_INET, &ipaddress, ptr1, sizeof(ptr1));
             if (domain_nodot && !empty_str(domain_nodot))
-                fprintf(fp, "%s\t%s.%s\t%s\n", ptr1, hostname, domain_nodot, hostname);
+                fprintf(fp, "\n%s\t%s.%s\t%s\n", ptr1, hostname, domain_nodot, hostname);
-                fprintf(fp, "%s\t%s\n", ptr1, hostname);
+                fprintf(fp, "\n%s\t%s\n", ptr1, hostname);
         } else {
+#ifdef __linux__
             if (domain_nodot && !empty_str(domain_nodot))
-                fprintf(fp, "\t%s.%s\t%s\n", hostname, domain_nodot, hostname);
+                fprintf(fp, "\n127.0.1.1\t%s.%s\t%s\n", hostname, domain_nodot, hostname);
-                fprintf(fp, "\t%s\n", hostname);
+                fprintf(fp, "\n127.0.1.1\t%s\n", hostname);
+            fprintf(fp, "\t%s\n", hostname);
         fprintf(fp, "\n" IPV6_HOSTS);

--- End Message ---
--- Begin Message ---
Source: netcfg
Source-Version: 1.71

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

  to main/n/netcfg/netcfg-static_1.71_i386.udeb
  to main/n/netcfg/netcfg_1.71.dsc
  to main/n/netcfg/netcfg_1.71.tar.gz
  to main/n/netcfg/netcfg_1.71_i386.udeb

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

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 649747@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Christian Perrier <bubulle@debian.org> (supplier of updated netcfg 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 ftpmaster@debian.org)

Hash: SHA1

Format: 1.8
Date: Fri, 15 Jun 2012 07:22:39 +0200
Source: netcfg
Binary: netcfg netcfg-static
Architecture: source i386
Version: 1.71
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
 netcfg     - Configure the network (udeb)
 netcfg-static - Configure a static network (udeb)
Closes: 636211 649747
 netcfg (1.71) unstable; urgency=low
   * Team upload
   [ Robert Millan ]
   * Ignore pfsync0, pflog0 and usbus0 devices on GNU/kFreeBSD.
   * Use hack in /etc/hosts only on kernels that support it.
     (Closes: #649747)
   [ Samuel Thibault ]
   * Also probe /dev/eth* and wl* on hurd-i386.
   [ Sorina Sandu ]
   * Fix debconf backup capability handling.
     (Closes: #636211)
   [ Aurelien Jarno ]
   * Add ppc64 to the Architecture field.
   [ Updated translations ]
   * Amharic (am.po) by Tegegne Tefera
   * Arabic (ar.po) by Ossama Khayat
   * Asturian (ast.po) by Mikel González
   * Bulgarian (bg.po) by Damyan Ivanov
   * Bengali (bn.po) by Ayesha Akhtar
   * Tibetan (bo.po) by Tennom
   * Catalan (ca.po) by Jordi Mallach
   * Welsh (cy.po) by Dafydd Tomos
   * Danish (da.po) by Joe Hansen
   * German (de.po) by Holger Wansing
   * Greek, Modern (1453-) (el.po) by galaxico
   * Estonian (et.po) by Mattias Põldaru
   * Basque (eu.po) by Piarres Beobide
   * Finnish (fi.po) by Timo Jyrinki
   * Galician (gl.po) by Jorge Barreiro
   * Hebrew (he.po) by Omer Zak
   * Hungarian (hu.po) by SZERVÁC Attila
   * Indonesian (id.po) by Mahyuddin Susanto
   * Icelandic (is.po) by Sveinn í Felli
   * Italian (it.po) by Milo Casagrande
   * Central Khmer (km.po) by Khoem Sokhem
   * Kannada (kn.po) by Prabodh C P
   * Lao (lo.po) by Anousak Souphavanh
   * Lithuanian (lt.po) by Rimas Kudelis
   * Latvian (lv.po) by Rūdolfs Mazurs
   * Macedonian (mk.po) by Arangel Angov
   * Malayalam (ml.po) by Praveen Arimbrathodiyil
   * Marathi (mr.po) by sampada
   * Bokmål, Norwegian (nb.po) by Hans Fredrik Nordhaug
   * Dutch (nl.po) by Jeroen Schot
   * Panjabi (pa.po) by A S Alam
   * Polish (pl.po) by Marcin Owsiany
   * Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
   * Romanian (ro.po) by Ioan Eugen Stan
   * Slovenian (sl.po) by Vanja Cvelbar
   * Serbian (sr.po) by Karolina Kalic
   * Vietnamese (vi.po) by Hai-Nam Nguyen
   * Traditional Chinese (zh_TW.po) by Yao Wei (魏銘廷)
 f8af98d58ce516b6c4f59985aa96d02c9eac9f1f 1805 netcfg_1.71.dsc
 fae25b29d31dc9877e723f579835aaa72e723a76 579858 netcfg_1.71.tar.gz
 af9750fdaa11df2a3f0e6aff937b828be953abcc 390134 netcfg_1.71_i386.udeb
 43d3d56c77eb0f7d32043704dca4ee4ac0862178 307534 netcfg-static_1.71_i386.udeb
 fdba2f32065184ae61a26f5b300c6198446f1b40a9242ac2f1127907ad49771a 1805 netcfg_1.71.dsc
 9f7145615f8e54d1634948f49750e0d91c7d0fb54f3a6fa35c9c3088f0cc8d45 579858 netcfg_1.71.tar.gz
 5339d58a636d78470507c7b62c3d430c7f6e383196203da4b601e76766d3b115 390134 netcfg_1.71_i386.udeb
 a9c55ce41fdaae9ede54c5390bc46cc3f94edbabda12a21ecb74aaab0939a31e 307534 netcfg-static_1.71_i386.udeb
 399ec2f179cb14435547709834f9f2de 1805 debian-installer optional netcfg_1.71.dsc
 3a70c1fb215b7883bb949af3db29b34c 579858 debian-installer optional netcfg_1.71.tar.gz
 6f63d771781e11a335848e9545d78e7c 390134 debian-installer optional netcfg_1.71_i386.udeb
 179bd72a10e58ad8d95a5970418c5198 307534 debian-installer optional netcfg-static_1.71_i386.udeb
Package-Type: udeb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: