File: disable-compiler-check.patch

package info (click to toggle)
libyaml-syck-perl 1.34-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,100 kB
  • sloc: ansic: 4,108; perl: 573; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (3)
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
Description: Disable compiler check.
 This is not needed in a Debian build environment, and more importantly,
 it breaks cross-builds.
Origin: vendor
Bug-Debian: https://bugs.debian.org/950297
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-02-04

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,14 +3,6 @@
 use warnings;
 use ExtUtils::MakeMaker;
 
-require "./inc/ExtUtils/HasCompiler.pm";
-
-my $can_xs = ExtUtils::HasCompiler::can_compile_loadable_object( quiet => 1 ) ? 1 : 0;
-if ( !$can_xs ) {
-    print "Sorry! YAML::Syck requires a compiler in order to be built.\n";
-    exit 1;
-}
-
 my $bad;
 if ( eval { require YAML; $YAML::VERSION < 0.60 } ) {
     print "*** Pre-0.60 version of YAML.pm ($YAML::VERSION) detected.\n";