File: libxml.patch

package info (click to toggle)
sight 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,252 kB
  • sloc: cpp: 310,629; xml: 17,622; ansic: 9,960; python: 1,379; sh: 144; makefile: 33
file content (36 lines) | stat: -rw-r--r-- 1,395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Fix build failure with libxml >= 2.12
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1073822


--- sight.orig/lib/__/core/runtime/detail/io/validator.cpp
+++ sight/lib/__/core/runtime/detail/io/validator.cpp
@@ -86,7 +86,7 @@
     ); schema_parser_context != nullptr)
     {
         // Set the structured error callback
-        xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), validator::error_handler, this);
+        xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
 
         // Load XML schema content
         if(!m_schema)
@@ -105,7 +105,7 @@
         )))
         {
             // Set the structured error callback
-            xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), validator::error_handler, this);
+            xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
         }
     }
     else
--- sight.orig/lib/__/core/runtime/detail/io/validator.hpp
+++ sight/lib/__/core/runtime/detail/io/validator.hpp
@@ -27,7 +27,7 @@
 #include "core/runtime/types.hpp"
 #include "core/runtime/validator.hpp"
 
-#include <libxml/xmlschemastypes.h>
+#include <libxml/xmlschemas.h>
 #include <libxml/xmlversion.h>
 
 #include <filesystem>