summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2015-11-23 21:49:04 +0000
committerschmonz <schmonz@pkgsrc.org>2015-11-23 21:49:04 +0000
commitc09cffdd9d6ba600f797c599945ce2a653bd04d8 (patch)
tree60d853c34ae5ff439274272949f66b53f40a7a61 /net
parent52aeaa4b5769ff8d54c8d2d4dbe96c31ad427d77 (diff)
downloadpkgsrc-c09cffdd9d6ba600f797c599945ce2a653bd04d8.tar.gz
Fix linker errors when building with --disable-ipv6.
Diffstat (limited to 'net')
-rw-r--r--net/wget/distinfo3
-rw-r--r--net/wget/patches/patch-src_ftp-basic.c32
2 files changed, 34 insertions, 1 deletions
diff --git a/net/wget/distinfo b/net/wget/distinfo
index 15cd08349d1..5a5abddadf1 100644
--- a/net/wget/distinfo
+++ b/net/wget/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.48 2015/11/21 09:44:53 wiz Exp $
+$NetBSD: distinfo,v 1.49 2015/11/23 21:49:04 schmonz Exp $
SHA1 (wget-1.17.tar.xz) = 442330c7381593bdde568d15b758b76bdb9b98a2
RMD160 (wget-1.17.tar.xz) = ea35738ca2e5b60a191b45a698b0a98766fc57d6
SHA512 (wget-1.17.tar.xz) = 4936dad41580f6ba33df73de041e407cd6dd5266af4af947ebf4c54457f0f296e3462cfff1fb203b27ff5760ec4f6f4d24ea4faceeea461f98c22b031225947f
Size (wget-1.17.tar.xz) = 1884628 bytes
SHA1 (patch-doc_wget.texi) = 6db25b3500ff4617b5ade34d9013b1f9876104f8
+SHA1 (patch-src_ftp-basic.c) = 9e8a9457c5e947d234dc639818e49589d5c72e9e
diff --git a/net/wget/patches/patch-src_ftp-basic.c b/net/wget/patches/patch-src_ftp-basic.c
new file mode 100644
index 00000000000..a424104d811
--- /dev/null
+++ b/net/wget/patches/patch-src_ftp-basic.c
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_ftp-basic.c,v 1.1 2015/11/23 21:49:05 schmonz Exp $
+
+Fix linker errors when building with --disable-ipv6.
+From <URL:http://permalink.gmane.org/gmane.comp.web.wget.general/14984>
+
+--- src/ftp-basic.c.orig 2015-11-09 15:24:06.000000000 +0000
++++ src/ftp-basic.c
+@@ -428,6 +428,7 @@ ip_address_to_eprt_repr (const ip_addres
+ snprintf (buf, buflen, "|%d|%s|%d|", afnum, print_address (addr), port);
+ buf[buflen - 1] = '\0';
+ }
++#endif /* ENABLE_IPV6 */
+
+ #ifdef HAVE_SSL
+ /*
+@@ -542,6 +543,7 @@ bail:
+ }
+ #endif /* HAVE_SSL */
+
++#ifdef ENABLE_IPV6
+ /* Bind a port and send the appropriate PORT command to the FTP
+ server. Use acceptport after RETR, to get the socket of data
+ connection. */
+@@ -599,7 +601,7 @@ ftp_eprt (int csock, int *local_sock)
+ xfree (respline);
+ return FTPOK;
+ }
+-#endif
++#endif /* ENABLE_IPV6 */
+
+ /* Similar to ftp_port, but uses `PASV' to initiate the passive FTP
+ transfer. Reads the response from server and parses it. Reads the