[oe-commits] Koen Kooi : perl-native: fix do_install a bit more

git version control git at git.openembedded.org
Fri May 7 15:00:45 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6267e295d438ec25263529d64f8aef3f14d45342
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6267e295d438ec25263529d64f8aef3f14d45342

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri May  7 16:59:25 2010 +0200

perl-native: fix do_install a bit more

* this doesn't solve the build problem with perl, though

---

 recipes/perl/perl-native_5.10.1.bb |   12 ++++++------
 recipes/perl/perl-native_5.8.8.bb  |   10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/recipes/perl/perl-native_5.10.1.bb b/recipes/perl/perl-native_5.10.1.bb
index aec8339..a2b4c76 100644
--- a/recipes/perl/perl-native_5.10.1.bb
+++ b/recipes/perl/perl-native_5.10.1.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.perl.org/"
 SECTION = "libs"
 LICENSE = "Artistic|GPL"
 DEPENDS = "virtual/db-native gdbm-native"
-PR = "r2"
+PR = "r3"
 NATIVE_INSTALL_WORKS = "1"
 
 # Not tested enough
@@ -74,12 +74,12 @@ do_install() {
         ln -sf perl${PV} ${D}${bindir}/hostperl
         # Store native config in non-versioned directory
         install -d ${D}${libdir}/perl/${PV}/CORE \
-                   ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils
-        install config.sh ${D}${STAGING_LIBDIR}/perl
+                   ${D}${datadir}/perl/${PV}/ExtUtils
+        install config.sh ${D}${libdir}/perl
 	# target configuration
         install lib/Config.pm       ${D}${libdir}/perl/${PV}/
-	install lib/ExtUtils/xsubpp ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/
-	install lib/ExtUtils/typemap ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/
+	install lib/ExtUtils/xsubpp ${D}${datadir}/perl/${PV}/ExtUtils/
+	install lib/ExtUtils/typemap ${D}${datadir}/perl/${PV}/ExtUtils/
         # perl shared library headers
         for i in av.h embed.h gv.h keywords.h op.h perlio.h pp.h regexp.h \
                  uconfig.h XSUB.h cc_runtime.h embedvar.h handy.h opnames.h \
@@ -98,7 +98,7 @@ do_install() {
 }
 do_install_append_nylon() {
         # get rid of definitions not supported by the gcc version we use for nylon...
-        for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${STAGING_LIBDIR}/perl/config.sh; do
+        for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do
                 perl -pi -e 's/-Wdeclaration-after-statement //g' ${i}
         done
 }
diff --git a/recipes/perl/perl-native_5.8.8.bb b/recipes/perl/perl-native_5.8.8.bb
index e8706e8..fa27326 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 = "r18"
+PR = "r19"
 NATIVE_INSTALL_WORKS = "1"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
@@ -71,13 +71,13 @@ do_install() {
         ln -sf perl${PV} ${D}${bindir}/hostperl
         # Store native config in non-versioned directory
         install -d ${D}${libdir}/perl/${PV}/CORE \
-                   ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils
-        install config.sh ${D}${STAGING_LIBDIR}/perl
+                   ${D}${datadir}/perl/${PV}/ExtUtils
+        install config.sh ${D}${libdir}/perl
 	# Fix Errno.pm for target builds
 	sed -i -r "s,^\tdie\ (\"Errno\ architecture.+)$,\twarn\ \1," ${D}${libdir}/perl/${PV}/Errno.pm
 	# target configuration
         install lib/Config.pm       ${D}${libdir}/perl/${PV}/
-	install lib/ExtUtils/typemap ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/
+	install lib/ExtUtils/typemap ${D}${datadir}/perl/${PV}/ExtUtils/
         # perl shared library headers
         for i in av.h embed.h gv.h keywords.h op.h perlio.h pp.h regexp.h \
                  uconfig.h XSUB.h cc_runtime.h embedvar.h handy.h opnames.h \
@@ -94,7 +94,7 @@ do_install() {
 
 do_install_append_nylon() {
         # get rid of definitions not supported by the gcc version we use for nylon...
-        for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${STAGING_LIBDIR}/perl/config.sh; do
+        for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do
                 perl -pi -e 's/-Wdeclaration-after-statement //g' ${i}
         done
 }





More information about the Openembedded-commits mailing list