0002-libsoup-soup-xmlrpc-soup-xmlrpc-old-add-missing-libx.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 8a21b58b45edbf11d9041f884bb9c42e6440104c Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Tue, 26 Dec 2023 14:38:58 +0100
  4. Subject: [PATCH] libsoup/{soup-xmlrpc,soup-xmlrpc-old}: add missing
  5. <libxml/parser.h> include
  6. Since libxml2 2.12.1, including <libxml/parser.h> is needed to get the
  7. prototype of xmlParseMemory(), causing a build breakage of libsoup
  8. with a recent version of libxml2.
  9. Upstream: Not Applicable
  10. [libsoup2 is not maintained upstream, and libsoup3 no longer contains
  11. the XMLRPC code. We are keepin libsoup2 in Buildroot for compatibility
  12. with packages that haven't moved to libsoup3 yet.]
  13. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  14. ---
  15. libsoup/soup-xmlrpc-old.c | 1 +
  16. libsoup/soup-xmlrpc.c | 1 +
  17. 2 files changed, 2 insertions(+)
  18. diff --git a/libsoup/soup-xmlrpc-old.c b/libsoup/soup-xmlrpc-old.c
  19. index c57086b6..dd51de53 100644
  20. --- a/libsoup/soup-xmlrpc-old.c
  21. +++ b/libsoup/soup-xmlrpc-old.c
  22. @@ -12,6 +12,7 @@
  23. #include <string.h>
  24. #include <libxml/tree.h>
  25. +#include <libxml/parser.h>
  26. #include "soup-xmlrpc-old.h"
  27. #include "soup.h"
  28. diff --git a/libsoup/soup-xmlrpc.c b/libsoup/soup-xmlrpc.c
  29. index 42dcda9c..b0132d26 100644
  30. --- a/libsoup/soup-xmlrpc.c
  31. +++ b/libsoup/soup-xmlrpc.c
  32. @@ -18,6 +18,7 @@
  33. #include <string.h>
  34. #include <errno.h>
  35. #include <libxml/tree.h>
  36. +#include <libxml/parser.h>
  37. #include "soup-xmlrpc.h"
  38. #include "soup.h"
  39. --
  40. 2.43.0