libxml2 no longer compiles.

John Hein gnome-jfbml at snkmail.com
Wed Apr 10 18:59:17 UTC 2013


Jung-uk Kim wrote at 14:16 -0400 on Apr 10, 2013:
 > IMHO, we should get rid of CPPFLAGS and LDFLAGS altogether because
 > they serve no purpose here.

Unfortunately, if you do that, the libxml2 build still fails
with if lzmalib is installed.

I agree that we can get rid of the ${LOCALBASE} parts of
CPPFLAGS & LDFLAGS (the -I/usr/local/include and -L/usr/local/lib
are added by configure due to --with-iconv).

But we still need some way to deal with the lzmalib conflict
by doing one of the other things I mentioned or force the
use of the base lzma (or ??)...

Index: textproc/libxml2/Makefile
===================================================================
--- textproc/libxml2/Makefile	(revision 315774)
+++ textproc/libxml2/Makefile	(working copy)
@@ -28,8 +28,8 @@
 		--with-html-dir=${PREFIX}/share/doc \
 		--with-html-subdir=${PORTNAME} \
 		--without-python
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+CPPFLAGS+=	-I/usr/include
+LDFLAGS+=	-L/usr/lib
 
 .if !defined(MASTERDIR)
 MAN1=		xml2-config.1 xmllint.1 xmlcatalog.1


One other option would be to add a dependency on the ports
version of archivers/lzma and force libxml2 to use that, but
that seems like a waste when the one in base works fine
(after freebsd 7.x of course).



More information about the freebsd-gnome mailing list