-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <khimov@altell.ru> Acked-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
Roman I Khimov
committed
Dec 28, 2010
1 parent
264f7ab
commit cd0141b
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
recipes/perl/perl-5.10.1/perl-time-hires-fix-cross-compilation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <<EOF; | ||
- | ||
-*** The test run of '$tmp_exe' failed: status $? | ||
-*** (the status means: errno = $errno or '$!') | ||
-*** DO NOT PANIC: this just means that *some* functionality will be missing. | ||
-EOF | ||
- } | ||
- } | ||
unlink("$tmp.c", $tmp_exe); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters