All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 2/5] perl 5.10.1: fix Time::HiRes cross-compilation
Date: Sat, 25 Dec 2010 09:30:49 -0800	[thread overview]
Message-ID: <4D162A49.8060009@gmail.com> (raw)
In-Reply-To: <1293274109-15695-2-git-send-email-khimov@altell.ru>

On 12/25/2010 2:48 AM, Roman I Khimov wrote:
> 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>

is it possible to cache the vars instead? that will be better to keep
list of variables that are not runchecked

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>   .../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<<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);
> +         }
> +     }
> diff --git a/recipes/perl/perl_5.10.1.bb b/recipes/perl/perl_5.10.1.bb
> index 387755e..0e6a1f9 100644
> --- a/recipes/perl/perl_5.10.1.bb
> +++ b/recipes/perl/perl_5.10.1.bb
> @@ -5,7 +5,7 @@ LICENSE = "Artistic|GPLv1+"
>   PRIORITY = "optional"
>   # We need gnugrep (for -I)
>   DEPENDS = "virtual/db perl-native grep-native"
> -PR = "r15"
> +PR = "r16"
>
>   # 5.10.1 has Module::Build built-in
>   PROVIDES += "libmodule-build-perl"
> @@ -62,6 +62,7 @@ SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz;name=perl-${PV} \
>   	file://arm-alignment.diff \
>   	file://fcgi-test.diff \
>   	file://hurd-ccflags.diff \
> +	file://perl-time-hires-fix-cross-compilation.patch \
>   	\
>           file://Makefile.patch \
>           file://Makefile.SH.patch \




  parent reply	other threads:[~2010-12-25 17:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-25 10:48 [PATCH 1/5] perl: fix PERLCONFIGTARGET for multimach builds, move cpan vars Roman I Khimov
2010-12-25 10:48 ` [PATCH 2/5] perl 5.10.1: fix Time::HiRes cross-compilation Roman I Khimov
2010-12-25 10:48   ` [PATCH 3/5] perl-native: fix ExtUtils::Liblist::Kid library check for cross-build Roman I Khimov
2010-12-25 10:48     ` [PATCH 4/5] perl-5.10.1: fix config var. 'need_va_copy' Roman I Khimov
2010-12-25 10:48       ` [PATCH 5/5] perl: fix some arch-specific config.sh variables Roman I Khimov
2010-12-25 17:38         ` Khem Raj
2010-12-25 17:39       ` [PATCH 4/5] perl-5.10.1: fix config var. 'need_va_copy' Khem Raj
2010-12-25 17:33     ` [PATCH 3/5] perl-native: fix ExtUtils::Liblist::Kid library check for cross-build Khem Raj
2010-12-25 18:05       ` Roman I Khimov
2010-12-25 19:55         ` Khem Raj
2010-12-25 17:30   ` Khem Raj [this message]
2010-12-25 18:25     ` [PATCH 2/5] perl 5.10.1: fix Time::HiRes cross-compilation Roman I Khimov
2010-12-25 19:57       ` Khem Raj
2010-12-26  6:26         ` Roman I Khimov
2010-12-25 17:23 ` [PATCH 1/5] perl: fix PERLCONFIGTARGET for multimach builds, move cpan vars Khem Raj
2010-12-25 18:44   ` Roman I Khimov
2010-12-25 20:01     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D162A49.8060009@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.