From 25db6767cbf1b00a4e8dbf746d2d16458c3696ea Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 11 Nov 2009 21:01:47 +0000 Subject: perl: Move config.sh to STAGING_LIBDIR rather than trying to be clever with staging variables and losing Signed-off-by: Richard Purdie --- recipes/perl/perl-native_5.8.8.bb | 9 ++++----- recipes/perl/perl.inc | 4 ++-- recipes/perl/perl_5.8.4.bb | 2 +- recipes/perl/perl_5.8.7.bb | 2 +- recipes/perl/perl_5.8.8.bb | 5 ++--- 5 files changed, 10 insertions(+), 12 deletions(-) (limited to 'recipes/perl') diff --git a/recipes/perl/perl-native_5.8.8.bb b/recipes/perl/perl-native_5.8.8.bb index ba05406eb0..60a5cf5b0f 100644 --- a/recipes/perl/perl-native_5.8.8.bb +++ b/recipes/perl/perl-native_5.8.8.bb @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.perl.org/" SECTION = "libs" LICENSE = "Artistic|GPL" DEPENDS = "virtual/db-native gdbm-native" -PR = "r14" +PR = "r15" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}" @@ -66,10 +66,9 @@ do_stage_append() { # We need a hostperl link for building perl ln -sf ${STAGING_BINDIR_NATIVE}/perl${PV} ${STAGING_BINDIR_NATIVE}/hostperl # Store native config in non-versioned directory - install -d ${STAGING_DIR}/${HOST_SYS}/perl \ - ${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE \ + install -d ${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE \ ${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils - install config.sh ${STAGING_DIR}/${HOST_SYS}/perl + install config.sh ${STAGING_LIBDIR}/perl # target configuration install lib/Config.pm ${STAGING_LIBDIR_NATIVE}/perl/${PV}/ install lib/ExtUtils/typemap ${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/ @@ -88,7 +87,7 @@ do_stage_append() { } do_stage_append_nylon() { # get rid of definitions not supported by the gcc version we use for nylon... - for i in ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${STAGING_DIR}/${HOST_SYS}/perl/config.sh; do + for i in ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${STAGING_LIBDIR}/perl/config.sh; do perl -pi -e 's/-Wdeclaration-after-statement //g' ${i} done } diff --git a/recipes/perl/perl.inc b/recipes/perl/perl.inc index 9e20ae63e6..15ae55cf17 100644 --- a/recipes/perl/perl.inc +++ b/recipes/perl/perl.inc @@ -36,8 +36,8 @@ do_install() { } do_stage() { - install -d ${STAGING_DIR}/${HOST_SYS}/perl/ - install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/ + install -d ${STAGING_LIBDIR}/perl/ + install config.sh ${STAGING_LIBDIR}/perl/ } PACKAGES_DYNAMIC = "perl-module-*" diff --git a/recipes/perl/perl_5.8.4.bb b/recipes/perl/perl_5.8.4.bb index 10a871c8dd..881a2acee5 100644 --- a/recipes/perl/perl_5.8.4.bb +++ b/recipes/perl/perl_5.8.4.bb @@ -1,6 +1,6 @@ require perl.inc -PR = "r5" +PR = "r6" SRC_URI += "file://uclibc.patch;patch=1 \ file://config.sh-mipsel-linux \ diff --git a/recipes/perl/perl_5.8.7.bb b/recipes/perl/perl_5.8.7.bb index 6589180ff2..5891670394 100644 --- a/recipes/perl/perl_5.8.7.bb +++ b/recipes/perl/perl_5.8.7.bb @@ -26,7 +26,7 @@ SRC_URI_append_powerpc += " ${GCCLINK_SRC}" PARALLEL_MAKE = "" -PR = "r22" +PR = "r23" do_configure() { ln -sf ${HOSTPERL} ${STAGING_BINDIR_NATIVE}/hostperl diff --git a/recipes/perl/perl_5.8.8.bb b/recipes/perl/perl_5.8.8.bb index 35fcc83ccc..02ad7bf376 100644 --- a/recipes/perl/perl_5.8.8.bb +++ b/recipes/perl/perl_5.8.8.bb @@ -141,12 +141,11 @@ do_install() { fi } do_stage() { - install -d ${STAGING_DIR}/${HOST_SYS}/perl \ - ${STAGING_LIBDIR_NATIVE}/perl/${PV} \ + install -d ${STAGING_LIBDIR_NATIVE}/perl/${PV} \ ${STAGING_LIBDIR}/perl/${PV}/CORE \ ${STAGING_DATADIR}/perl/${PV}/ExtUtils # target config, used by cpan.bbclass to extract version information - install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/ + install config.sh ${STAGING_LIBDIR}/perl/ # target configuration, used by native perl when cross-compiling install lib/Config_heavy.pl ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-target.pl # target configuration -- cgit v1.2.3