From: Tom Rini <tom_rini@mentor.com>
To: <poky@yoctoproject.org>
Subject: Re: [PATCH 0/1] gnu-config make sure we use perl-native
Date: Mon, 14 Mar 2011 11:01:09 -0700 [thread overview]
Message-ID: <4D7E57E5.3070803@mentor.com> (raw)
In-Reply-To: <1300107304.30423.12.camel@rex>
On 03/14/2011 05:55 AM, Richard Purdie wrote:
> On Mon, 2011-03-14 at 13:18 +0100, Koen Kooi wrote:
>> Op 14 mrt 2011, om 12:51 heeft Paul Eggleton het volgende geschreven:
>>
>>> On Saturday 12 March 2011 02:31:40 Khem Raj wrote:
>>>>> Back to the drawing board on why the miss-match is occuring in
>>>>> Config.pm then.
>>>>
>>>> somewhere there is /usr/bin/perl referred may be a cross recipe ?
>>>
>>> I've hit this issue this morning, and have filed a bug report:
>>>
>>> http://bugzilla.pokylinux.org/show_bug.cgi?id=866
>>>
>>> Not sure if it helps but at least it should be easy to reproduce.
>>
>> I haven't checked if the OE .dev and OE core gnu-config are similar, but have a look at:
>>
>> http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=be21179c5321bd0afb9221f020ac12ad75c86a3b
>> http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=edcdefbf6e0675c1bcc1fc4f464f654223380e50
>
> There are a few related patches to this floating around and I know Tom
> did some work in OE.dev to make perl-native an early bootstrap
> dependency.
>
> I've been giving this some thought and given the various goals we have,
> I think the long term best solution is going to be to place perl into an
> isolated bin directory in sysroots, then for anything using really using
> perl-native, add that directory to PATH. This is similar to what we now
> do with the bootstrap toolchains in OE-Core. This way the dependencies
> are deterministic and either perl is or isn't required but we don't
> instantly need to build perl-native or run the risk of nasty loops in
> the early bootstrap. Anything requiring perl-native would add the
> directory to PATH, probably using a tiny class file.
>
> The above patches still would make sense of course.
So, as background, there's a few cases of problems we have to deal with.
The ones Koen pointed out are fall-out from switching to making
perl-native be part of the early bootstrap.
I would encourage someone to look at solving this problem in another way
but I ended up finding that honestly, getting perl-native to build
before we did almost anything else wasn't as hard as I feared (based on
a previous attempt at doing it) and unless we can get things to the
point where only perl needs perl-native (which should possibly be
perl-cross) you can still hit some nasty corner cases. And yes, doing
this would mean changing the libperl-foo-native things into installing
with host cpan into the TMPDIR which may or may not be easier said than
done.
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2011-03-14 18:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-12 1:15 [PATCH 0/1] gnu-config make sure we use perl-native Saul Wold
2011-03-12 1:15 ` [PATCH 1/1] gnu-config: Ensure that we use perl-native to avoid version mis-matches Saul Wold
2011-03-12 1:34 ` [PATCH 0/1] gnu-config make sure we use perl-native Saul Wold
2011-03-12 2:31 ` [poky] " Khem Raj
2011-03-12 2:31 ` Khem Raj
2011-03-14 11:51 ` [poky] " Paul Eggleton
2011-03-14 11:51 ` Paul Eggleton
2011-03-14 12:18 ` [poky] " Koen Kooi
2011-03-14 12:18 ` Koen Kooi
2011-03-14 12:55 ` [poky] " Richard Purdie
2011-03-14 12:55 ` Richard Purdie
2011-03-14 18:01 ` Tom Rini [this message]
2011-03-17 11:48 ` [poky] " Richard Purdie
2011-03-17 11:48 ` [OE-core] " Richard Purdie
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=4D7E57E5.3070803@mentor.com \
--to=tom_rini@mentor.com \
--cc=poky@yoctoproject.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.