[Debian-med-packaging] Bug#1073822: sight: FTBFS with VTK 9.3.0

Gianfranco Costamagna locutusofborg at debian.org
Thu Jun 20 14:16:19 BST 2024


control: tags -1 patch

cat debian/patches/new-libxml2.12.patch
Description: Fix build failure with libxml >= 2.12
Author: Gianfranco Costamagna <locutusofborg at debian.org>
Origin: Inspired from https://github.com/0ad/0ad/commit/d242631245edb66816ef9960bdb2c61b68e56cec.patch
Bug-Debian: https://bugs.debian.org/1073822
Last-Update: 2024-06-20

--- sight-23.1.0.orig/libs/core/core/runtime/detail/io/Validator.cpp
+++ sight-23.1.0/libs/core/core/runtime/detail/io/Validator.cpp
@@ -201,7 +201,7 @@ bool Validator::validate(xmlNodePtr node
  
  //------------------------------------------------------------------------------
  
-void Validator::ErrorHandler(void* userData, xmlErrorPtr error)
+void Validator::ErrorHandler(void* userData, std::conditional_t<LIBXML_VERSION >= 21200, const xmlError, xmlError>* error)
  {
      auto* validator = reinterpret_cast<Validator*>(userData);
  
--- sight-23.1.0.orig/libs/core/core/runtime/detail/io/Validator.hpp
+++ sight-23.1.0/libs/core/core/runtime/detail/io/Validator.hpp
@@ -131,7 +131,7 @@ private:
      SchemaSptr m_schema;
      SchemaValidCtxtSptr m_schemaValidContext;
  
-    static void ErrorHandler(void* userData, xmlErrorPtr error);
+    static void ErrorHandler(void* userData, std::conditional_t<LIBXML_VERSION >= 21200, const xmlError, xmlError>* error);
  };
  
  } // namespace sight::core::runtime::detail::io
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240620/9417dfce/attachment.sig>


More information about the Debian-med-packaging mailing list