summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-08-31 22:51:58 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-02 09:50:49 +0100
commitdd5509458fa5f78a3d4358b8a22dfdee40cac660 (patch)
treee1933fd3046d8d67f56d356ab3ba7a941fab8948 /meta/recipes-devtools/valgrind/valgrind
parent33ed325337c279061c372743753038c91268d830 (diff)
downloadpoky-dd5509458fa5f78a3d4358b8a22dfdee40cac660.tar.gz
valgrind: fix perl scripts
svn version of valgrind uses #! @PERL@ for several perl scripts. However, PERL in autoconf doesn't distinguish host perl and target perl, causing STAGING_DIR_NATIVE be written in the output scripts. This causes unrunnable scripts, and fails FILERDEPENDS mechanism (thus also do_rootfs_rpm). Uses /usr/bin/perl instead to fix it. Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch b/meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch
new file mode 100644
index 0000000000..2a0440a1b0
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch
@@ -0,0 +1,51 @@
1this is a temporary patch to workaround cross compilation.
2otherwise @PERL@ will be replaced to perl-native binary,
3this creates unusable scripts and fails FILERDEPENDS mechanism
4(esp. rpm)
5
6a better fix would need:
7 1. configure.ac should differentiate PERL and HOSTPERL
8 2. optionally remove ${STAGING_DIR} in #! line before do_install
9
108/31/2010 - created by Qing He <qing.he@intel.com>
11
12diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
13index 9dc9565..cc4ef05 100644
14--- a/cachegrind/cg_annotate.in
15+++ b/cachegrind/cg_annotate.in
16@@ -1,4 +1,4 @@
17-#! @PERL@
18+#! /usr/bin/perl
19
20 ##--------------------------------------------------------------------##
21 ##--- Cachegrind's annotator. cg_annotate.in ---##
22diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in
23index 951066e..84c2dde 100644
24--- a/cachegrind/cg_diff.in
25+++ b/cachegrind/cg_diff.in
26@@ -1,4 +1,4 @@
27-#! @PERL@
28+#! /usr/bin/perl
29
30 ##--------------------------------------------------------------------##
31 ##--- Cachegrind's differencer. cg_diff.in ---##
32diff --git a/massif/ms_print.in b/massif/ms_print.in
33index e6ffdbf..fb45906 100755
34--- a/massif/ms_print.in
35+++ b/massif/ms_print.in
36@@ -1,4 +1,4 @@
37-#! @PERL@
38+#! /usr/bin/perl
39
40 ##--------------------------------------------------------------------##
41 ##--- Massif's results printer ms_print.in ---##
42diff --git a/perf/vg_perf.in b/perf/vg_perf.in
43index 2188a31..83ad024 100644
44--- a/perf/vg_perf.in
45+++ b/perf/vg_perf.in
46@@ -1,4 +1,4 @@
47-#! @PERL@
48+#! /usr/bin/perl
49 ##--------------------------------------------------------------------##
50 ##--- Valgrind performance testing script vg_perf ---##
51 ##--------------------------------------------------------------------##