I don't see this as critical as there are other tools (e.g. lynx/ncftp) to accomplish the same, but in any case... wget-1.7 has been patched (based on ftp://ftp.kame.net/pub/kame/misc/wget-17*) to enable ipv6. The updated package is at http://www.netcore.fi/pekkas/linux/ipv6/ Basically: - KAME patch - additional patch to configure.in, config.h.in to make the autoconf work - add autoconf, %configure --enable-ipv6 (else it will go on only if ipv6 is enabled on _building_ host) IPv6-binary tested to work on IPv4-only systems, connecting to both EPRT/PORT ftp sites with ipv4, etc.
Created attachment 25292 [details] additional patch required
Requiring IPv6 on the build machine is not acceptable.
Let me clarify. With the patch if you do: %configure, IPv6 will get enabled only if the building host has ipv6 enabled %configure --enable-ipv6 (as suggested), IPv6 will always get enabled, and the building host doesn't have to be IPv6-enabled. Sorry for too few words :-)
Is that really the only patch? It looks short...
No; this is just an additonal patch, required to make autoconf'ized IPv6-enabling to work (there were bugs in KAME patch). The main patch is at ftp://ftp.kame.net/pub/kame/misc/wget-17*, or a tailed-down version (patches to configure, libtool etc. removed) in my .src.rpm.
-2 from your site doesn't build properly: gcc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/etc/wgetrc\" -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=i386 -mcpu=i686 -c host.c host.c: In function `store_hostaddress': host.c:209: structure has no member named `sa_len'
It does build with --enable-ipv6, but needs to build without it as well.
Created attachment 27393 [details] ipv4-only compilation fix
Sigh.. there's a dummy sa_len that isn't used anywhere at least yet. sa_len was removed in glibc 2.2. Attached patch will fix it. Also updated in my src.rpm.
Mmm. I really don't get why WONTFIX?
Mainly because I'd like someone to push it into the upstream version :)
Sigh.