* [PATCH] perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler.
@ 2010-07-12 6:51 Graham Gower
2010-07-12 18:12 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Graham Gower @ 2010-07-12 6:51 UTC (permalink / raw)
To: openembedded-devel
Fixes /usr/local/include Badness.
make[2]: Entering directory `/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/ext/Errno'
hostperl -I/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/Cross/../fake_config_library -MConfig Errno_pm.PL Errno.pm
CROSS COMPILE Badness: /usr/local/include in INCLUDEPATH: /usr/local/include
No error definitions found at Errno_pm.PL line 216.
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/perl/perl_5.8.8.bb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/recipes/perl/perl_5.8.8.bb b/recipes/perl/perl_5.8.8.bb
index 4f4c468..f09360f 100644
--- a/recipes/perl/perl_5.8.8.bb
+++ b/recipes/perl/perl_5.8.8.bb
@@ -104,7 +104,8 @@ do_configure() {
}
do_compile() {
if test "${MACHINE}" != "native"; then
- sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL
+ sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' \
+ -e 's|$Config{cppflags}||' ext/Errno/Errno_pm.PL
fi
cd Cross
oe_runmake perl LD="${TARGET_SYS}-gcc"
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler.
2010-07-12 6:51 [PATCH] perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler Graham Gower
@ 2010-07-12 18:12 ` Khem Raj
2010-07-13 1:06 ` Graham Gower
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2010-07-12 18:12 UTC (permalink / raw)
To: openembedded-devel
On Sun, Jul 11, 2010 at 11:51 PM, Graham Gower <graham.gower@gmail.com> wrote:
> Fixes /usr/local/include Badness.
>
> make[2]: Entering directory `/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/ext/Errno'
> hostperl -I/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/Cross/../fake_config_library -MConfig Errno_pm.PL Errno.pm
> CROSS COMPILE Badness: /usr/local/include in INCLUDEPATH: /usr/local/include
> No error definitions found at Errno_pm.PL line 216.
while this patch looks ok. Can you check if this is needed on 5.10.1 as well.
>
> Signed-off-by: Graham Gower <graham.gower@gmail.com>
> ---
> recipes/perl/perl_5.8.8.bb | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/perl/perl_5.8.8.bb b/recipes/perl/perl_5.8.8.bb
> index 4f4c468..f09360f 100644
> --- a/recipes/perl/perl_5.8.8.bb
> +++ b/recipes/perl/perl_5.8.8.bb
> @@ -104,7 +104,8 @@ do_configure() {
> }
> do_compile() {
> if test "${MACHINE}" != "native"; then
> - sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' ext/Errno/Errno_pm.PL
> + sed -i -e 's|/usr/include|${STAGING_INCDIR}|g' \
> + -e 's|$Config{cppflags}||' ext/Errno/Errno_pm.PL
> fi
> cd Cross
> oe_runmake perl LD="${TARGET_SYS}-gcc"
> --
> 1.7.1
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler.
2010-07-12 18:12 ` Khem Raj
@ 2010-07-13 1:06 ` Graham Gower
0 siblings, 0 replies; 3+ messages in thread
From: Graham Gower @ 2010-07-13 1:06 UTC (permalink / raw)
To: openembedded-devel
On 13 July 2010 03:42, Khem Raj <raj.khem@gmail.com> wrote:
> On Sun, Jul 11, 2010 at 11:51 PM, Graham Gower <graham.gower@gmail.com> wrote:
>> Fixes /usr/local/include Badness.
>>
>> make[2]: Entering directory `/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/ext/Errno'
>> hostperl -I/home/grg/oe2/tmp/work/mipsel-oe-linux/perl-5.8.8-r34/perl-5.8.8/Cross/../fake_config_library -MConfig Errno_pm.PL Errno.pm
>> CROSS COMPILE Badness: /usr/local/include in INCLUDEPATH: /usr/local/include
>> No error definitions found at Errno_pm.PL line 216.
>
> while this patch looks ok. Can you check if this is needed on 5.10.1 as well.
No. The hostperl cppflags appear to be unset with perl-native 5.10.1.
-Graham
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-13 1:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12 6:51 [PATCH] perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler Graham Gower
2010-07-12 18:12 ` Khem Raj
2010-07-13 1:06 ` Graham Gower
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.