Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2013 13:56:10 GMT
From:      "Matthew X. Economou" <xenophon+freebsd@irtnog.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178688: Generalize c-ares library dependency in ftp/curl port's Makefile
Message-ID:  <201305161356.r4GDuA75075519@oldred.FreeBSD.org>
Resent-Message-ID: <201305161400.r4GE01D3021623@freefall.freebsd.org>

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

>Number:         178688
>Category:       ports
>Synopsis:       Generalize c-ares library dependency in ftp/curl port's Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 16 14:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matthew X. Economou
>Release:        9.1-RELEASE
>Organization:
IRTNOG
>Environment:
FreeBSD masip123bsddev.irtnog.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The ftp/curl port can be configured to use the c-ares asynchronous name resolution library.  If this library dependency is enabled, the ftp/curl port currently looks for a specific version of the c-ares shared library, version 2.  However, the current shared library version is 3 (/usr/local/lib/libcares.so.3).  curl builds against the new library without any issues, and the resulting binary works in my limited testing.  I suggest removing the library version requirement (see attached patch).
>How-To-Repeat:
cd /usr/ports/ftp/curl
make BATCH=yes WITH_CARES=yes

>Fix:


Patch attached with submission follows:

Index: ftp/curl/Makefile
===================================================================
--- ftp/curl/Makefile	(revision 318312)
+++ ftp/curl/Makefile	(working copy)
@@ -106,7 +106,7 @@
 .endif
 
 .if ${PORT_OPTIONS:MCARES}
-LIB_DEPENDS+=	cares.2:${PORTSDIR}/dns/c-ares
+LIB_DEPENDS+=	cares:${PORTSDIR}/dns/c-ares
 CONFIGURE_ARGS+=	--enable-ares=${LOCALBASE}
 .else
 CONFIGURE_ARGS+=	--disable-ares


>Release-Note:
>Audit-Trail:
>Unformatted:



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