From cd0141bdbec23521022447fe87c82e10cb9a500e Mon Sep 17 00:00:00 2001 From: Roman I Khimov Date: Tue, 23 Nov 2010 13:26:55 +0300 Subject: [PATCH] perl 5.10.1: fix Time::HiRes cross-compilation We can't do 'run' check, so let's hope compile check is enough. Fixes Time::HiRes::nanosleep(): unimplemented in this platform error. Signed-off-by: Roman I Khimov Acked-by: Khem Raj --- ...erl-time-hires-fix-cross-compilation.patch | 29 +++++++++++++++++++ recipes/perl/perl_5.10.1.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 recipes/perl/perl-5.10.1/perl-time-hires-fix-cross-compilation.patch diff --git a/recipes/perl/perl-5.10.1/perl-time-hires-fix-cross-compilation.patch b/recipes/perl/perl-5.10.1/perl-time-hires-fix-cross-compilation.patch new file mode 100644 index 0000000000..7c8b47e164 --- /dev/null +++ b/recipes/perl/perl-5.10.1/perl-time-hires-fix-cross-compilation.patch @@ -0,0 +1,29 @@ +Index: perl-5.10.1/ext/Time-HiRes/Makefile.PL +=================================================================== +--- perl-5.10.1.orig/ext/Time-HiRes/Makefile.PL 2010-11-23 12:05:59.000000000 +0300 ++++ perl-5.10.1/ext/Time-HiRes/Makefile.PL 2010-11-23 12:06:42.000000000 +0300 +@@ -157,24 +157,6 @@ + my $res = system($cccmd); + $ok = defined($res) && $res == 0 && -s $tmp_exe && -x _; + +- if ( $ok && exists $args{run} && $args{run}) { +- my $tmp_exe = +- File::Spec->catfile(File::Spec->curdir, $tmp_exe); +- printf "Running $tmp_exe..." if $VERBOSE; +- if (system($tmp_exe) == 0) { +- $ok = 1; +- } else { +- $ok = 0; +- my $errno = $? >> 8; +- local $! = $errno; +- printf <