After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 421480 - Make it possible to build without libxml2 with --disable-loadsave and --enable-binary-registry
Make it possible to build without libxml2 with --disable-loadsave and --enabl...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal minor
: 0.10.13
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-22 13:39 UTC by Peter Kjellerstedt
Modified: 2007-04-20 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make it possible to build without libxml2 for gstreamer (13.60 KB, patch)
2007-03-22 13:41 UTC, Peter Kjellerstedt
none Details | Review
Make it possible to build without libxml2 for gst-plugins-base (2.90 KB, patch)
2007-03-22 13:41 UTC, Peter Kjellerstedt
none Details | Review

Description Peter Kjellerstedt 2007-03-22 13:39:44 UTC
Please describe the problem:
Even if one uses --disable-loadsave and --enable-binary-registry one still needs to have libxml2 for GStreamer to build.  The attached patches solves this.

Some extra comments about the patches:

gstreamer.patch:
* Removes all references to GST_DISABLE_LOADSAVE_REGISTRY.  Instead GST_USING_XML is used where XML support is required.
* gst/gstobject.[ch] checks GST_DISABLE_LOADSAVE rather than GST_DISABLE_LOADSAVE_REGISTRY since those functions have nothing to do with the registry AFAIK.
* Also fixes an incorrect reference to $GST_GST_DISABLE_DEBUG in configure.ac.

gst-plugins-base.patch:
* tests/check/elements/playbin.c checks GST_DISABLE_REGISTRY rather than GST_DISABLE_LOADSAVE_REGISTRY since it has no dependencies on the load/save functionality AFAIK.


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Peter Kjellerstedt 2007-03-22 13:41:17 UTC
Created attachment 85108 [details] [review]
Make it possible to build without libxml2 for gstreamer
Comment 2 Peter Kjellerstedt 2007-03-22 13:41:39 UTC
Created attachment 85109 [details] [review]
Make it possible to build without libxml2 for gst-plugins-base
Comment 3 Tim-Philipp Müller 2007-03-22 21:48:14 UTC
Isn't this the same as bug #413123 ?
Comment 4 Peter Kjellerstedt 2007-03-22 23:33:38 UTC
They both seem to solve the same problem. However, I think my solution is more complete and also cleans up a number of places where GST_DISABLE_LOADSAVE_REGISTRY is used, but where the correct thing is to test either GST_DISABLE_LOADSAVE or GST_DISABLE_REGISTRY.

Two things I noted when I looked at the other report with regard to my solution:

1) Mine does away with GST_DISABLE_LOADSAVE_REGISTRY completely since I am not sure when it should be defined with the binary regitry added to the mix (i.e., should it be defined when neither load/save nor registry is supported, or should it be defined when XML isn't used), and instead adds GST_USING_XML. If it is wanted to keep the old define for backwards compatibility with external plugins, it should be easy enough to just add the define back in gstconfig.h and call it obsolete.

2) I missed adding gstregistrybinary.c to EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES in gstreamer/gst/Makefile.am.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2007-04-20 10:44:06 UTC
Fixed in CVS in a slightly different way.

@Peter, thanks a lot for the patch still, as I wouldn't have thought about the gst-plugins-base part.