summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2012-04-25 21:09:14 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-31 20:15:11 (GMT)
commitc2826b50ce5d9595fabc9d790d3c3105f65b73b1 (patch)
tree35f165d9f36bb3f9cf233427646117beebe2fad9 /meta/recipes-devtools
parent75225bcc845cd860dfc253cad2af7e9868f60e5d (diff)
downloadpoky-c2826b50ce5d9595fabc9d790d3c3105f65b73b1.tar.gz
quilt: fix perl path in target perl scripts
While building on distros like fedora17, which has /bin/perl, the target perl scripts get perl path also as /bin/perl. And that is not correction path of perl on the target. This commit avoids this error. | error: Failed dependencies: | /bin/perl is needed by quilt-0.51-r2.i586 NOTE: package core-image-sato-sdk-1.0-r0: task do_rootfs: Failed ERROR: Task 8 (/home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato-sdk.bb, do_rootfs) failed with exit code '1' (From OE-Core rev: c8c394bd806978c867f2fe82e4bde65c98764880) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/quilt/quilt_0.51.bb15
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/recipes-devtools/quilt/quilt_0.51.bb b/meta/recipes-devtools/quilt/quilt_0.51.bb
index 6865cd8..4e51b49 100644
--- a/meta/recipes-devtools/quilt/quilt_0.51.bb
+++ b/meta/recipes-devtools/quilt/quilt_0.51.bb
@@ -4,4 +4,17 @@ RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
4SRC_URI += "file://aclocal.patch \ 4SRC_URI += "file://aclocal.patch \
5 file://gnu_patch_test_fix_target.patch \ 5 file://gnu_patch_test_fix_target.patch \
6 " 6 "
7PR = "r3" 7PR = "r4"
8
9PERLPATH = "${bindir}/env perl"
10PERLPATH_virtclass-nativesdk = "/usr/bin/env perl"
11
12# fix build-distro specific perl path in the target perl scripts
13do_install_append() {
14 for perlscript in ${D}${datadir}/quilt/scripts/remove-trailing-ws ${D}${datadir}/quilt/scripts/dependency-graph ${D}${datadir}/quilt/scripts/edmail ${D}${bindir}/guards
15 do
16 if [ -f $perlscript ]; then
17 sed -i -e '1s,#!.*perl,#! ${PERLPATH},' $perlscript
18 fi
19 done
20}