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

Bug#709286: pu: package libnss-myhostname/0.3-4



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu

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

Hi,

there is a bug in libnss-myhostname that prevents "ping6 $(hostname)" on
machines with ipv6 enabled, but only link-local addresses configured:
http://bugs.debian.org/705900
This is biting the debian-edu default installation, and the debian-edu
team has asked me to propose the fix for wheezy.

The real cause for the issue seems to be in glibc (although there is
disagreement between libnss-myhostname’s upstream and other people), but
a simple work-around can be employed in libnss-myhostname, by letting it
ignore link-local addresses. The fix is uploaded to unstable, and the
debdiff attached.

Is this ok for wheezy? If so, how should I proceed -- wait for it to
enter jessie and then upload a package, built in a stable chroot, to
s-p-u?

Greetings,
Joachim


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

Kernel: Linux 3.8-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

iEYEARECAAYFAlGco6cACgkQ9ijrk0dDIGxB9ACglUn5RBwpzEgFIfEpvOXgnsoq
5dMAnjwW5EkuUwOHYcP4Fep62QkNl1j2
=UEH9
-----END PGP SIGNATURE-----
diff -Nru libnss-myhostname-0.3/debian/changelog libnss-myhostname-0.3/debian/changelog
--- libnss-myhostname-0.3/debian/changelog	2012-01-17 22:08:50.000000000 +0100
+++ libnss-myhostname-0.3/debian/changelog	2013-05-21 15:43:56.000000000 +0200
@@ -1,3 +1,9 @@
+libnss-myhostname (0.3-5) unstable; urgency=low
+
+  * Work around #705900: Ignore link-local addresses
+
+ -- Joachim Breitner <nomeata@debian.org>  Tue, 21 May 2013 15:43:56 +0200
+
 libnss-myhostname (0.3-4) unstable; urgency=low
 
   * Fix Package's description to reflect changed behaviour. (Closes: #656218)
diff -Nru libnss-myhostname-0.3/debian/.git-dpm libnss-myhostname-0.3/debian/.git-dpm
--- libnss-myhostname-0.3/debian/.git-dpm	2011-06-28 12:52:53.000000000 +0200
+++ libnss-myhostname-0.3/debian/.git-dpm	2013-05-13 10:40:27.000000000 +0200
@@ -1,6 +1,6 @@
 # see git-dpm(1) from git-dpm package
-b8ca226377b65009687b951505ec934632583456
-b8ca226377b65009687b951505ec934632583456
+cce547eac7d27b4476e646bfead3ba14b57a6ccc
+cce547eac7d27b4476e646bfead3ba14b57a6ccc
 11676c6b78abe9fe5bfb1224422dd7dc696d6a47
 11676c6b78abe9fe5bfb1224422dd7dc696d6a47
 libnss-myhostname_0.3.orig.tar.gz
diff -Nru libnss-myhostname-0.3/debian/patches/0001-Fix-building-on-kFreeBSD-MAX_HOST_NAME.patch libnss-myhostname-0.3/debian/patches/0001-Fix-building-on-kFreeBSD-MAX_HOST_NAME.patch
--- libnss-myhostname-0.3/debian/patches/0001-Fix-building-on-kFreeBSD-MAX_HOST_NAME.patch	2011-06-28 12:52:52.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/0001-Fix-building-on-kFreeBSD-MAX_HOST_NAME.patch	2013-05-13 10:40:18.000000000 +0200
@@ -4,8 +4,8 @@
 Subject: Fix building on kFreeBSD (MAX_HOST_NAME)
 
 ---
- configure.ac |   10 ++++++++++
- 1 files changed, 10 insertions(+), 0 deletions(-)
+ configure.ac | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
 
 diff --git a/configure.ac b/configure.ac
 index 38cd58f..a766d7a 100644
@@ -28,6 +28,3 @@
  # LYNX documentation generation
  ZP_LYNX_DOC
  
--- 
-1.7.5.4
-
diff -Nru libnss-myhostname-0.3/debian/patches/0002-Use-172.0.1.1.patch libnss-myhostname-0.3/debian/patches/0002-Use-172.0.1.1.patch
--- libnss-myhostname-0.3/debian/patches/0002-Use-172.0.1.1.patch	2011-06-28 12:52:52.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/0002-Use-172.0.1.1.patch	2013-05-13 10:40:18.000000000 +0200
@@ -4,8 +4,8 @@
 Subject: Use 172.0.1.1
 
 ---
- doc/README.html.in |    8 ++++----
- nss-myhostname.c   |    4 +++-
+ doc/README.html.in | 8 ++++----
+ nss-myhostname.c   | 4 +++-
  2 files changed, 7 insertions(+), 5 deletions(-)
 
 diff --git a/doc/README.html.in b/doc/README.html.in
