File: disable_runtime-version_warning.patch

package info (click to toggle)
libxml-libxml-perl 2.0134%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,556 kB
  • sloc: perl: 6,310; ansic: 3,851; xml: 182; sh: 21; makefile: 15
file content (34 lines) | stat: -rw-r--r-- 1,253 bytes parent folder | download | duplicates (5)
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
Description: disable the runtime libxml2 version check
Origin: vendor
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=104156
Bug-Debian: https://bugs.debian.org/783610
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-08-26

--- a/LibXML.pm
+++ b/LibXML.pm
@@ -220,13 +220,17 @@
 #-------------------------------------------------------------------------#
 # test exact version (up to patch-level)                                  #
 #-------------------------------------------------------------------------#
-{
-  my ($runtime_version) = LIBXML_RUNTIME_VERSION() =~ /^(\d+)/;
-  if ( $runtime_version < LIBXML_VERSION ) {
-    warn "Warning: XML::LibXML compiled against libxml2 ".LIBXML_VERSION.
-      ", but runtime libxml2 is older $runtime_version\n";
-  }
-}
+#
+# disabled in Debian; cf. https://bugs.debian.org/783610 and
+# https://rt.cpan.org/Public/Bug/Display.html?id=104156
+#
+#{
+#  my ($runtime_version) = LIBXML_RUNTIME_VERSION() =~ /^(\d+)/;
+#  if ( $runtime_version < LIBXML_VERSION ) {
+#    warn "Warning: XML::LibXML compiled against libxml2 ".LIBXML_VERSION.
+#      ", but runtime libxml2 is older $runtime_version\n";
+#  }
+#}
 
 
 #-------------------------------------------------------------------------#