Bug 157965 - sysutils/cfengine3 lists PCRE as a build dependency, but it should be a library
Summary: sysutils/cfengine3 lists PCRE as a build dependency, but it should be a library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 23:20 UTC by Jim Vanderveen
Modified: 2011-08-08 20:50 UTC (History)
0 users

See Also:


Attachments
file.diff (323 bytes, patch)
2011-06-17 23:20 UTC, Jim Vanderveen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Vanderveen 2011-06-17 23:20:05 UTC
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".

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:
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"
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-06-18 01:30:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

Fix synopsis and assign.
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2011-08-08 20:38:43 UTC
State Changed
From-To: open->closed

Committed. Thanks.
Comment 3 dfilter service freebsd_committer freebsd_triage 2011-08-08 20:41:28 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"