Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2007 14:53:40 +0300
From:      Eygene Ryabinkin <rea-fbsd@codelabs.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        roam@FreeBSD.org
Subject:   ports/109670: update of ports/ftp/curl to the version 7.16.1
Message-ID:  <E1HMNNM-000EkC-Rq@pobox.codelabs.ru>
Resent-Message-ID: <200702281200.l1SC0CxB009484@freefall.freebsd.org>

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

>Number:         109670
>Category:       ports
>Synopsis:       update of ports/ftp/curl to the version 7.16.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 28 12:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Code Labs
>Environment:
System: FreeBSD XXX 6.2-STABLE FreeBSD 6.2-STABLE #13: Mon Feb 12 15:59:07 MSK 2007 root@XXX:/usr/obj/usr/src/sys/XXX i386
>Description:

Curl 7.16.1 was out at January 29th 2007 and the most notable fix
as compared with 7.16.0 is the 'SIGSEGV when disconnecting on a
transfer on a re-used handle when the host name didn't resolve'.
I hit the SEGV when tried to upgrade the ports/devel/git to the
recent version. 7.16.1 didn't solved my problems, but I've already
identified most of them and hopefully the patch will be submitted
to the curl developers.

>How-To-Repeat:
See http://curl.haxx.se/docs/verdiff.cgi?r1=7.16.1&r2=7.16.0 and
http://curl.haxx.se/changes.html for the 7.16.1 fixes.
>Fix:
Attached is the patch that does the upgrade to 7.16.1 and adds
the 'DEBUG' option to produce curl library with debugging functions.

diff -urN curl.orig/Makefile curl/Makefile
--- curl.orig/Makefile	Tue Feb 27 13:31:52 2007
+++ curl/Makefile	Tue Feb 27 13:32:40 2007
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	curl
-PORTVERSION=	7.16.0
-PORTREVISION=	1
+PORTVERSION=	7.16.1
 CATEGORIES=	ftp ipv6 www
 MASTER_SITES=	http://curl.haxx.se/download/ \
 		${MASTER_SITE_SOURCEFORGE} \
@@ -57,7 +56,8 @@
 		KERBEROS4 "Kerberos 4 authentication" off \
 		LIBIDN "Internationalized Domain Names via libidn" off \
 		NTLM "NTLM authentication" off \
-		OPENSSL "OpenSSL support" on
+		OPENSSL "OpenSSL support" on \
+		DEBUG "Debugging code" off
 
 .include <bsd.port.pre.mk>
 
@@ -127,6 +127,10 @@
 CONFIGURE_ARGS+=	--enable-ntlm
 .else
 CONFIGURE_ARGS+=	--disable-ntlm
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=	--enable-debug
 .endif
 
 post-patch:
diff -urN curl.orig/distinfo curl/distinfo
--- curl.orig/distinfo	Tue Feb 27 13:31:52 2007
+++ curl/distinfo	Tue Feb 27 13:34:07 2007
@@ -1,3 +1,3 @@
-MD5 (curl-7.16.0.tar.bz2) = 5819f56e93d04cde2992fe88b54cbfad
-SHA256 (curl-7.16.0.tar.bz2) = fc8dcda5a933c370c15c832bf1e7316a0690f473fdd6000454d233edaa33bc23
-SIZE (curl-7.16.0.tar.bz2) = 1566391
+MD5 (curl-7.16.1.tar.bz2) = acdab0b0467c55e10ed02d2afed80575
+SHA256 (curl-7.16.1.tar.bz2) = 257b204acf1d80314694b4cf63cccbc7c70bccee75cb3d9924bbb061ec6bccef
+SIZE (curl-7.16.0.tar.bz2) = 1592074
diff -urN curl.orig/files/patch-configure curl/files/patch-configure
--- curl.orig/files/patch-configure	Tue Feb 27 13:31:52 2007
+++ curl/files/patch-configure	Tue Feb 27 13:36:35 2007
@@ -11,12 +11,3 @@
      ;;
    esac
  
-@@ -35638,7 +35640,7 @@
- main ()
- {
- #ifndef basename
--  char *p = (char *) basename;
-+  char *(*p)(const char *) = basename;
-   return !p;
- #endif
- 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1HMNNM-000EkC-Rq>