b431d3356e584afee3ead2e1df3b6f1d7bf3d242
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / valgrind / valgrind / fixed-perl-path.patch
1 From 67e7a690107efb16d6d5aebfe420b64a552accdf Mon Sep 17 00:00:00 2001
2 From: Qing He <qing.he@intel.com>
3 Date: Tue, 31 Aug 2010 22:51:58 +0800
4 Subject: [PATCH] valgrind: fix perl scripts
5
6 this is a temporary patch to workaround cross compilation.
7 otherwise @PERL@ will be replaced to perl-native binary,
8 this creates unusable scripts and fails FILERDEPENDS mechanism
9 (esp. rpm)
10
11 a better fix would need:
12  1. configure.ac should differentiate PERL and HOSTPERL
13  2. optionally remove ${STAGING_DIR} in #! line before do_install
14
15 8/31/2010 - created by Qing He <qing.he@intel.com>
16
17 Upstream-Status: Inappropriate [configuration]
18
19 Signed-off-by: Maxin B. John <maxin.john@intel.com>
20 ---
21  cachegrind/cg_annotate.in | 2 +-
22  cachegrind/cg_diff.in     | 2 +-
23  massif/ms_print.in        | 2 +-
24  perf/vg_perf.in           | 2 +-
25  4 files changed, 4 insertions(+), 4 deletions(-)
26
27 diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
28 index 69365e8..978265d 100644
29 --- a/cachegrind/cg_annotate.in
30 +++ b/cachegrind/cg_annotate.in
31 @@ -1,4 +1,4 @@
32 -#! @PERL@
33 +#! /usr/bin/perl
34  
35  ##--------------------------------------------------------------------##
36  ##--- Cachegrind's annotator.                       cg_annotate.in ---##
37 diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in
38 index 395460b..05873cc 100755
39 --- a/cachegrind/cg_diff.in
40 +++ b/cachegrind/cg_diff.in
41 @@ -1,4 +1,4 @@
42 -#! @PERL@
43 +#! /usr/bin/perl
44  
45  ##--------------------------------------------------------------------##
46  ##--- Cachegrind's differencer.                         cg_diff.in ---##
47 diff --git a/massif/ms_print.in b/massif/ms_print.in
48 index e6fae89..3b85b40 100755
49 --- a/massif/ms_print.in
50 +++ b/massif/ms_print.in
51 @@ -1,4 +1,4 @@
52 -#! @PERL@
53 +#! /usr/bin/perl
54  
55  ##--------------------------------------------------------------------##
56  ##--- Massif's results printer                         ms_print.in ---##
57 diff --git a/perf/vg_perf.in b/perf/vg_perf.in
58 index 7a80cb0..28f6156 100644
59 --- a/perf/vg_perf.in
60 +++ b/perf/vg_perf.in
61 @@ -1,4 +1,4 @@
62 -#! @PERL@
63 +#! /usr/bin/perl
64  ##--------------------------------------------------------------------##
65  ##--- Valgrind performance testing script                  vg_perf ---##
66  ##--------------------------------------------------------------------##
67 diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
68 index cb05b52..032e947 100755
69 --- a/tests/vg_regtest.in
70 +++ b/tests/vg_regtest.in
71 @@ -1,4 +1,4 @@
72 -#! @PERL@
73 +#! /usr/bin/perl
74  ##--------------------------------------------------------------------##
75  ##--- Valgrind regression testing script                vg_regtest ---##
76  ##--------------------------------------------------------------------##
77 ---
78 2.4.0