[oe-commits] Vladimir Sorokin : valgrind: new version 3.6.0

git version control git at git.openembedded.org
Sat Oct 30 07:15:43 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 532b09c8b2b11d8e0133c33d7ec235feb54111bd
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=532b09c8b2b11d8e0133c33d7ec235feb54111bd

Author: Vladimir Sorokin <sorokin at altell.ru>
Date:   Mon Oct 25 17:20:25 2010 +0400

valgrind: new version 3.6.0

Signed-off-by: Vladimir Sorokin <sorokin at altell.ru>
Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 .../valgrind/valgrind-3.6.0/fix-link-tool.patch    |   26 ++++++++++++++++++++
 recipes/valgrind/valgrind_3.6.0.bb                 |   22 ++++++++++++++++
 2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/recipes/valgrind/valgrind-3.6.0/fix-link-tool.patch b/recipes/valgrind/valgrind-3.6.0/fix-link-tool.patch
new file mode 100644
index 0000000..0e39530
--- /dev/null
+++ b/recipes/valgrind/valgrind-3.6.0/fix-link-tool.patch
@@ -0,0 +1,26 @@
+diff -rupN valgrind-3.6.0/coregrind/link_tool_exe_linux.in new/coregrind/link_tool_exe_linux.in
+--- valgrind-3.6.0/coregrind/link_tool_exe_linux.in	2010-10-21 00:19:45.000000000 +0400
++++ new/coregrind/link_tool_exe_linux.in	2010-10-25 17:11:47.000000000 +0400
+@@ -60,20 +60,13 @@ my $ala = $ARGV[0];
+ die "Bogus alt-load address"
+     if (length($ala) < 3 || index($ala, "0x") != 0);
+ 
+-# The cc invokation to do the final link
+-my $cc = $ARGV[1];
+-
+-# and the 'restargs' are argv[2 ..]
+-
+-# so, build up the complete command here:
+-# 'cc' -static -Ttext='ala' 'restargs'
+-
+-my $cmd="$cc -static -Wl,-Ttext=$ala";
++my $cmd="";
+ 
+ # Add the rest of the parameters
+ foreach my $n (2 .. $#ARGV) {
+    $cmd = "$cmd $ARGV[$n]";
+ }
++$cmd = "$cmd -static -Wl,-Ttext=$ala";
+ 
+ #print "link_tool_exe_linux: $cmd\n";
+ 
diff --git a/recipes/valgrind/valgrind_3.6.0.bb b/recipes/valgrind/valgrind_3.6.0.bb
new file mode 100644
index 0000000..885e81f
--- /dev/null
+++ b/recipes/valgrind/valgrind_3.6.0.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "Valgrind memory debugger"
+HOMEPAGE = "http://www.valgrind.org/"
+SECTION = "devel"
+LICENSE = "GPLv2"
+DEPENDS = "virtual/libx11"
+PR = "r0"
+
+SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
+	file://fix-link-tool.patch"
+
+inherit autotools
+
+EXTRA_OECONF = "--enable-tls"
+
+PARALLEL_MAKE=""
+COMPATIBLE_HOST = "^(i.86|x86_64).*-linux"
+
+FILES_${PN}-dbg += "/usr/lib/valgrind/x86-linux/.debug"
+FILES_${PN}-dbg += "/usr/lib/valgrind/amd64-linux/.debug"
+
+SRC_URI[md5sum] = "b289c5f4ab8e39741602445f1dd09b34"
+SRC_URI[sha256sum] = "bc0f0153b5a47b986f1d8efa2c488e0aea85a1cf2c4b11c52be127903080285f"





More information about the Openembedded-commits mailing list