summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind-3.7.0
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2011-12-23 13:25:43 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-03 12:14:22 +0000
commit2ae7ca4efb4b4362ab4b2e47f011fb41639f2b1e (patch)
treeb7db66355d9e970276af49976e6ee88e75cdca6d /meta/recipes-devtools/valgrind/valgrind-3.7.0
parent121972e9bf02784daeaa1d18c96b25016140a943 (diff)
downloadpoky-2ae7ca4efb4b4362ab4b2e47f011fb41639f2b1e.tar.gz
valgrind: upgrade to 3.7.0
This patch is to upgrade valgrind to 3.7.0. The licenses are changed from "Copyright (C) 2000-2010 Julian Seward. All rights reserved." to "Copyright (C) 2000-2011 Julian Seward. All rights reserved." (From OE-Core rev: 7f58d1e670470e76077102629efabe91e5c2b9bf) Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind-3.7.0')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch23
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch32
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch26
-rw-r--r--meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch53
4 files changed, 134 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch
new file mode 100644
index 0000000000..a3fce84c20
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/configure-fix.patch
@@ -0,0 +1,23 @@
1To recognize gcc version from poky in configure.in
2
3Upstream-Status: Inappropriate [configuration]
4
5Signed-off-by: Shane Wang <shane.wang@intel.com>
6
7diff -r 91a8df96084a configure.in
8--- a/configure.in Fri Dec 23 20:57:01 2011 +0800
9+++ b/configure.in Fri Dec 23 20:59:21 2011 +0800
10@@ -104,11 +104,13 @@
11 #
12 # i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
13 # i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
14+# ARCH-VENDOR-OS-gcc (GCC) VERSION Copyright
15 #
16 [gcc_version=`${CC} --version \
17 | head -n 1 \
18 | $SED 's/i686-apple-darwin10//' \
19 | $SED 's/i686-apple-darwin11//' \
20+ | $SED 's/.*GCC[^0-9]*//' \
21 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`]
22
23 is_clang="notclang"
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch
new file mode 100644
index 0000000000..4658567b21
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_issue_caused_by_ccache.patch
@@ -0,0 +1,32 @@
1The script does not expect use of ccache, hence fix it to recognise it.
2
32010/08/17
4Nitin A Kamble <nitin.a.kamble@intel.com>
5
6Upstream-Status: Inappropriate [configuration]
7
8Index: 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.7.0/fix_unsupporting_kernel_3.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch
new file mode 100644
index 0000000000..346ffebb3d
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch
@@ -0,0 +1,26 @@
1valgrind: Add 3.x statements to "case" for supporting the kernel 3.x
2
3Signed-off-by: Lin Tong <tong.lin@intel.com>
4
5Upstream-Status: Pending
6
7diff --git a/configure.in b/configure.in
8index 3878619..1cb7dc7 100644
9--- a/configure.in
10+++ b/configure.in
11@@ -229,10 +229,14 @@ case "${host_os}" in
12 AC_MSG_RESULT([2.4 family (${kernel})])
13 AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
14 ;;
15+ 3.*)
16+ AC_MSG_RESULT([3 family (${kernel})])
17+ AC_DEFINE([KERNEL_3], 1, [Define to 1 if you're using Linux 3.x])
18+ ;;
19
20 *)
21 AC_MSG_RESULT([unsupported (${kernel})])
22- AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
23+ AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x])
24 ;;
25 esac
26
diff --git a/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch
new file mode 100644
index 0000000000..b054d05f7f
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind-3.7.0/fixed-perl-path.patch
@@ -0,0 +1,53 @@
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
12Upstream-Status: Inappropriate [configuration]
13
14diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in
15index 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 ---##
24diff --git a/cachegrind/cg_diff.in b/cachegrind/cg_diff.in
25index 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 ---##
34diff --git a/massif/ms_print.in b/massif/ms_print.in
35index 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 ---##
44diff --git a/perf/vg_perf.in b/perf/vg_perf.in
45index 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 ##--------------------------------------------------------------------##