blob: db6867f6259f6bf7c8e4979951d5766ae7a907db [file] [log] [blame]
Andrew Geisslerc926e172021-05-07 16:11:35 -05001From d85cc45e0ddeda68adf594dead715964cb32d0e7 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Qing He <qing.he@intel.com>
3Date: Tue, 31 Aug 2010 22:51:58 +0800
4Subject: [PATCH] valgrind: fix perl scripts
5
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006this is a temporary patch to workaround cross compilation.
7otherwise @PERL@ will be replaced to perl-native binary,
8this creates unusable scripts and fails FILERDEPENDS mechanism
9(esp. rpm)
10
11a 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
158/31/2010 - created by Qing He <qing.he@intel.com>
16
17Upstream-Status: Inappropriate [configuration]
18
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019Signed-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 +-
Andrew Geisslerc926e172021-05-07 16:11:35 -050025 tests/vg_regtest.in | 2 +-
26 5 files changed, 5 insertions(+), 5 deletions(-)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
Andrew Geisslerc926e172021-05-07 16:11:35 -050029index fea114b..5e814fd 100644
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030--- a/cachegrind/cg_annotate.in
31+++ b/cachegrind/cg_annotate.in
32@@ -1,4 +1,4 @@
33-#! @PERL@
34+#! /usr/bin/perl
35
36 ##--------------------------------------------------------------------##
37 ##--- Cachegrind's annotator. cg_annotate.in ---##
38diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in
Andrew Geisslerc926e172021-05-07 16:11:35 -050039index 9d9258e..d0f0ec7 100755
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040--- a/cachegrind/cg_diff.in
41+++ b/cachegrind/cg_diff.in
42@@ -1,4 +1,4 @@
43-#! @PERL@
44+#! /usr/bin/perl
45
46 ##--------------------------------------------------------------------##
47 ##--- Cachegrind's differencer. cg_diff.in ---##
48diff --git a/massif/ms_print.in b/massif/ms_print.in
Andrew Geisslerc926e172021-05-07 16:11:35 -050049index a206ce4..df1bc31 100755
Patrick Williamsc124f4f2015-09-15 14:41:29 -050050--- a/massif/ms_print.in
51+++ b/massif/ms_print.in
52@@ -1,4 +1,4 @@
53-#! @PERL@
54+#! /usr/bin/perl
55
56 ##--------------------------------------------------------------------##
57 ##--- Massif's results printer ms_print.in ---##
58diff --git a/perf/vg_perf.in b/perf/vg_perf.in
Andrew Geisslerc926e172021-05-07 16:11:35 -050059index 90ee1d2..c585096 100644
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060--- a/perf/vg_perf.in
61+++ b/perf/vg_perf.in
62@@ -1,4 +1,4 @@
63-#! @PERL@
64+#! /usr/bin/perl
65 ##--------------------------------------------------------------------##
66 ##--- Valgrind performance testing script vg_perf ---##
67 ##--------------------------------------------------------------------##
Brad Bishop6e60e8b2018-02-01 10:27:11 -050068diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
Andrew Geisslerc926e172021-05-07 16:11:35 -050069index 0fe6341..1b45eb7 100755
Brad Bishop6e60e8b2018-02-01 10:27:11 -050070--- a/tests/vg_regtest.in
71+++ b/tests/vg_regtest.in
72@@ -1,4 +1,4 @@
73-#! @PERL@
74+#! /usr/bin/perl
75 ##--------------------------------------------------------------------##
76 ##--- Valgrind regression testing script vg_regtest ---##
77 ##--------------------------------------------------------------------##
Andrew Geisslerc926e172021-05-07 16:11:35 -050078--
792.29.2
80