All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libxmlpp: bump to version 5.2.0
@ 2024-02-21 22:46 Fabrice Fontaine
  2024-05-11  7:01 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-02-21 22:46 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Drop patch (already in version)

https://github.com/libxmlplusplus/libxmlplusplus/blob/5.2.0/NEWS

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...e-it-compatible-with-libxml2--2-12-0.patch | 145 ------------------
 package/libxmlpp/libxmlpp.hash                |   4 +-
 package/libxmlpp/libxmlpp.mk                  |   4 +-
 3 files changed, 4 insertions(+), 149 deletions(-)
 delete mode 100644 package/libxmlpp/0001-Make-it-compatible-with-libxml2--2-12-0.patch

diff --git a/package/libxmlpp/0001-Make-it-compatible-with-libxml2--2-12-0.patch b/package/libxmlpp/0001-Make-it-compatible-with-libxml2--2-12-0.patch
deleted file mode 100644
index b9100b4966..0000000000
--- a/package/libxmlpp/0001-Make-it-compatible-with-libxml2--2-12-0.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-From 49471812d57adfb22dcce3cbea1a8956658731b9 Mon Sep 17 00:00:00 2001
-From: Kjell Ahlstedt <kjellahlstedt@gmail.com>
-Date: Sat, 18 Nov 2023 18:34:07 +0100
-Subject: [PATCH] Make it compatible with libxml2 >= 2.12.0
-
-* libxml++/document.cc:
-* libxml++/dtd.cc:
-* libxml++/nodes/entitydeclaration.cc:
-* libxml++/nodes/entityreference.cc:
-* libxml++/validators/relaxngvalidator.cc: Modify #include directives.
-* libxml++/keepblanks.cc: Ignore deprecation of xmlKeepBlanksDefault().
-* tests/saxparser_chunk_parsing_inconsistent_state/main.cc:
-Accept that MySaxParser::on_start_document() can be called before
-MySaxParser::on_error().
-
-Upstream: https://github.com/libxmlplusplus/libxmlplusplus/commit/49471812d57adfb22dcce3cbea1a8956658731b9
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
----
- libxml++/document.cc                                   |  1 +
- libxml++/dtd.cc                                        |  2 +-
- libxml++/keepblanks.cc                                 |  5 ++++-
- libxml++/nodes/entitydeclaration.cc                    |  2 +-
- libxml++/nodes/entityreference.cc                      |  2 +-
- libxml++/validators/relaxngvalidator.cc                |  1 +
- .../saxparser_chunk_parsing_inconsistent_state/main.cc | 10 +++++++++-
- 7 files changed, 18 insertions(+), 5 deletions(-)
-
-diff --git a/libxml++/document.cc b/libxml++/document.cc
-index da0a8f5..d5476c6 100644
---- a/libxml++/document.cc
-+++ b/libxml++/document.cc
-@@ -16,6 +16,7 @@
- 
- #include <libxml/tree.h>
- #include <libxml/xinclude.h>
-+#include <libxml/xmlsave.h>
- #include <libxml/parser.h> // XML_PARSE_NOXINCNODE, XML_PARSE_NOBASEFIX
- 
- #include <iostream>
-diff --git a/libxml++/dtd.cc b/libxml++/dtd.cc
-index 238b3a0..8014c07 100644
---- a/libxml++/dtd.cc
-+++ b/libxml++/dtd.cc
-@@ -8,7 +8,7 @@
- #include <libxml++/exceptions/parse_error.h>
- #include <libxml++/io/istreamparserinputbuffer.h>
- 
--#include <libxml/tree.h>
-+#include <libxml/parser.h>
- 
- #include <sstream>
- 
-diff --git a/libxml++/keepblanks.cc b/libxml++/keepblanks.cc
-index 4228b8d..56b00cf 100644
---- a/libxml++/keepblanks.cc
-+++ b/libxml++/keepblanks.cc
-@@ -5,8 +5,11 @@
-  * included with libxml++ as the file COPYING.
-  */
- 
--#include <libxml++/keepblanks.h>
-+// xmlKeepBlanksDefault() is deprecated since libxml2 2.12.0.
-+// Ignore deprecations here.
-+#define XML_DEPRECATED
- 
-+#include <libxml++/keepblanks.h>
- #include <libxml/globals.h>
- 
- namespace xmlpp
-diff --git a/libxml++/nodes/entitydeclaration.cc b/libxml++/nodes/entitydeclaration.cc
-index 0a6390e..d5bfa75 100644
---- a/libxml++/nodes/entitydeclaration.cc
-+++ b/libxml++/nodes/entitydeclaration.cc
-@@ -5,7 +5,7 @@
-  */
- 
- #include <libxml++/nodes/entitydeclaration.h>
--#include <libxml/tree.h>
-+#include <libxml/entities.h>
- 
- namespace xmlpp
- {
-diff --git a/libxml++/nodes/entityreference.cc b/libxml++/nodes/entityreference.cc
-index 19b1b22..278a126 100644
---- a/libxml++/nodes/entityreference.cc
-+++ b/libxml++/nodes/entityreference.cc
-@@ -6,7 +6,7 @@
- 
- #include <libxml++/nodes/entityreference.h>
- 
--#include <libxml/tree.h>
-+#include <libxml/entities.h>
- 
- namespace xmlpp
- {
-diff --git a/libxml++/validators/relaxngvalidator.cc b/libxml++/validators/relaxngvalidator.cc
-index 9bb10c2..68a814c 100644
---- a/libxml++/validators/relaxngvalidator.cc
-+++ b/libxml++/validators/relaxngvalidator.cc
-@@ -22,6 +22,7 @@
- #include "libxml++/parsers/domparser.h"
- #include "libxml++/relaxngschema.h"
- 
-+#include <libxml/tree.h>
- #include <libxml/relaxng.h>
- 
- namespace xmlpp
-diff --git a/tests/saxparser_chunk_parsing_inconsistent_state/main.cc b/tests/saxparser_chunk_parsing_inconsistent_state/main.cc
-index 07cc3ef..53f55b3 100644
---- a/tests/saxparser_chunk_parsing_inconsistent_state/main.cc
-+++ b/tests/saxparser_chunk_parsing_inconsistent_state/main.cc
-@@ -24,10 +24,14 @@
- 
- class MySaxParser : public xmlpp::SaxParser
- {
-+public:
-+  bool throw_on_start_doc = true;
-+
- protected:
-   void on_start_document() override
-   {
--    throw std::runtime_error("some custom runtime exception");
-+    if (throw_on_start_doc)
-+      throw std::runtime_error("some custom runtime exception");
-   }
-   void on_error(const xmlpp::ustring& /* text */) override
-   {
-@@ -43,6 +47,9 @@ int main()
-     bool exceptionThrown = false;
-     try
-     {
-+      // Depending on the libxml2 version, MySaxParser::on_start_document()
-+      // may or may not be called before MySaxParser::on_error().
-+      parser.throw_on_start_doc = false;
-       parser.parse_chunk("<?");
-       parser.finish_chunk_parsing();
-     }
-@@ -61,6 +68,7 @@ int main()
-     exceptionThrown = false;
-     try
-     {
-+      parser.throw_on_start_doc = true;
-       std::stringstream ss("<root></root>");
-       parser.parse_stream(ss);
-     }
diff --git a/package/libxmlpp/libxmlpp.hash b/package/libxmlpp/libxmlpp.hash
index 1c1342a105..84084b1e35 100644
--- a/package/libxmlpp/libxmlpp.hash
+++ b/package/libxmlpp/libxmlpp.hash
@@ -1,5 +1,5 @@
-# From https://download.gnome.org/sources/libxml++/5.0/libxml++-5.0.2.sha256sum
-sha256  7c17cc3e5a2214314dee5a1354f4b436f266ded6185232a0534f352a76240d5a  libxml++-5.0.2.tar.xz
+# From https://download.gnome.org/sources/libxml++/5.2/libxml++-5.2.0.sha256sum
+sha256  e41b8eae55210511585ae638615f00db7f982c0edea94699865f582daf03b44f  libxml++-5.2.0.tar.xz
 
 # Hash for license file
 sha256  a190dc9c8043755d90f8b0a75fa66b9e42d4af4c980bf5ddc633f0124db3cee7  COPYING
diff --git a/package/libxmlpp/libxmlpp.mk b/package/libxmlpp/libxmlpp.mk
index dacd5c1eae..e8fbb75b61 100644
--- a/package/libxmlpp/libxmlpp.mk
+++ b/package/libxmlpp/libxmlpp.mk
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-LIBXMLPP_VERSION_MAJOR = 5.0
-LIBXMLPP_VERSION = $(LIBXMLPP_VERSION_MAJOR).2
+LIBXMLPP_VERSION_MAJOR = 5.2
+LIBXMLPP_VERSION = $(LIBXMLPP_VERSION_MAJOR).0
 LIBXMLPP_LICENSE = LGPL-2.1 (library), LGPL-2.0+ (examples)
 LIBXMLPP_LICENSE_FILES = COPYING
 LIBXMLPP_SOURCE = libxml++-$(LIBXMLPP_VERSION).tar.xz
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-11  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 22:46 [Buildroot] [PATCH 1/1] package/libxmlpp: bump to version 5.2.0 Fabrice Fontaine
2024-05-11  7:01 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.