Bug 178285 - ftp/wget missing dependency on pcre
ftp/wget missing dependency on pcre
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Vasil Dimov
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-01 22:20 UTC by Pawel Pekala
Modified: 2013-05-13 15:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pekala freebsd_committer 2013-05-01 22:20:00 UTC
Package links to devel/pcre when available on system:

checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
configure: creating ./config.status

and this fact is not registered:

[corn:ports/ftp/wget]# pkg info -d wget-1.14
wget-1.14 depends on:
gettext-0.18.1.1_1
libiconv-1.14_1
libidn-1.26
pkgconf-0.9.2
Comment 1 Edwin Groothuis freebsd_committer 2013-05-01 22:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vd

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2013-05-13 14:52:49 UTC
Author: vd
Date: Mon May 13 13:52:37 2013
New Revision: 318083
URL: http://svnweb.freebsd.org/changeset/ports/318083

Log:
  ftp/wget: hook a dependency to devel/pcre
  
  PR:		ports/178285
  Submitted by:	pawel@

Modified:
  head/ftp/wget/Makefile

Modified: head/ftp/wget/Makefile
==============================================================================
--- head/ftp/wget/Makefile	Mon May 13 13:51:49 2013	(r318082)
+++ head/ftp/wget/Makefile	Mon May 13 13:52:37 2013	(r318083)
@@ -3,6 +3,7 @@
 
 PORTNAME=	wget
 DISTVERSION=	1.14
+PORTREVISION=	1
 CATEGORIES=	ftp www ipv6
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	wget
@@ -17,6 +18,16 @@ USE_PERL5_BUILD=yes
 GNU_CONFIGURE=	yes
 MAKE_JOBS_SAFE=	yes
 
+# Wget can handle the absence of pcre, but we hook an unconditional dependency
+# to pcre because if it is present in the system during compile time, then
+# wget will pick it and link with it. Thus the wget executable will later
+# depend on the presence of the pcre library. Wget does not support to
+# explicitly ignore the pcre library if it is present in the system and there
+# is no elegant way to do that.
+LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
+CPPFLAGS=	-I${LOCALBASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib
+
 OPTIONS_RADIO=	SSL
 OPTIONS_RADIO_SSL=GNUTLS OPENSSL
 OPTIONS_DEFINE=	IPV6 NLS IDN
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Vasil Dimov freebsd_committer 2013-05-13 14:52:56 UTC
State Changed
From-To: open->closed

Added a dependency to devel/pcre, thanks for reporting!