ports/180896: sysutils/cfengine35: can't use edit_xml because libxml2 not found

Lawrence Chen beastie at tardisi.com
Sat Jul 27 20:50:01 UTC 2013


>Number:         180896
>Category:       ports
>Synopsis:       sysutils/cfengine35: can't use edit_xml because libxml2 not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 27 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.1-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	Can't use edit_xml in promises, because reports that LIBXML2 is
	required for it.  But, libxml2 is present.
>How-To-Repeat:
	run a promise that uses edit_xml, messages of
	"cannot edit_xml without LIBXML2" appear.
>Fix:
	configure fails to find -lxml2, because it doesn't call
	"xml2-config --libs" to get that -L/usr/local/lib is needed.

	So, to get things working on my FreeBSD systems, I added this patch:

	--- files/patch-configure.orig	1969-12-31 18:00:00.000000000 -0600
	+++ files/patch-configure	2013-07-27 15:33:51.954665402 -0500
	@@ -0,0 +1,10 @@
	+--- configure.orig	2013-07-11 03:26:15.000000000 -0500
	++++ configure	2013-07-26 19:51:44.843664757 -0500
	+@@ -15122,6 +15122,7 @@
	+    if test "x$cross_compiling" = "xno"; then
	+       if test x`which $XML2_CONFIG` != x ; then
	+          CPPFLAGS="$CPPFLAGS `$XML2_CONFIG --cflags`"
	++         LDFLAGS="$LDFLAGS `$XML2_CONFIG --libs`"
	+       fi
	+    fi
	+ 

	Though port should probably have a dependency for libxml2, so
	probably not the correct solution to this problem.

	


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


More information about the freebsd-ports-bugs mailing list