ports/157965: cfengine3 lists PCRE as a build dependency, but it should be a library
Jim Vanderveen
jim.vanderveen at gmail.com
Fri Jun 17 22:20:06 UTC 2011
>Number: 157965
>Category: ports
>Synopsis: cfengine3 lists PCRE as a build dependency, but it should be a library
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 17 22:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list