Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2006 12:48:45 +0200
From:      Vasil Dimov <vd@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        roam@FreeBSD.org
Subject:   ports/94727: Update port: ftp/curl to 7.15.3
Message-ID:  <20060320104845.GA56411@qlovarnika.bg.datamax>
Resent-Message-ID: <200603201050.k2KAoHtu080412@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94727
>Category:       ports
>Synopsis:       Update port: ftp/curl to 7.15.3
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 20 10:50:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
DataMax
>Environment:

>Description:

This PR supersedes ports/94134

Update ftp/curl from 7.15.1 to 7.15.3 -
7.15.1 -> 7.15.2
* added support for SOCKS4
* support for Gopher protocol dropped
* other changes and a lot of bugfixes
7.15.2 -> 7.15.3
* added docs for --ftp-method and CURLOPT_FTP_FILEMETHOD
* fix TFTP packet buffer overflow
* other changes and a lot of bugfixes

This patch does not apply on the new version.
--- files/patch-src::main.c ---
[...]
-          long filetime;
+          time_t filetime;
           curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
[...]
--- files/patch-src::main.c ---

Syncing it is easy but I think it should be removed because
according to curl_easy_getinfo(3) the proper type for the `filetime'
variable is `long':

[...]
CURLINFO_FILETIME
       Pass a pointer to a long to  receive  the  remote  time  of  the
[...]

Even more - `filetime' it is correcly typecast'd to `time_t' when used
afterwards.

Tested in 4, 5 and 6 i386 tinderbox and `make test' on 6 amd64

>How-To-Repeat:

>Fix:

--- curl_7.15.1-7.15.3.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ftp/curl/Makefile,v
retrieving revision 1.76
diff -u -r1.76 Makefile
--- Makefile	9 Jan 2006 16:34:15 -0000	1.76
+++ Makefile	20 Mar 2006 10:43:37 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	curl
-PORTVERSION=	7.15.1
-PORTREVISION=	1
+PORTVERSION=	7.15.3
 CATEGORIES=	ftp ipv6 www
 MASTER_SITES=	http://curl.haxx.se/download/ \
 		${MASTER_SITE_SOURCEFORGE} \
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/ftp/curl/distinfo,v
retrieving revision 1.43
diff -u -r1.43 distinfo
--- distinfo	9 Dec 2005 12:10:41 -0000	1.43
+++ distinfo	20 Mar 2006 10:43:37 -0000
@@ -1,3 +1,3 @@
-MD5 (curl-7.15.1.tar.bz2) = d330d48580bfade58c82d4f295f171f0
-SHA256 (curl-7.15.1.tar.bz2) = 8b1ea75a91ef7d1e00086865eba9a4cf8baefcb212ce451a61348e00b8756324
-SIZE (curl-7.15.1.tar.bz2) = 1437950
+MD5 (curl-7.15.3.tar.bz2) = d71b2ee8febfde2c7dc30a43638ec0d9
+SHA256 (curl-7.15.3.tar.bz2) = 77771db616dee02f21b94c409ed423a72fa7f2b2d65c27395137b0f920388440
+SIZE (curl-7.15.3.tar.bz2) = 1467043
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/ftp/curl/pkg-plist,v
retrieving revision 1.18
diff -u -r1.18 pkg-plist
--- pkg-plist	9 Dec 2005 12:10:41 -0000	1.18
+++ pkg-plist	20 Mar 2006 10:43:37 -0000
@@ -83,6 +83,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/examples/simple.c
 %%PORTDOCS%%%%DOCSDIR%%/examples/simplepost.c
 %%PORTDOCS%%%%DOCSDIR%%/examples/simplessl.c
+%%PORTDOCS%%%%DOCSDIR%%/examples/synctime.c
 %%PORTDOCS%%%%DOCSDIR%%/index.html
 %%PORTDOCS%%%%DOCSDIR%%/libcurl/Makefile
 %%PORTDOCS%%%%DOCSDIR%%/libcurl/Makefile.am
Index: files/patch-src::main.c
===================================================================
RCS file: files/patch-src::main.c
diff -N files/patch-src::main.c
--- files/patch-src::main.c	13 Dec 2003 08:32:10 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- src/main.c.orig	Wed Dec 10 15:14:31 2003
-+++ src/main.c	Wed Dec 10 15:14:48 2003
-@@ -3350,7 +3350,7 @@
-            closed, as is done above here */
-         if(config->remote_time && outs.filename) {
-           /* as libcurl if we got a time. Pretty please */
--          long filetime;
-+          time_t filetime;
-           curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
-           if(filetime >= 0) {
-             struct utimbuf times;
--- curl_7.15.1-7.15.3.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060320104845.GA56411>