From nobody@FreeBSD.org  Fri Jun 17 22:17:30 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6459C1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jun 2011 22:17:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 3AE3D8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jun 2011 22:17:30 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5HMHUoY041782
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Jun 2011 22:17:30 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p5HMHTP8041774;
	Fri, 17 Jun 2011 22:17:29 GMT
	(envelope-from nobody)
Message-Id: <201106172217.p5HMHTP8041774@red.freebsd.org>
Date: Fri, 17 Jun 2011 22:17:29 GMT
From: Jim Vanderveen <jim.vanderveen@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cfengine3 lists PCRE as a build dependency, but it should be a library
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157965
>Category:       ports
>Synopsis:       sysutils/cfengine3 lists PCRE as a build dependency, but it should be a library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 17 22:20:05 UTC 2011
>Closed-Date:    Mon Aug 08 19:41:25 UTC 2011
>Last-Modified:  Mon Aug  8 19:50:10 UTC 2011
>Originator:     Jim Vanderveen
>Release:        FreeBSD 7.4-RELEASE i386
>Organization:
CSUS Office of Water Programs
>Environment:
FreeBSD db1.example.com 7.4-RELEASE FreeBSD 7.4-RELEASE #0: Thu Feb 17 03:51:56 UTC 2011 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Port sysutils/cfengine3 (vesion 3.1.5) with PCRE option marks PCRE as a build dependency. If this is built with 'portmaster --delete-build-only', PCRE gets built (along with cfengine), but is deleted after cfengine
is installed. Running cfengine utilities subsequently error out with "library not found".

>How-To-Repeat:
Fresh install of FreeBSD with ports collection. 

$ cd /usr/ports
$ (cd ports-mgmt/portmaster/ && sudo make install clean)
===>  Installing for portmaster-3.9
(snip)
===>  Cleaning for portmaster-3.9
$ sudo portmaster --delete-build-only sysutils/cfengine3
===>>> The following actions will be taken if you choose to proceed:
	Install sysutils/cfengine3
	Install devel/pcre
(snip)
===>>> The following actions were performed:
	Installation of devel/pcre (pcre-8.12)
	Installation of sysutils/cfengine3 (cfengine-3.1.5)

===>>> Deleting installed build-only dependencies
$ cf-promises 
/libexec/ld-elf.so.1: Shared object "libpcre.so.0" not found, required by "cf-promises"

>Fix:
Patch the Makefile thus:

$ diff -u Makefile*
--- Makefile	2011-05-22 11:57:31.000000000 -0700
+++ Makefile.new	2011-06-17 12:00:51.000000000 -0700
@@ -34,7 +34,7 @@
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_PCRE)
-BUILD_DEPENDS+=	pcre-config:${PORTSDIR}/devel/pcre
+LIB_DEPENDS+=   pcre.0:${PORTSDIR}/devel/pcre
 CONFIGURE_ARGS+=	--with-pcre=${LOCALBASE}
 .endif
 


Patch attached with submission follows:

--- Makefile	2011-05-22 11:57:31.000000000 -0700
+++ Makefile.new	2011-06-17 12:00:51.000000000 -0700
@@ -34,7 +34,7 @@
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_PCRE)
-BUILD_DEPENDS+=	pcre-config:${PORTSDIR}/devel/pcre
+LIB_DEPENDS+=   pcre.0:${PORTSDIR}/devel/pcre
 CONFIGURE_ARGS+=	--with-pcre=${LOCALBASE}
 .endif
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cy 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jun 18 00:30:43 UTC 2011 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157965 
State-Changed-From-To: open->closed 
State-Changed-By: cy 
State-Changed-When: Mon Aug 8 19:38:43 UTC 2011 
State-Changed-Why:  
Committed. Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157965 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/157965: commit references a PR
Date: Mon,  8 Aug 2011 19:41:28 +0000 (UTC)

 cy          2011-08-08 19:41:12 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/cfengine3   Makefile 
   Log:
   eplace build dependency with library dependency.
   
   PR:             157965
   Submitted by:   Jim Vanderveen <jim.vanderveen@gmail.com>
   
   Revision  Changes    Path
   1.57      +2 -1      ports/sysutils/cfengine3/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