@@ -49,6 +49,3 @@
  #define LOCALADDRESS_IPV6 &in6addr_loopback
  #define LOOPBACK_INTERFACE "lo"
  
--- 
-1.7.5.4
-
diff -Nru libnss-myhostname-0.3/debian/patches/0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch libnss-myhostname-0.3/debian/patches/0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch
--- libnss-myhostname-0.3/debian/patches/0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch	2011-06-28 12:52:52.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch	2013-05-13 10:40:18.000000000 +0200
@@ -4,13 +4,13 @@
 Subject: Use legacy getifaddrs() on GNU/kFreeBSD.
 
 ---
- Makefile.am      |    9 ++++-
- configure.ac     |    7 ++++
- ifconf.h         |   74 ++++++++++++++++++++++++++++++++++++++++++
- legacy.c         |   94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
- netlink.c        |   27 +--------------
- netlink.h        |   48 ---------------------------
- nss-myhostname.c |    8 ++--
+ Makefile.am      |  9 ++++--
+ configure.ac     |  7 +++++
+ ifconf.h         | 74 ++++++++++++++++++++++++++++++++++++++++++++
+ legacy.c         | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ netlink.c        | 27 ++--------------
+ netlink.h        | 48 -----------------------------
+ nss-myhostname.c |  8 ++---
  7 files changed, 188 insertions(+), 79 deletions(-)
  create mode 100644 ifconf.h
  create mode 100644 legacy.c
@@ -367,6 +367,3 @@
  
          for (a = addresses, n = 0; n < n_addresses; n++, a++) {
                  if (af != a->family)
--- 
-1.7.5.4
-
diff -Nru libnss-myhostname-0.3/debian/patches/0004-Ensure-a-LANG-independent-generated-README.patch libnss-myhostname-0.3/debian/patches/0004-Ensure-a-LANG-independent-generated-README.patch
--- libnss-myhostname-0.3/debian/patches/0004-Ensure-a-LANG-independent-generated-README.patch	2011-06-28 12:52:53.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/0004-Ensure-a-LANG-independent-generated-README.patch	2013-05-13 10:40:18.000000000 +0200
@@ -4,8 +4,8 @@
 Subject: Ensure a LANG-independent generated README
 
 ---
- doc/Makefile.am |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
+ doc/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/doc/Makefile.am b/doc/Makefile.am
 index 4f773ac..749efe2 100644
@@ -20,6 +20,3 @@
  
  CLEANFILES += README
  endif
--- 
-1.7.5.4
-
diff -Nru libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch
--- libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch	1970-01-01 01:00:00.000000000 +0100
+++ libnss-myhostname-0.3/debian/patches/0005-Ignore-link-local-addresses.patch	2013-05-13 10:40:18.000000000 +0200
@@ -0,0 +1,27 @@
+From cce547eac7d27b4476e646bfead3ba14b57a6ccc Mon Sep 17 00:00:00 2001
+From: Joachim Breitner <mail@joachim-breitner.de>
+Date: Mon, 13 May 2013 10:34:57 +0200
+Subject: Ignore link-local addresses
+
+Closes: #705900
+---
+ netlink.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/netlink.c b/netlink.c
+index 29f38e3..9bbed7e 100644
+--- a/netlink.c
++++ b/netlink.c
+@@ -178,6 +178,12 @@ int ifconf_acquire_addresses(struct address **_list, unsigned *_n_list) {
+                         if (!address)
+                                 continue;
+ 
++			// Avoid link-local address
++			// http://bugs.debian.org/705900
++			if (ifaddrmsg->ifa_family == AF_INET6 &&
++			    IN6_IS_ADDR_LINKLOCAL((const struct in6_addr *)address))
++			    continue;
++
+                         list = realloc(list, (n_list+1) * sizeof(struct address));
+                         if (!list) {
+                                 r = -ENOMEM;
diff -Nru libnss-myhostname-0.3/debian/patches/series libnss-myhostname-0.3/debian/patches/series
--- libnss-myhostname-0.3/debian/patches/series	2011-06-28 12:52:53.000000000 +0200
+++ libnss-myhostname-0.3/debian/patches/series	2013-05-13 10:40:27.000000000 +0200
@@ -2,3 +2,4 @@
 0002-Use-172.0.1.1.patch
 0003-Use-legacy-getifaddrs-on-GNU-kFreeBSD.patch
 0004-Ensure-a-LANG-independent-generated-README.patch
+0005-Ignore-link-local-addresses.patch

Reply to: