diff options
Diffstat (limited to 'meta/recipes-devtools/perl/files/0001-CheckLib.pm-do-not-attempt-to-run-a-cross-executable.patch')
-rw-r--r-- | meta/recipes-devtools/perl/files/0001-CheckLib.pm-do-not-attempt-to-run-a-cross-executable.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/files/0001-CheckLib.pm-do-not-attempt-to-run-a-cross-executable.patch b/meta/recipes-devtools/perl/files/0001-CheckLib.pm-do-not-attempt-to-run-a-cross-executable.patch new file mode 100644 index 0000000000..c5bbe7888e --- /dev/null +++ b/meta/recipes-devtools/perl/files/0001-CheckLib.pm-do-not-attempt-to-run-a-cross-executable.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From a033c9ece12b6eead48eed63f106ccdec6159b0c Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 20 Dec 2019 16:26:55 +0100 | ||
4 | Subject: [PATCH] CheckLib.pm: do not attempt to run a cross executable | ||
5 | |||
6 | Upstream-Status: Inappropriate [oe-core specific] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | inc/Devel/CheckLib.pm | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/inc/Devel/CheckLib.pm b/inc/Devel/CheckLib.pm | ||
13 | index 36a451a..b04acc1 100644 | ||
14 | --- a/inc/Devel/CheckLib.pm | ||
15 | +++ b/inc/Devel/CheckLib.pm | ||
16 | @@ -330,7 +330,7 @@ sub assert_lib { | ||
17 | push @missing, $lib if $rv != 0 || !-x $exefile; | ||
18 | my $absexefile = File::Spec->rel2abs($exefile); | ||
19 | $absexefile = '"' . $absexefile . '"' if $absexefile =~ m/\s/; | ||
20 | - push @wrongresult, $lib if $rv == 0 && -x $exefile && system($absexefile) != 0; | ||
21 | + push @wrongresult, $lib if $rv == 0 && -x $exefile && 0 != 0; | ||
22 | unlink $ofile if -e $ofile; | ||
23 | _cleanup_exe($exefile); | ||
24 | } | ||