File: fail-build-no-libxml2.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 (19 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Trigger build failure when libxml2 is not found
Origin: vendor
Bug: https://bugs.debian.org/684070
Forwarded: not-needed
Author: Alessandro Ghedini <ghedo@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-06-23

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -223,7 +223,7 @@
                     $libxml2_version = $1;
                 }
                 # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors)
-                exit 0 if !$FORCE and $libxml2_version ne "2.9.4";
+                exit 1 if !$FORCE and $libxml2_version ne "2.9.4";
             }
             if ( $@ =~ /^UNTESTED (\S*)/ ) {
                 warn "Note: libxml2 $1 was not tested with this XML::LibXML version.\n"