patches/glibc/2.9/170-2.10-dns-no-gethostbyname4.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 09:50:16 2009 +0000 (2009-05-03)
branchnewlib
changeset 1366 5e5d1e6f55d3
permissions -rw-r--r--
Update the newlib devel branch with stuff from /trunk@1498.

-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
yann@1365
     1
Original patch from: gentoo/src/patchsets/glibc/2.9/0080_all_glibc-2.10-dns-no-gethostbyname4.patch
yann@1365
     2
yann@1365
     3
-= BEGIN original header =-
yann@1365
     4
http://sourceware.org/bugzilla/show_bug.cgi?id=7060
yann@1365
     5
http://bugs.gentoo.org/250468
yann@1365
     6
yann@1365
     7
The gethostbyname4() lookup method is problematic since it fires out both
yann@1365
     8
the A and AAAA DNS queries in parallel and over the same socket. This
yann@1365
     9
should work in theory, but it turns out that many cheap DSL modems and
yann@1365
    10
similar devices have buggy DNS servers - if the AAAA query arrives too
yann@1365
    11
quickly after the A query, the server will generate only a single reply
yann@1365
    12
with the A query id but returning an error for the AAAA query; we get
yann@1365
    13
stuck waiting for the second reply.
yann@1365
    14
yann@1365
    15
For gethostbyname4() users affected, disabling IPv6 in the system might
yann@1365
    16
work around the issue, unfortunately it only helps with applications
yann@1365
    17
using AI_ADDRCONFIG (e.g. Firefox); some (notably e.g. Pidgin) neglect
yann@1365
    18
to do that.
yann@1365
    19
yann@1365
    20
Real fix should be using separate ports for the A and AAAA queries.
yann@1365
    21
yann@1365
    22
-= END original header =-
yann@1365
    23
yann@1365
    24
diff -durN glibc-2_9.orig/resolv/Versions glibc-2_9/resolv/Versions
yann@1365
    25
--- glibc-2_9.orig/resolv/Versions	2008-08-01 19:15:34.000000000 +0200
yann@1365
    26
+++ glibc-2_9/resolv/Versions	2009-02-02 22:00:46.000000000 +0100
yann@1365
    27
@@ -102,7 +102,7 @@
yann@1365
    28
     _nss_dns_gethostbyname_r; _nss_dns_getnetbyaddr_r;
yann@1365
    29
     _nss_dns_getnetbyname_r; _nss_dns_getcanonname_r;
yann@1365
    30
     _nss_dns_gethostbyaddr2_r;
yann@1365
    31
-    _nss_dns_gethostbyname4_r;
yann@1365
    32
+#    _nss_dns_gethostbyname4_r;
yann@1365
    33
   }
yann@1365
    34
 }
yann@1365
    35