Control: tags -1 patch

Dear Maintainer,

Please find in attachment a debdiff that make src:libofx
build against libxml++-4.0 instead of libxml++2.6

Best regards,
Sébastien
--- a/debian/control	2024-02-28 15:25:59.000000000 +0100
+++ b/debian/control	2026-02-17 10:31:54.410373733 +0100
@@ -9,7 +9,7 @@
                help2man,
                libcurl4-gnutls-dev,
                libosp-dev,
-               libxml++2.6-dev,
+               libxml++-4.0-dev,
                perl
 Standards-Version: 4.6.1
 Vcs-Browser: https://salsa.debian.org/debian/libofx
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/series	2026-02-17 11:20:30.877238902 +0100
@@ -0,0 +1 @@
+libxml++4.patch
--- a/debian/patches/libxml++4.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/libxml++4.patch	2026-02-17 11:18:45.242585345 +0100
@@ -0,0 +1,62 @@
+Description: Upgrade dependency from libxml++2.6-dev to libxml++-4.0-dev
+Bug-Debian: http://bugs.debian.org/1121320
+Author: Sébastien Noel <[email protected]>
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -74,7 +74,7 @@ if (ENABLE_OFXCONNECT)
+     set_package_properties(PkgConfig PROPERTIES TYPE REQUIRED PURPOSE "ENABLE_OFXCONNECT is ON, so we need PkgConfig to locate the libxml++ library")
+ 
+     if (PkgConfig_FOUND)
+-        pkg_check_modules(LIBXMLPP REQUIRED IMPORTED_TARGET libxml++-2.6>=2.6)
++        pkg_check_modules(LIBXMLPP REQUIRED IMPORTED_TARGET libxml++-4.0)
+         #TODO: if not found, handle the feature_summary by hand somehow
+     endif ()
+ endif ()
+--- a/configure.ac
++++ b/configure.ac
+@@ -297,11 +297,11 @@ PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.
+          AC_MSG_WARN([libcurl is not available. ofxconnect (Direct connect samples) will NOT be built.])
+         ])
+ 
+-PKG_CHECK_MODULES(LIBXMLPP,libxml++-2.6 >= 2.6,
++PKG_CHECK_MODULES(LIBXMLPP,libxml++-4.0,
+ 	[
+ 	AC_DEFINE(HAVE_LIBXMLPP, 1, [Defined if libxml++ is available])
+ 	have_libxmlpp=yes],
+-        [AC_MSG_WARN([libxml++ 2.6 is not available. ofxconnect (Direct connect samples) will NOT be built.])
++        [AC_MSG_WARN([libxml++ 4.0 is not available. ofxconnect (Direct connect samples) will NOT be built.])
+ 	have_libxmlpp=no])
+ 
+ #PKG_CHECK_MODULES(QT,qt-mt >= 3.2,
+--- a/ofxconnect/nodeparser.cpp
++++ b/ofxconnect/nodeparser.cpp
+@@ -33,7 +33,7 @@ NodeParser::NodeParser(const xmlpp::Node
+ 
+ NodeParser::NodeParser(const xmlpp::DomParser& parser)
+ {
+-  xmlpp::Node* node = parser.get_document()->get_root_node();
++  const xmlpp::Node* node = parser.get_document()->get_root_node();
+   push_back(const_cast<xmlpp::Node*>(node));
+ }
+ 
+@@ -54,8 +54,8 @@ NodeParser NodeParser::Path(const xmlpp:
+   }
+ 
+   // find the first level nodes that match
+-  xmlpp::Node::NodeList list = node->get_children();
+-  for (xmlpp::Node::NodeList::iterator iter = list.begin(); iter != list.end(); ++iter)
++  xmlpp::Node::const_NodeList list = node->get_children();
++  for (xmlpp::Node::const_NodeList::iterator iter = list.begin(); iter != list.end(); ++iter)
+   {
+     if ( (*iter)->get_name() == key )
+     {
+@@ -68,7 +68,7 @@ NodeParser NodeParser::Path(const xmlpp:
+ 
+       // otherwise add the node to the result list.
+       else
+-        result.push_back(*iter);
++        result.push_back(const_cast<xmlpp::Node*>(*iter));
+     }
+   }
+ 

Reply via email to