diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-04-19 15:22:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 10:44:27 +0100 |
commit | aeee3fb46f7b72e0b08e988a3224e4e2b7d85d84 (patch) | |
tree | fb62c17168cd4af1fcdbb186df507f78184edc2c /meta/recipes-devtools/valgrind/valgrind-3.6.1 | |
parent | 722d95cb705a62b607d9798769ec5313138f31cc (diff) | |
download | poky-aeee3fb46f7b72e0b08e988a3224e4e2b7d85d84.tar.gz |
valgrind: upgrade to version 3.6.1
(From OE-Core rev: 85898bb2d60ccf171ead561d05f3742a2cf30c8d)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.6.1')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind-3.6.1/fixed-perl-path.patch | 53 |
2 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch new file mode 100644 index 0000000000..4658567b21 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fix_issue_caused_by_ccache.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | The script does not expect use of ccache, hence fix it to recognise it. | ||
2 | |||
3 | 2010/08/17 | ||
4 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Index: valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
9 | =================================================================== | ||
10 | --- valgrind-3.5.0.orig/coregrind/link_tool_exe_linux.in | ||
11 | +++ valgrind-3.5.0/coregrind/link_tool_exe_linux.in | ||
12 | @@ -62,6 +62,11 @@ die "Bogus alt-load address" | ||
13 | |||
14 | # The cc invokation to do the final link | ||
15 | my $cc = $ARGV[1]; | ||
16 | +my $next = 2; | ||
17 | +if ("$cc" eq "ccache") { | ||
18 | + $cc = "$cc $ARGV[2]"; | ||
19 | + $next = 3; | ||
20 | +} | ||
21 | |||
22 | # and the 'restargs' are argv[2 ..] | ||
23 | |||
24 | @@ -71,7 +76,7 @@ my $cc = $ARGV[1]; | ||
25 | my $cmd="$cc -static -Wl,-Ttext=$ala"; | ||
26 | |||
27 | # Add the rest of the parameters | ||
28 | -foreach my $n (2 .. $#ARGV) { | ||
29 | +foreach my $n ($next .. $#ARGV) { | ||
30 | $cmd = "$cmd $ARGV[$n]"; | ||
31 | } | ||
32 | |||
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.6.1/fixed-perl-path.patch b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fixed-perl-path.patch new file mode 100644 index 0000000000..b054d05f7f --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind-3.6.1/fixed-perl-path.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | this is a temporary patch to workaround cross compilation. | ||
2 | otherwise @PERL@ will be replaced to perl-native binary, | ||
3 | this creates unusable scripts and fails FILERDEPENDS mechanism | ||
4 | (esp. rpm) | ||
5 | |||
6 | a 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 | |||
10 | 8/31/2010 - created by Qing He <qing.he@intel.com> | ||
11 | |||
12 | Upstream-Status: Inappropriate [configuration] | ||
13 | |||
14 | diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in | ||
15 | index 9dc9565..cc4ef05 100644 | ||
16 | --- a/cachegrind/cg_annotate.in | ||
17 | +++ b/cachegrind/cg_annotate.in | ||
18 | @@ -1,4 +1,4 @@ | ||
19 | -#! @PERL@ | ||
20 | +#! /usr/bin/perl | ||
21 | |||
22 | ##--------------------------------------------------------------------## | ||
23 | ##--- Cachegrind's annotator. cg_annotate.in ---## | ||
24 | diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in | ||
25 | index 951066e..84c2dde 100644 | ||
26 | --- a/cachegrind/cg_diff.in | ||
27 | +++ b/cachegrind/cg_diff.in | ||
28 | @@ -1,4 +1,4 @@ | ||
29 | -#! @PERL@ | ||
30 | +#! /usr/bin/perl | ||
31 | |||
32 | ##--------------------------------------------------------------------## | ||
33 | ##--- Cachegrind's differencer. cg_diff.in ---## | ||
34 | diff --git a/massif/ms_print.in b/massif/ms_print.in | ||
35 | index e6ffdbf..fb45906 100755 | ||
36 | --- a/massif/ms_print.in | ||
37 | +++ b/massif/ms_print.in | ||
38 | @@ -1,4 +1,4 @@ | ||
39 | -#! @PERL@ | ||
40 | +#! /usr/bin/perl | ||
41 | |||
42 | ##--------------------------------------------------------------------## | ||
43 | ##--- Massif's results printer ms_print.in ---## | ||
44 | diff --git a/perf/vg_perf.in b/perf/vg_perf.in | ||
45 | index 2188a31..83ad024 100644 | ||
46 | --- a/perf/vg_perf.in | ||
47 | +++ b/perf/vg_perf.in | ||
48 | @@ -1,4 +1,4 @@ | ||
49 | -#! @PERL@ | ||
50 | +#! /usr/bin/perl | ||
51 | ##--------------------------------------------------------------------## | ||
52 | ##--- Valgrind performance testing script vg_perf ---## | ||
53 | ##--------------------------------------------------------------------## | ||