summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/fixed-perl-path.patch
blob: b431d3356e584afee3ead2e1df3b6f1d7bf3d242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
From 67e7a690107efb16d6d5aebfe420b64a552accdf Mon Sep 17 00:00:00 2001
From: Qing He <qing.he@intel.com>
Date: Tue, 31 Aug 2010 22:51:58 +0800
Subject: [PATCH] valgrind: fix perl scripts

this is a temporary patch to workaround cross compilation.
otherwise @PERL@ will be replaced to perl-native binary,
this creates unusable scripts and fails FILERDEPENDS mechanism
(esp. rpm)

a better fix would need:
 1. configure.ac should differentiate PERL and HOSTPERL
 2. optionally remove ${STAGING_DIR} in #! line before do_install

8/31/2010 - created by Qing He <qing.he@intel.com>

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 cachegrind/cg_annotate.in | 2 +-
 cachegrind/cg_diff.in     | 2 +-
 massif/ms_print.in        | 2 +-
 perf/vg_perf.in           | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
index 69365e8..978265d 100644
--- a/cachegrind/cg_annotate.in
+++ b/cachegrind/cg_annotate.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
 
 ##--------------------------------------------------------------------##
 ##--- Cachegrind's annotator.                       cg_annotate.in ---##
diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in
index 395460b..05873cc 100755
--- a/cachegrind/cg_diff.in
+++ b/cachegrind/cg_diff.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
 
 ##--------------------------------------------------------------------##
 ##--- Cachegrind's differencer.                         cg_diff.in ---##
diff --git a/massif/ms_print.in b/massif/ms_print.in
index e6fae89..3b85b40 100755
--- a/massif/ms_print.in
+++ b/massif/ms_print.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
 
 ##--------------------------------------------------------------------##
 ##--- Massif's results printer                         ms_print.in ---##
diff --git a/perf/vg_perf.in b/perf/vg_perf.in
index 7a80cb0..28f6156 100644
--- a/perf/vg_perf.in
+++ b/perf/vg_perf.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
 ##--------------------------------------------------------------------##
 ##--- Valgrind performance testing script                  vg_perf ---##
 ##--------------------------------------------------------------------##
diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
index cb05b52..032e947 100755
--- a/tests/vg_regtest.in
+++ b/tests/vg_regtest.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
 ##--------------------------------------------------------------------##
 ##--- Valgrind regression testing script                vg_regtest ---##
 ##--------------------------------------------------------------------##
---
2.4.0