File: remove-version-check.diff

package info (click to toggle)
libxml2 2.15.2%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,036 kB
  • sloc: xml: 305,167; ansic: 138,598; python: 6,692; javascript: 5,897; sh: 4,736; makefile: 1,308
file content (22 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -74,6 +74,11 @@ xmlCheckVersion(int version) {
 
     xmlInitParser();
 
+/*
+ * Disable the version check. Questionable by library handling of the 
+ * distribution.  See https://bugs.debian.org/1072012 for the rationale.
+*/
+#if 0
     if ((myversion / 10000) != (version / 10000)) {
 	xmlPrintErrorMessage(
 		"Fatal: program compiled against libxml %d using libxml %d\n",
@@ -83,6 +88,7 @@ xmlCheckVersion(int version) {
 		"Warning: program compiled against libxml %d using older %d\n",
 		(version / 100), (myversion / 100));
     }
+#endif
 }