dbus-1.2.12-launch-helper-xml-fix.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. dbus-daemon-launch-helper: fix build with libxml
  2. dbus-daemon-launch-helper links with the trival config parser, which
  3. doesn't provide bus_config_parser_check_doctype(), like the big parser does.
  4. The libxml loader unfortunately wants to call it, so this breaks the build.
  5. Fix it by including a dummy bus_config_parser_check_doctype() in the trivial
  6. config parser.
  7. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  8. ---
  9. bus/config-parser-trivial.c | 8 ++++++++
  10. 1 file changed, 8 insertions(+)
  11. Index: dbus-1.2.12/bus/config-parser-trivial.c
  12. ===================================================================
  13. --- dbus-1.2.12.orig/bus/config-parser-trivial.c
  14. +++ dbus-1.2.12/bus/config-parser-trivial.c
  15. @@ -310,6 +310,14 @@
  16. return &parser->service_dirs;
  17. }
  18. +dbus_bool_t
  19. +bus_config_parser_check_doctype (BusConfigParser *parser,
  20. + const char *doctype,
  21. + DBusError *error)
  22. +{
  23. + return TRUE;
  24. +}
  25. +
  26. #ifdef DBUS_BUILD_TESTS
  27. #include <stdio.h>
  28. #include "test.h"