From 266f2f9b207a2f6cd01940ec6adb21f0005b42b4d9f6ecdbe8171c063fa4c207 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 21 Jul 2011 10:13:38 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/glibc revision 70.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=1687ba7d48be2f4342ee3194841b7c12 --- glibc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 4203508..e1cd12d 100644 --- a/glibc.spec +++ b/glibc.spec @@ -78,7 +78,7 @@ Obsoletes: glibc-64bit Obsoletes: glibc-32bit %endif Version: 2.13 -Release: 25 +Release: 27 Url: http://www.gnu.org/software/libc/libc.html Source: glibc-%{version}-996cf2ef0727.tar.bz2 Source2: http://ftp.gnu.org/gnu/glibc/glibc-ports-2.13.tar.bz2 From a5b58987513ec1bf7e7f3e51facbee59b4e515e14f378a318fb331ef5a0af2ab Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 25 Jul 2011 08:53:48 +0000 Subject: [PATCH 2/2] Accepting request 76694 from home:rhafer:branches:Base:System bnc#684534, bnc#706719 OBS-URL: https://build.opensuse.org/request/show/76694 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=86 --- glibc-fix-double-loopback.diff | 25 +++++++++++++++++++++++++ glibc.changes | 6 ++++++ glibc.spec | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 glibc-fix-double-loopback.diff diff --git a/glibc-fix-double-loopback.diff b/glibc-fix-double-loopback.diff new file mode 100644 index 0000000..f59a70d --- /dev/null +++ b/glibc-fix-double-loopback.diff @@ -0,0 +1,25 @@ +This fixes the problem of getent ahosts localhost returning 127.0.0.1 +_twice_ on systems that have no ipv6 interfaces up (hence are regarded +as ipv4 only by the lookup code), but still have localhost entries for +::1 and 127.0.0.1 in /etc/hosts (like most current systems). + +Remapping ::1 to 127.0.0.1 is bogus when /etc/hosts is correct. +bnc #684534, #606980 +http://sources.redhat.com/bugzilla/show_bug.cgi?id=4980 + +Index: glibc-2.11.3/nss/nss_files/files-hosts.c +=================================================================== +--- glibc-2.11.3.orig/nss/nss_files/files-hosts.c 2011-05-27 15:08:23.000000000 +0200 ++++ glibc-2.11.3/nss/nss_files/files-hosts.c 2011-07-20 17:15:26.000000000 +0200 +@@ -69,11 +69,6 @@ LINE_PARSER + { + if (IN6_IS_ADDR_V4MAPPED (entdata->host_addr)) + memcpy (entdata->host_addr, entdata->host_addr + 12, INADDRSZ); +- else if (IN6_IS_ADDR_LOOPBACK (entdata->host_addr)) +- { +- in_addr_t localhost = htonl (INADDR_LOOPBACK); +- memcpy (entdata->host_addr, &localhost, sizeof (localhost)); +- } + else + /* Illegal address: ignore line. */ + return 0; diff --git a/glibc.changes b/glibc.changes index 724563f..0d5ee00 100644 --- a/glibc.changes +++ b/glibc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 21 12:37:09 UTC 2011 - rhafer@suse.de + +- Disable rewriting ::1 to 127.0.0.1 for /etc/hosts entries. + (bnc#684534, bnc#706719) + ------------------------------------------------------------------- Wed Jul 20 15:04:33 UTC 2011 - lnussel@suse.de diff --git a/glibc.spec b/glibc.spec index e1cd12d..94a7509 100644 --- a/glibc.spec +++ b/glibc.spec @@ -208,6 +208,8 @@ Patch62: glibc-2.13-warnings.fix Patch63: glibc-2.13-localedef.patch # PATCH-FIX-UPSTREAM Fix futex bug bso#12403 aj@suse.de Patch64: glibc-fix-rwlock-stack-imbalance.patch +# PATCH-FIX-OPENSUSE disable rewriting ::1 to 127.0.0.1 for /etc/hosts bnc#684534, bnc#706719 +Patch65: glibc-fix-double-loopback.diff # # PATCH-FEATURE-OPENSUSE -- add sha support to crypt_blowfish lnussel@suse.de Patch80: crypt_blowfish-1.1-sha.diff @@ -445,6 +447,7 @@ rm nscd/s-stamp %patch62 -p1 %patch63 -p1 %patch64 -p1 +%patch65 -p1 # # Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed!