perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler.
PATCH 1/1 perl_5.8.8.bb: Don't use hostperl's $Config{cppflags} with cross compiler.
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.
--- recipes/perl/perl_5.8.8.bb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/perl/perl_5.8.8.bb +2 -1
@@ -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"
Signature · 1 line
1.7.1
Quoted 6 lines · Graham Gower
Fixes
/usr/local/includeBadness.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/includein 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.
Quoted 29 lines
Signed-off-by Graham Gower <[email protected]>---
recipes/perl/perl_5.8.8.bb | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)recipes/perl/perl_5.8.8.bb +0
-0@@ -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_runmakeperl LD="${TARGET_SYS}-gcc"
--
1.7.1_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 9 lines · Khem Raj
Quoted 6 lines · Graham Gower
Fixes
/usr/local/includeBadness.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/includein 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