From patchwork Sat Dec 25 10:48:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/5] perl 5.10.1: fix Time::HiRes cross-compilation Date: Sat, 25 Dec 2010 10:48:26 -0000 From: Roman Khimov X-Patchwork-Id: 125 Message-Id: <1293274109-15695-2-git-send-email-khimov@altell.ru> To: openembedded-devel@lists.openembedded.org 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 Acked-by: Khem Raj --- .../perl-time-hires-fix-cross-compilation.patch | 29 ++++++++++++++++++++ recipes/perl/perl_5.10.1.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletions(-) 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 0000000..7c8b47e --- /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 <