From: Michihiro NAKAJIMA Date: Wed, 14 Sep 2011 09:34:26 +0000 (-0400) Subject: We cannot get proper an xml output from an earlier version of libxml. X-Git-Tag: v3.0.0a~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cc09f4402a2e8adea5ff54d3f5082d19fb6baa;p=thirdparty%2Flibarchive.git We cannot get proper an xml output from an earlier version of libxml. There may be a way to work around it, but right now I cannot find out how to. I have to, therefore, disable the xar writer if libxlm version is less than 2.7.3, which version Mac Snow Leopard has. SVN-Revision: 3711 --- diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c index 8079e8dcf..bdf106129 100644 --- a/libarchive/archive_write_set_format_xar.c +++ b/libarchive/archive_write_set_format_xar.c @@ -79,7 +79,8 @@ __FBSDID("$FreeBSD$"); * */ -#if !defined(HAVE_LIBXML_XMLWRITER_H) ||\ +#if !(defined(HAVE_LIBXML_XMLWRITER_H) && defined(LIBXML_VERSION) &&\ + LIBXML_VERSION >= 20703) ||\ !defined(HAVE_ZLIB_H) || \ !defined(ARCHIVE_HAS_MD5) || !defined(ARCHIVE_HAS_SHA1) /*