]> git.openpandora.org Git - openembedded.git/commitdiff
perl 5.8.8: Replace host paths from the configuration file that is to be
authorJamie Lenehan <lenehan@twibble.org>
Tue, 24 Apr 2007 13:57:31 +0000 (13:57 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Tue, 24 Apr 2007 13:57:31 +0000 (13:57 +0000)
installed on the target with those that are suitable for the target. This
has no effect on actually using perl but would have an effect on trying to
build perl modules on the target.

packages/perl/perl_5.8.8.bb

index cb6014c0853c167d05918ce1f8eb32684a0aaae6..6e79066afaf98d615cee39193357775e021a0972 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r2"
+PR = "r3"
 
 # Major part of version
 PVM = "5.8"
@@ -109,7 +109,11 @@ do_install() {
 
         # Fix up installed configuration
         if test "${MACHINE}" != "native"; then
-            sed -i -e "s,${D},,g" ${D}/${libdir}/perl/${PV}/Config_heavy.pl
+            sed -i -e "s,${D},,g" \
+                   -e "s,-isystem${STAGING_INCDIR} ,,g" \
+                   -e "s,${STAGING_LIBDIR},${libdir},g" \
+                   -e "s,${STAGING_INCDIR},${includedir},g" \
+                ${D}/${libdir}/perl/${PV}/Config_heavy.pl
         fi
 }
 do_stage() {