[PATCH] textproc/libxml2: respect WITHOUT_ICONV
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Apr 22 18:51:17 UTC 2012
>Submitter-Id: current-users
>Originator: Sunpoet Po-Chuan Hsieh
>Organization: The FreeBSD Project
>Confidential: no
>Synopsis: [PATCH] textproc/libxml2: respect WITHOUT_ICONV
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 9.0-STABLE amd64
>Environment:
System: FreeBSD bonjour.sunpoet.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Mar 19 09:07:46 CST 2012
>Description:
- Respect WITHOUT_ICONV
Without this patch, LIBXML_ICONV_ENABLED will be defined by
${LOCALBASE}/include/libxml2/libxml/xmlversion.h. While building some
ports (e.g. textproc/p5-XML-LibXML) which include <libxml/encoding.h>,
it leads to a compile error of missing header <iconv.h>.
Port maintainer (gnome at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_5 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:
--- libxml2-2.7.8_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/libxml2/Makefile,v
retrieving revision 1.177
diff -u -u -r1.177 Makefile
--- Makefile 16 Mar 2012 09:02:36 -0000 1.177
+++ Makefile 22 Apr 2012 18:43:27 -0000
@@ -40,6 +40,8 @@
.if !defined(WITHOUT_ICONV)
USE_ICONV= yes
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--with-iconv=no
.endif
.if !defined(MASTERDIR)
--- libxml2-2.7.8_2.patch ends here ---
More information about the freebsd-gnome
mailing list