GNOME Bugzilla – Bug 413123
No XML dependency patch
Last modified: 2007-04-20 12:38:57 UTC
"Beta" patch to remove the XML dependency. When building with --disable-loadsave and --enable-binary-registry, you won't need libxml2 anymore. If so, GST_DISABLE_LOADSAVE_REGISTRY will be defined, but the define name isn't quite right. Maybe renaming it to GST_DISABLE_XML could be better, but would break backward compatibility.
Created attachment 83551 [details] [review] No XML dependency patch
Wouldn't it be better * to have GST_DISABLE_XML in gstconfig.h.in * to remove the include from the config and include it where needed #ifndef GST_DISABLE_XML #include <libxml/parser.h>" #endif * keep GST_DISABLE_LOADSAVE_REGISTRY for backwards compatibillity (add FIXME 0.11 comment)
Yes, this way the patch is even cleaner. I was just preserving backward compatibility but this is definitely something to be modified.
I don't think we need: +if test "x$XML_DEP" = "xno"; then +GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir) $GLIB_CFLAGS \$(GST_OPTION_CFLAGS)" +else GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir) $GLIB_CFLAGS $XML_CFLAGS \$(GST_OPTION_CFLAGS)" +fi as if AG_GST_LIBXML2_CHECK(2.4.9) is not run, XML_CFLAGS is empty.
fixed in CVS as discussed. @Mathieu, thanks for the patches still.